Submission #743153

# Submission time Handle Problem Language Result Execution time Memory
743153 2023-05-17T08:24:06 Z vjudge1 Lightning Rod (NOI18_lightningrod) C++17
0 / 100
2000 ms 262144 KB
#include <iostream>
#include <unordered_map>
using namespace std;

inline void read(long long &x)
{
    x = 0;
    char ch = getchar_unlocked();
    while (ch & 16)
    {
        x = (x << 3) + (x << 1) + (ch & 15);
        ch = getchar_unlocked();
    }
}

int main ()
{
    unordered_map<int,int> ma;
    long long n, a, b, sum = 0;
    read(n);
    for(long long i = 0;i < n;++i)
    {
        read(a);
        read(b);
        if(ma[a] == 0)
        {
            ma[a] = 1;
            sum++;
        }
    }
    cout << sum;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 2097 ms 202948 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 593 ms 262144 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2097 ms 202948 KB Time limit exceeded
2 Halted 0 ms 0 KB -