Submission #976042

# Submission time Handle Problem Language Result Execution time Memory
976042 2024-05-06T05:57:57 Z vjudge1 Trol (COCI19_trol) C++
0 / 50
1 ms 600 KB
#include <iostream>
using namespace std;
int main(){
    int q;
    cin>>q;
    while (q--)
    {
        long long l,r;
        cin>>l>>r;
        long long ans=0;
        for (int i = l; i <= r; i++)
        {
            if(i%9==0){
                ans+=9;
            }else{
                ans+=i%9;
            }
        }
        
    }
    
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Incorrect 1 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 1 ms 600 KB Output isn't correct
5 Incorrect 0 ms 348 KB Output isn't correct