# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1255039 | ipeksoysal | Trol (COCI19_trol) | C++20 | 1095 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
main()
{
int n, a, b, top;
cin >> n;
for(int i=0; i<n; i++){
top=0;
cin>> a >> b;
for(int y=b; y>=a; y--){
if(y%9==0)
top += 9;
else
top += y%9;
}
cout << top << "\n";
}
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |