Submission #20670

# Submission time Handle Problem Language Result Execution time Memory
20670 2017-02-13T12:50:51 Z Kwiyomi Express(#82, ainu7) 채점 시스템 (OJUZ11_judge) C++
0 / 100
39 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++) {
		long long a, b;
		scanf("%lld %lld", &a, &b);
		long long val = 1;
		while (val <= a) val *= 10;
		int cnt = 0;
		while (val + a <= b) {
			cnt ++;
			val *= 10;
		}
		printf("%d\n", cnt);
	}
}

Compilation message

judge.cpp: In function 'int main()':
judge.cpp:21:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld %lld", &a, &b);
                             ^
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 2020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 2020 KB Output isn't correct
2 Incorrect 33 ms 2020 KB Output isn't correct
3 Incorrect 33 ms 2020 KB Output isn't correct
4 Incorrect 29 ms 2020 KB Output isn't correct
5 Incorrect 36 ms 2020 KB Output isn't correct
6 Incorrect 36 ms 2020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 2020 KB Output isn't correct
2 Incorrect 33 ms 2020 KB Output isn't correct
3 Incorrect 33 ms 2020 KB Output isn't correct
4 Incorrect 29 ms 2020 KB Output isn't correct
5 Incorrect 36 ms 2020 KB Output isn't correct
6 Incorrect 36 ms 2020 KB Output isn't correct
7 Incorrect 36 ms 2020 KB Output isn't correct
8 Incorrect 39 ms 2020 KB Output isn't correct
9 Incorrect 39 ms 2020 KB Output isn't correct
10 Incorrect 39 ms 2020 KB Output isn't correct
11 Incorrect 33 ms 2020 KB Output isn't correct