Submission #572831

# Submission time Handle Problem Language Result Execution time Memory
572831 2022-06-05T11:05:50 Z Devigo Lightning Rod (NOI18_lightningrod) C++14
0 / 100
2000 ms 213956 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;
	}
	int cnt = 0;
	map<int,int> m;
	for(int i=0; i<n; i++) {
		m[v[i].first]++;
		if(m[v[i].first] == 1) cnt++;
	}
	cout << cnt << "\n";
	return 0;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 2029 ms 203560 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 2103 ms 213956 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2029 ms 203560 KB Time limit exceeded
2 Halted 0 ms 0 KB -