# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
91357 | emil_physmath | Bomb (IZhO17_bomb) | C++17 | 353 ms | 132096 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <stdio.h>
using namespace std;
bool a[2505][2505], temp[2505][2505];
int FindLen(int n, int m);
int main()
{
int n, m;
cin>>n>>m;
for (int i=0; i<n; i++)
for (int j=0; j<m; j++)
{
char temp;
scanf(" %c", &temp);
a[i][j]=(temp=='1'?true:false);
}
int len=FindLen(n, m);
for (int i=0; i<n; i++)
for (int j=0; j<m; j++)
temp[j][i]=a[i][j];
swap(n, m);
for (int i=0; i<n; i++)
for (int j=0; j<m; j++)
a[i][j]=temp[i][j];
int wid=FindLen(n, m);
cout<<wid*len<<'\n';
char I;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |