Submission #23354

#TimeUsernameProblemLanguageResultExecution timeMemory
23354kriii채점 시스템 (OJUZ11_judge)C++14
100 / 100
46 ms1116 KiB
#include <stdio.h> int N; int main() { scanf ("%d",&N); while (N--){ long long a,b; scanf ("%lld %lld",&a,&b); long long u = 1; while (!(a < u)) u *= 10; if (a == 0) u = 10; int c = 0; while (a+u<=b) u *= 10, c++; printf ("%d\n",c); } return 0; }

Compilation message (stderr)

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