Submission #20572

#TimeUsernameProblemLanguageResultExecution timeMemory
20572김동현 (#35)채점 시스템 (OJUZ11_judge)C++14
0 / 100
46 ms2020 KiB
#include <bits/stdc++.h> using namespace std; long long d, r, m, n; int main() { scanf("%lld", &n); for(int i=1;i<=n;i++){ scanf("%lld %lld", &r, &m); d = 1; while(d<=r) d*=10; for(int j=0;;j++,d*=10){ if(d+r>m){ printf("%d\n", j); break; } } } return 0; }

Compilation message (stderr)

judge.cpp: In function 'int main()':
judge.cpp:9:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lld", &n);
                      ^
judge.cpp:11:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld %lld", &r, &m);
                                   ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...