Submission #643986

# Submission time Handle Problem Language Result Execution time Memory
643986 2022-09-23T11:47:00 Z elif Logičari (COCI21_logicari) C++17
0 / 110
1 ms 320 KB
#include <bits/stdc++.h>
using namespace std;

int main(){

	ios_base::sync_with_stdio(0);

	int n;
	cin >> n;
	for(int i=0; i<n; i++){
		int u, v;
		cin >> u >> v;
	}

	if(n % 2)
		cout << -1 << endl;

	else cout << n/2 << endl;


	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Incorrect 0 ms 212 KB Output isn't correct
5 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 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Incorrect 0 ms 212 KB Output isn't correct
5 Halted 0 ms 0 KB -