제출 #116399

#제출 시각아이디문제언어결과실행 시간메모리
116399johuthaAliens (IOI16_aliens)C++14
4 / 100
3 ms384 KiB
#include "aliens.h" #include <vector> #include <iostream> using namespace std; long long take_photos(int n, int m, int k, vector<int> r, vector<int> c) { bool b = true; for (int i = 0; i < n; i++) { if (r[i] != c[i]) b = true; } if (b) { int res = 0; for (int i = 0; i < n; i++) { if (r[i] < c[i]) swap(r[i], c[i]); } for (int i = 0; i < m; i++) { for (int j = 0; j < m; j++) { bool on = false; for (int l = 0; l < n; l++) { if (i <= r[l] && i >= c[l] && j <= r[l] && j >= c[l]) {on = true; break;} } res += on; } } return res; } return 19; }
#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...