Submission #287754

# Submission time Handle Problem Language Result Execution time Memory
287754 2020-08-31T23:21:26 Z caoash Examination (JOI19_examination) C++14
0 / 100
3000 ms 256 KB
#include <iostream>
using namespace std;
#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:3: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    3 | #pragma GCC optimization ("unroll-loops")
      |
# Verdict Execution time Memory Grader output
1 Execution timed out 3059 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3098 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3098 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3059 ms 256 KB Time limit exceeded
2 Halted 0 ms 0 KB -