Submission #572829

# Submission time Handle Problem Language Result Execution time Memory
572829 2022-06-05T11:03:25 Z Devigo Lightning Rod (NOI18_lightningrod) C++14
0 / 100
2000 ms 262144 KB
#include <bits/stdc++.h>
using namespace std;

#define pb push_back
#define mp make_pair

const int siz = 0;
const int mod = 0;

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin >> n;
	vector<pair<int,int>> v(n);
	for(int i=0; i<n; i++) {
		cin >> v[i].first >> v[i].second;
	}
	set<int> s;
	for(int i=0; i<n; i++) {
		s.insert(v[i].first);
	}
	cout << s.size() << "\n";
	return 0;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 2060 ms 262144 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 2100 ms 262144 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2060 ms 262144 KB Time limit exceeded
2 Halted 0 ms 0 KB -