Submission #20415

#TimeUsernameProblemLanguageResultExecution timeMemory
20415KDH (#35)채점 시스템 (OJUZ11_judge)C++11
0 / 100
49 ms2020 KiB
#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)

judge.cpp: In function 'int main()':
judge.cpp:6:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  int tc; scanf("%d", &tc); while(tc--){
                          ^
judge.cpp:7:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   ll x, y; scanf("%lld%lld", &x, &y);
                                     ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...