Submission #20671

#TimeUsernameProblemLanguageResultExecution timeMemory
20671Kwiyomi Express (#35)채점 시스템 (OJUZ11_judge)C++98
100 / 100
46 ms2020 KiB
#include <math.h> #include <stdio.h> #include <string.h> #include <vector> #include <string> #include <queue> #include <map> #include <algorithm> #include <cmath> #include <iostream> #include <sstream> #include <set> using namespace std; int main() { int n; cin >> n; for (int i=0; i<n; i++) { long long a, b; scanf("%lld %lld", &a, &b); long long val = 10; while (val <= a) val *= 10; int cnt = 0; while (val + a <= b) { cnt ++; val *= 10; } printf("%d\n", cnt); } }

Compilation message (stderr)

judge.cpp: In function 'int main()':
judge.cpp:21:29: 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...