Submission #1051486

#TimeUsernameProblemLanguageResultExecution timeMemory
1051486MalixPortal (BOI24_portal)C++14
1 / 100
30 ms1116 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<vi> vii; typedef pair<int,int> pi; typedef vector<pi> pii; typedef tuple<int,int,int> tii; typedef vector<ll> li; typedef vector<li> lii; #define REP(i,a,b) for(int i=a;i<b;i++) #define F first #define S second #define PB push_back #define MP make_pair #define LSOne(s) ((s)&(-s)) ll INF=1e18+10; int inf=1e9+10; ll M=1e9+7; int n; ll m; vi p; vector<ll> profit; ll ans=0; vii a; int main() { // ios::sync_with_stdio(0); // cin.tie(0); int n;cin>>n; pii a(n); REP(i,0,n)cin>>a[i].F>>a[i].S; if(n<=2){ cout<<-1; 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...