Submission #658376

# Submission time Handle Problem Language Result Execution time Memory
658376 2022-11-13T03:52:59 Z sam571128 Logičari (COCI21_logicari) C++17
0 / 110
3 ms 2672 KB
#include <bits/stdc++.h>

#define fastio ios_base::sync_with_stdio(0); cin.tie(0);
#define int long long

using namespace std;

const int N = 1e5+5;
vector<int> adj[N];

signed main(){
	fastio
	int n;
	cin >> n;
	for(int i = 1;i <= n;i++){
		int u,v;
		cin >> u >> v;
		adj[u].push_back(v);
		adj[v].push_back(u);
	}

	cout << (n%4==0 ? 2*n/4 : n/4) << "\n";
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 2644 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 2672 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 2672 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 2644 KB Output isn't correct
2 Halted 0 ms 0 KB -