제출 #20604

#제출 시각아이디문제언어결과실행 시간메모리
20604Where is my GPA? (#35)채점 시스템 (OJUZ11_judge)C++14
31 / 100
46 ms2020 KiB
#include <bits/stdc++.h>
using namespace std;

typedef long long lint;

void exe() {
	lint now, all, k, r=-1;

	scanf("%lld%lld", &now, &all);

	for (k=1; k<=now; k*=10);
	for (; now<=all; ) now += k, k *= 10, r++;
	printf("%lld\n", r);
}

int main()
{
	int t;
	scanf("%d", &t);
	while (t--) exe();
}

컴파일 시 표준 에러 (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...