Submission #20532

#TimeUsernameProblemLanguageResultExecution timeMemory
20532CodingAmolang (#35)채점 시스템 (OJUZ11_judge)C++11
100 / 100
53 ms1116 KiB
#include<stdio.h> int main() { int tc; scanf("%d", &tc); while (tc--) { long long a, b; scanf("%lld%lld", &a, &b); long long p = 10; int cnt = 0; while (p + a <= b) { if (a / p == 0) { cnt++; } p *= 10; } printf("%d\n", cnt); } }

Compilation message (stderr)

judge.cpp: In function 'int main()':
judge.cpp:5:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &tc);
                  ^
judge.cpp:8:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld%lld", &a, &b);
                            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...