Submission #864931

#TimeUsernameProblemLanguageResultExecution timeMemory
864931epicci23Logičari (COCI21_logicari)C++17
0 / 110
1 ms456 KiB
#include "bits/stdc++.h" using namespace std; #define int long long #define endl '\n' #define all(x) (x).begin(),(x).end() #define pb push_back #define sz(x) ((int)(x).size()) void solve(){ int n; cin >> n; for(int i=1;i<=n;i++){ int a,b; cin >> a >> b; } if(n&1){ cout << -1 << endl; } else{ cout << n/2 << endl; } } int32_t main(){ ios::sync_with_stdio(0); cin.tie(0); int t=1;//cin >> t; while(t--) solve(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...