제출 #20415

#제출 시각아이디문제언어결과실행 시간메모리
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); } }

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