# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
978998 | ZHIRDILBILDIZ | Street Lamps (APIO19_street_lamps) | C++14 | 982 ms | 121152 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
system("rm pizda");
// while (true) {
// }
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 (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |