# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20415 | KDH (#35) | 채점 시스템 (OJUZ11_judge) | C++11 | 49 ms | 2020 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int tc; scanf("%d", &tc); while(tc--){
ll x, y; scanf("%lld%lld", &x, &y);
ll i; for(i = 1; i <= x; i *= 10);
int ans = 0;
while(i + x <= y){ ans++; i *= 10; }
printf("%d\n", ans);
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |