답안 #20607

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
20607 2017-02-12T15:52:22 Z Where is my GPA?(#45, jun6873) 채점 시스템 (OJUZ11_judge) C++
100 / 100
63 ms 2020 KB
#include <bits/stdc++.h>
using namespace std;

typedef long long lint;

void exe() {
	lint now, all, k, r=0;

	scanf("%lld%lld", &now, &all);

	for (k=10; k<=now; k*=10);
	for (; now+k<=all; ) k *= 10, r++;
	printf("%lld\n", r);
}

int main()
{
	int t;
	scanf("%d", &t);
	while (t--) exe();
}

Compilation message

judge.cpp: In function 'void exe()':
judge.cpp:9:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld", &now, &all);
                               ^
judge.cpp: In function 'int main()':
judge.cpp:19:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &t);
                 ^
# 결과 실행 시간 메모리 Grader output
1 Correct 29 ms 2020 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 29 ms 2020 KB Output is correct
2 Correct 33 ms 2020 KB Output is correct
3 Correct 43 ms 2020 KB Output is correct
4 Correct 33 ms 2020 KB Output is correct
5 Correct 39 ms 2020 KB Output is correct
6 Correct 33 ms 2020 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 29 ms 2020 KB Output is correct
2 Correct 33 ms 2020 KB Output is correct
3 Correct 43 ms 2020 KB Output is correct
4 Correct 33 ms 2020 KB Output is correct
5 Correct 39 ms 2020 KB Output is correct
6 Correct 33 ms 2020 KB Output is correct
7 Correct 39 ms 2020 KB Output is correct
8 Correct 63 ms 2020 KB Output is correct
9 Correct 39 ms 2020 KB Output is correct
10 Correct 43 ms 2020 KB Output is correct
11 Correct 19 ms 2020 KB Output is correct