제출 #555572

#제출 시각아이디문제언어결과실행 시간메모리
555572promaAliens (IOI16_aliens)C++17
0 / 100
1 ms212 KiB
#include "aliens.h" #include <bits/stdc++.h> using namespace std; const int N = 55; int used[N][N]; long long take_photos(int n, int m, int k, vector<int> r, vector<int> c) { for (int i = 0; i < n; i ++) { for (int x = min(r[i], c[i]); x <= max(r[i], c[i]); x ++) { for (int y = min(r[i], c[i]); y <= max(r[i], c[i]); y ++) { used[x][y] = 1; } } } int sum = 0; for (int i = 0; i < m; i ++) { for (int j = 0; j < m; j ++) { sum += used[i][j]; } } return sum; }
#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...