Submission #686434

# Submission time Handle Problem Language Result Execution time Memory
686434 2023-01-25T09:26:15 Z willychan Logičari (COCI21_logicari) C++14
10 / 110
19 ms 1448 KB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
//#include<bits/extc++.h>
//__gnu_pbds




int main(){
	ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	int n;cin>>n;
	for(int i=0;i<n;i++){
		int a,b;cin>>a>>b;
	}
	if(n%4){
		cout<<-1<<"\n";
	}else{
		cout<<n/2<<"\n";
	}

	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 316 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 14 ms 1364 KB Output is correct
6 Correct 19 ms 1448 KB Output is correct
7 Correct 16 ms 1436 KB Output is correct
8 Correct 14 ms 1356 KB Output is correct
# 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 Correct 1 ms 316 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 14 ms 1364 KB Output is correct
6 Correct 19 ms 1448 KB Output is correct
7 Correct 16 ms 1436 KB Output is correct
8 Correct 14 ms 1356 KB Output is correct
9 Incorrect 1 ms 212 KB Output isn't correct
10 Halted 0 ms 0 KB -