제출 #284583

#제출 시각아이디문제언어결과실행 시간메모리
284583A02Aliens (IOI16_aliens)C++14
0 / 100
1 ms256 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){ int total = 0; for (int i = 0; i < m; i++){ for (int j = 0; j < m; j++){ bool good = false; for (int a = 0; a < n; a++){ if (i <= max(r[i], c[i]) && j <= max(r[i], c[i]) && i >= min(r[i], c[i]) && j >= min(r[i], c[i])){ good = true; } } if (good){ total++; } } } 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...