Submission #1027925

#TimeUsernameProblemLanguageResultExecution timeMemory
1027925AbitoPortal (BOI24_portal)C++17
1 / 100
12 ms1928 KiB
#include <bits/stdc++.h> #define F first #define S second #define pb push_back #define ppb pop_back #define ep insert #define endl '\n' #define elif else if #define pow pwr #define sqrt sqrtt #define int long long #define ll long long #define y1 YONE typedef unsigned long long ull; using namespace std; const int N=1e5+5; int x[N],y[N],n; int32_t main(){ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); cin>>n; for (int i=1;i<=n;i++) cin>>x[i]>>y[i]; /*if (n==1){ cout<<-1<<endl; return 0; } if (n==2){ int X=abs(x[1]-x[2])+1,Y=abs(y[1]-y[2])+1; if (X==1 || Y==1) cout<<-1<<endl; else cout<<X*Y-1<<endl; return 0; }*/ cout<<-1<<endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...