제출 #20460

#제출 시각아이디문제언어결과실행 시간메모리
20460책상다리황새두렁넘기 (#35)채점 시스템 (OJUZ11_judge)C++11
100 / 100
43 ms2020 KiB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n;

int main()
{
	scanf("%lld",&n);
	for(int i=1;i<=n;i++) {
		ll A, B, T, C = 10, R = 0;
		scanf("%lld%lld",&A,&B);
		T = A / 10;
		while(T) {C *= 10; T /= 10;}
		while(C + A <= B) {C *= 10; R++;}
		printf("%lld\n",R);
	}
}

컴파일 시 표준 에러 (stderr) 메시지

judge.cpp: In function 'int main()':
judge.cpp:8:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
                  ^
judge.cpp:11:26: 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...