Submission #20667

# Submission time Handle Problem Language Result Execution time Memory
20667 2017-02-13T12:43:26 Z Kwiyomi Express(#82, ainu7) 채점 시스템 (OJUZ11_judge) C++
31 / 100
299 ms 2020 KB
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;

int main()
{
	int n;
	cin >> n;
	for (int i=0; i<n; i++) {
		string a, b;
		cin >> a >> b;
		int cnt = 0;
		while (1) {
			string c = "1";
			for (int j=0; j<cnt; j++) c += '0';
			c += a;
			while (c.size() < b.size()) { string d = "0"; c = d + c; }
			while (c.size() > b.size()) { string d = "0"; b = d + b; }
			if (c > b) break;
			cnt ++;
		}
		cout << cnt << endl;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 106 ms 2020 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 106 ms 2020 KB Output is correct
2 Runtime error 126 ms 2020 KB Execution timed out (wall clock limit exceeded)
3 Runtime error 106 ms 2020 KB Execution timed out (wall clock limit exceeded)
4 Correct 159 ms 2020 KB Output is correct
5 Runtime error 129 ms 2020 KB Execution timed out (wall clock limit exceeded)
6 Correct 189 ms 2020 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 106 ms 2020 KB Output is correct
2 Runtime error 126 ms 2020 KB Execution timed out (wall clock limit exceeded)
3 Runtime error 106 ms 2020 KB Execution timed out (wall clock limit exceeded)
4 Correct 159 ms 2020 KB Output is correct
5 Runtime error 129 ms 2020 KB Execution timed out (wall clock limit exceeded)
6 Correct 189 ms 2020 KB Output is correct
7 Runtime error 149 ms 2020 KB Execution timed out (wall clock limit exceeded)
8 Correct 169 ms 2020 KB Output is correct
9 Correct 156 ms 2020 KB Output is correct
10 Correct 183 ms 2020 KB Output is correct
11 Correct 299 ms 2020 KB Output is correct