Submission #978998

# Submission time Handle Problem Language Result Execution time Memory
978998 2024-05-10T05:42:56 Z ZHIRDILBILDIZ Street Lamps (APIO19_street_lamps) C++14
0 / 100
982 ms 121152 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;
    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

street_lamps.cpp: In function 'int main()':
street_lamps.cpp:11:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |     system("rm pizda");
      |     ~~~~~~^~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 982 ms 121152 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 39 ms 4252 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 31 ms 4420 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -