Submission #20478

#TimeUsernameProblemLanguageResultExecution timeMemory
20478볼빨간민돌이 (#35)채점 시스템 (OJUZ11_judge)C++11
100 / 100
46 ms1116 KiB
#include <cstdio> int main(){ int n; scanf("%d", &n); for(int i=1; i<=n; i++){ long long p, t; scanf("%lld %lld", &p, &t); long long in=10; while(in <= p) in*=10; int cnt=0; while(p+in<=t) cnt++, in*=10; printf("%d\n", cnt); } return 0; }

Compilation message (stderr)

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