제출 #347444

#제출 시각아이디문제언어결과실행 시간메모리
347444juggernautAliens (IOI16_aliens)C++14
0 / 100
1 ms364 KiB
#include"aliens.h" #include<bits/stdc++.h> #ifdef EVAL #else #include"grader.cpp" #endif using namespace std; typedef long long ll; ll take_photos(int n,int m,int k,vector<int>r,vector<int>c){ sort(r.begin(),r.end()); vector<int>v; for(int i=1;i<n;i++)v.push_back(r[i]-r[i-1]+1); ll ans=n; sort(v.begin(),v.end()); n-=k; for(int i=0;i<n;i++)ans+=v[i]*v[i]-2; return ans; }
#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...