Submission #743169

# Submission time Handle Problem Language Result Execution time Memory
743169 2023-05-17T08:33:15 Z vjudge1 Lightning Rod (NOI18_lightningrod) C++17
0 / 100
2000 ms 174636 KB
#include <bits/stdc++.h>
#define x first
#define y second
using namespace std;
const int N = 1e7 + 1;
pair<int,int> arr[N];
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    int n,ans=0; cin >> n;
    for(int i=1;i<=n;i++) cin >> arr[i].x >> arr[i].y;
    set<int> s;
    for(int i=1;i<=n;i++) s.insert(arr[i].x);
    cout << s.size();
    return 0;
}

Compilation message

lightningrod.cpp: In function 'int main()':
lightningrod.cpp:10:11: warning: unused variable 'ans' [-Wunused-variable]
   10 |     int n,ans=0; cin >> n;
      |           ^~~
# Verdict Execution time Memory Grader output
1 Execution timed out 2082 ms 171668 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2033 ms 174636 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2082 ms 171668 KB Time limit exceeded
2 Halted 0 ms 0 KB -