Submission #722316

# Submission time Handle Problem Language Result Execution time Memory
722316 2023-04-11T18:12:06 Z Toxtaq Strange Device (APIO19_strange_device) C++17
0 / 100
1 ms 300 KB
#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long a, b;
    int n;
    cin >> n >> a >> b;
    set<pair<long long, long long>>pairs;
    for(int i = 0;i < n;++i){
        long long l, r;
        cin >> l >> r;
        for(long long t = l;t <= r;++t){
            long long x = (t + t / b)% a, y = t % b;
            cout << t << ": (" << x << ", " << y << ")\n";
        }
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 300 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -