Submission #20606

# Submission time Handle Problem Language Result Execution time Memory
20606 2017-02-12T15:49:31 Z Where is my GPA?(#45, jun6873) 채점 시스템 (OJUZ11_judge) C++
0 / 100
53 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=1; 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);
                 ^
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 2020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 2020 KB Output isn't correct
2 Incorrect 39 ms 2020 KB Output isn't correct
3 Incorrect 33 ms 2020 KB Output isn't correct
4 Incorrect 39 ms 2020 KB Output isn't correct
5 Incorrect 39 ms 2020 KB Output isn't correct
6 Incorrect 39 ms 2020 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 2020 KB Output isn't correct
2 Incorrect 39 ms 2020 KB Output isn't correct
3 Incorrect 33 ms 2020 KB Output isn't correct
4 Incorrect 39 ms 2020 KB Output isn't correct
5 Incorrect 39 ms 2020 KB Output isn't correct
6 Incorrect 39 ms 2020 KB Output isn't correct
7 Incorrect 43 ms 2020 KB Output isn't correct
8 Incorrect 43 ms 2020 KB Output isn't correct
9 Incorrect 53 ms 2020 KB Output isn't correct
10 Incorrect 46 ms 2020 KB Output isn't correct
11 Incorrect 33 ms 2020 KB Output isn't correct