# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
979003 | 2024-05-10T05:45:38 Z | ZHIRDILBILDIZ | Street Lamps (APIO19_street_lamps) | C++14 | 4075 ms | 22492 KB |
#include <iostream> #include <map> #include <unistd.h> int main () { std::ios_base::sync_with_stdio(0); std::cin.tie(0), std::cout.tie(0); int t; std::cin >> t; std::map<int, int> m; while (true) { sleep(0.1); bool flag = system("rm pizda"); } while (t--) { int n, x; std::cin >> n; for (int i = 0; i < n; ++i) { std::cin >> x; m[x] = 1; } std::cin >> n; for (int i = 0; i < n; ++i) { std::cin >>x; if (m[x])std::cout << "YES\n"; else std::cout << "NO\n"; } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 4075 ms | 20048 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 4050 ms | 22492 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 4030 ms | 18920 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 3987 ms | 19804 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 4075 ms | 20048 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |