# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
527058 | 2022-02-16T21:28:18 Z | LucaDantas | Street Lamps (APIO19_street_lamps) | C++17 | 1 ms | 296 KB |
// só pra não zerar, não aguento mais pensar depois do sofrimento do p2 #include <bits/stdc++.h> using namespace std; set<pair<int,int>> mark; int main() { int n, A, B; scanf("%d %d %d", &n, &A, &B); for(int i = 0; i < n; i++) { int l, r; scanf("%d %d", &l, &r); for(int t = l; t <= r; t++) mark.insert({(t + t/B) % A, t % B}); } printf("%ld\n", mark.size()); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 272 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 284 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 296 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 288 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 272 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |