Submission #1002374

#TimeUsernameProblemLanguageResultExecution timeMemory
1002374Valters07Portal (BOI24_portal)C++14
1 / 100
2035 ms2648 KiB
#include <bits/stdc++.h> #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt") #define fio ios_base::sync_with_stdio(0);cin.tie(0); #define en cin.close();return 0; #define ll long long #define pb push_back #define fi first #define se second using namespace std; int main() { fio // ifstream cin("in.in"); int n; cin >> n; if(n<=2) return cout << -1, 0; pair<int,int> p[n]; for(auto &x:p) cin >> x.fi >> x.se; int d1 = 1e9, d2 = 1e9; for(auto x:p) for(auto y:p) if(x!=y) d1=min(d1,abs(x.fi-y.fi)), d2=min(d2,abs(x.se-y.se)); cout << d1*d2; 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...