Submission #20468

# Submission time Handle Problem Language Result Execution time Memory
20468 2017-02-12T01:02:40 Z 후시기바나(#61, bupjae) 채점 시스템 (OJUZ11_judge) C++14
31 / 100
136 ms 2180 KB
#include <iostream>

using namespace std;

int main2() {
	long long int p, t;
	cin >> p >> t;
	long long int q = 10;
	for (long long int p2 = p / 10; p2 > 0; p2 /= 10, q *= 10);
	for (int r = 0;; r++) {
		if (p + q > t) {
			return r;
		}
		q *= 10;
	}
}

int main() {
	ios::sync_with_stdio(false);
	int n;
	cin >> n;
	for (; n > 0; n--) { cout << main2() << endl; }
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 69 ms 2180 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 69 ms 2180 KB Output is correct
2 Runtime error 93 ms 2180 KB Execution timed out (wall clock limit exceeded)
3 Correct 76 ms 2180 KB Output is correct
4 Correct 66 ms 2180 KB Output is correct
5 Runtime error 66 ms 2180 KB Execution timed out (wall clock limit exceeded)
6 Runtime error 63 ms 2180 KB Execution timed out (wall clock limit exceeded)
# Verdict Execution time Memory Grader output
1 Correct 69 ms 2180 KB Output is correct
2 Runtime error 93 ms 2180 KB Execution timed out (wall clock limit exceeded)
3 Correct 76 ms 2180 KB Output is correct
4 Correct 66 ms 2180 KB Output is correct
5 Runtime error 66 ms 2180 KB Execution timed out (wall clock limit exceeded)
6 Runtime error 63 ms 2180 KB Execution timed out (wall clock limit exceeded)
7 Correct 96 ms 2180 KB Output is correct
8 Correct 133 ms 2180 KB Output is correct
9 Runtime error 93 ms 2180 KB Execution timed out (wall clock limit exceeded)
10 Correct 136 ms 2180 KB Output is correct
11 Correct 83 ms 2180 KB Output is correct