Submission #743020

# Submission time Handle Problem Language Result Execution time Memory
743020 2023-05-17T07:26:59 Z vjudge1 Lightning Rod (NOI18_lightningrod) C++17
0 / 100
2000 ms 182924 KB
#include<iostream>
#include<set>
#include<map>

int n,cnt;
std::map<int, bool> mp;
std::set<int> sx,sy;

int main()
{
    std::ios_base::sync_with_stdio(0),std::cin.tie(0),std::cout.tie(0);
    std::cin>>n;
    for(int i = 0; i<n; ++i){
        int x,y; std::cin>>x>>y;
        if(mp[x]) continue;
        mp[x] = 1;
        ++cnt;
    }
    std::cout<<cnt;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 2080 ms 182924 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 Execution timed out 2060 ms 175560 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2080 ms 182924 KB Time limit exceeded
2 Halted 0 ms 0 KB -