Submission #287753

# Submission time Handle Problem Language Result Execution time Memory
287753 2020-08-31T23:21:00 Z caoash Examination (JOI19_examination) C++14
0 / 100
3000 ms 256 KB
#include <iostream>
using namespace std;
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")

int cnt = 0;

int main() {
	for (int i = 1; i <= 30000; i++) {
		for (int j = 1; j <= 30000; j++) {
			if (i % j <= 10) cnt++;
		}
	}
	cout << cnt << endl;
	return 0;
}

Compilation message

examination.cpp:4: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    4 | #pragma GCC optimization ("O3")
      | 
examination.cpp:5: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    5 | #pragma GCC optimization ("unroll-loops")
      |
# Verdict Execution time Memory Grader output
1 Execution timed out 3065 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3088 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3088 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3065 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -