제출 #347439

#제출 시각아이디문제언어결과실행 시간메모리
347439juggernautAliens (IOI16_aliens)C++14
4 / 100
1 ms384 KiB
#include"aliens.h" #include<bits/stdc++.h> #ifdef EVAL #else #include"grader.cpp" #endif using namespace std; typedef long long ll; bool is[1005][1005]; ll take_photos(int n,int m,int k,vector<int>r,vector<int>c){ for(int i=0;i<n;i++){ int mn=min(r[i],c[i]); int mx=max(r[i],c[i]); for(int x=mn;x<=mx;x++) for(int y=mn;y<=mx;y++)is[x][y]=1; } ll ans=0; for(int i=0;i<m;i++) for(int j=0;j<m;j++)ans+=is[i][j]; 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...