# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
423299 | antimirage | Bomb (IZhO17_bomb) | C++14 | 963 ms | 75104 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
* let's for fixed width X find the maximum valid height Y, denote it by ans[X].
* upper bound of Y for every X is ans[1].
*
*/
#include <iostream>
#include <vector>
#include <algorithm>
#include <assert.h>
using namespace std;
int main() {
int n, m, res = 0;
cin >> n >> m;
vector <vector <int>> a(n + 5, vector<int>(m + 5, 0));
for (int i = 1; i <= n; i++) {
scanf("\n");
for (int j = 1; j <= m; j++) {
char ch;
scanf("%c", &ch);
a[i][j] = ch - 48;
}
}
vector <vector <int>> up(n + 5, vector<int>(m + 5, 0));
vector <vector <int>> dn(n + 5, vector<int>(m + 5, 0));
for (int j = 1; j <= m; j++) {
for (int i = 1; i <= n; i++) {
up[i][j] = a[i][j] ? up[i - 1][j] + 1 : 0;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |