Submission #20384

#TimeUsernameProblemLanguageResultExecution timeMemory
20384윤지학 (#35)채점 시스템 (OJUZ11_judge)C++98
100 / 100
46 ms1116 KiB
#include <cstdio> int main() { long long a, b, t; int i, n; scanf("%d", &n); while (n--) { scanf("%lld%lld", &a, &b); for (t = 10; t <= a; t *= 10); for (i = 0; t + a <= b; i++) t *= 10; printf("%d\n", i); } }

Compilation message (stderr)

judge.cpp: In function 'int main()':
judge.cpp:6:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
                 ^
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...