Submission #658376

#TimeUsernameProblemLanguageResultExecution timeMemory
658376sam571128Logičari (COCI21_logicari)C++17
0 / 110
3 ms2672 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...