답안 #975587

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
975587 2024-05-05T14:04:00 Z vjudge1 Trol (COCI19_trol) C++17
0 / 50
1000 ms 456 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);

    int q; cin >> q;
    pair<ll, ll>lr;
    for(int i = 0; i < q; i++){
        cin >> lr.first >> lr.second;
        ll ans = 0;
        for(ll j = lr.first; j <= lr.second ; j++){
            ans += j%9;
        }
        cout << ans << endl;
    }
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Incorrect 1 ms 348 KB Output isn't correct
3 Incorrect 1 ms 348 KB Output isn't correct
4 Execution timed out 1094 ms 456 KB Time limit exceeded
5 Execution timed out 1065 ms 348 KB Time limit exceeded