Submission #599280

#TimeUsernameProblemLanguageResultExecution timeMemory
599280gromperenAliens (IOI16_aliens)C++14
0 / 100
1 ms300 KiB
#include <bits/stdc++.h> #include "aliens.h" using namespace std; long long take_photos(int n, int m, int k, vector<int> r, vector<int> c) { vector<vector<int>> vis(m+1, vector<int>(m+1)); int ans = 0; for (int i = 0; i < n; ++i) { for (int x = r[i]; x <= c[i]; ++x) { for (int y = r[i]; y <= c[i]; ++y) { if (vis[x][y]) continue; ans++; vis[x][y] = 1; } } } 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...