Submission #647674

#TimeUsernameProblemLanguageResultExecution timeMemory
647674GudStonksLogičari (COCI21_logicari)C++17
10 / 110
76 ms6892 KiB
#include<bits/stdc++.h> using namespace std; int n; vector<int>g[100005]; void fun() { cin>>n; for(int i = 1, a, b; i <= n; i++) { cin>>a>>b; g[a].push_back(b); g[b].push_back(a); } cout<<((n % 4 == 0) ? n / 2 : -1); } int main() { int ttt = 1; //cin>>ttt; while(ttt--) fun(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...