Submission #979005

#TimeUsernameProblemLanguageResultExecution timeMemory
979005ZHIRDILBILDIZStreet Lamps (APIO19_street_lamps)C++14
0 / 100
5099 ms91788 KiB
#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 (stderr)

street_lamps.cpp: In function 'int main()':
street_lamps.cpp:13:14: warning: unused variable 'flag' [-Wunused-variable]
   13 |         bool flag = system("rm pizda");
      |              ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...