제출 #284582

#제출 시각아이디문제언어결과실행 시간메모리
284582A02Aliens (IOI16_aliens)C++14
0 / 100
1 ms384 KiB
#include <vector> #include <string> #include <set> #include <algorithm> #include <iostream> #include <utility> #include "aliens.h" using namespace std; long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) { if (k == n && m <= 100){ vector<vector<int> > grid (m, vector<int> (m - 1)); for (int i = 0; i < n; i++){ int small_c = min(r[i], c[i]); int big_c = max(r[i], c[i]); for (int a = small_c; a <= big_c; a++){ for (int b = small_c; b <= big_c; b++){ grid[a][b] = 1; } } } int total = 0; for (int i = 0; i < m; i++){ for (int j = 0; j < m; j++){ total += grid[i][j]; } } return total; } 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...