Submission #20606

#TimeUsernameProblemLanguageResultExecution timeMemory
20606Where is my GPA? (#35)채점 시스템 (OJUZ11_judge)C++98
0 / 100
53 ms2020 KiB
#include <bits/stdc++.h> using namespace std; typedef long long lint; void exe() { lint now, all, k, r=0; scanf("%lld%lld", &now, &all); for (k=1; k<=now; k*=10); for (; now+k<=all; ) k *= 10, r++; printf("%lld\n", r); } int main() { int t; scanf("%d", &t); while (t--) exe(); }

Compilation message (stderr)

judge.cpp: In function 'void exe()':
judge.cpp:9:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld", &now, &all);
                               ^
judge.cpp: In function 'int main()':
judge.cpp:19:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &t);
                 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...