# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
474270 |
2021-09-17T17:47:10 Z |
ogibogi2004 |
Bomb (IZhO17_bomb) |
C++14 |
|
434 ms |
12700 KB |
#include<bits/stdc++.h>
using namespace std;
const int MAXN=2502;
char t[MAXN][MAXN];
int n,m,maxw,maxh;
int main()
{
cin>>n>>m;
maxh=n;
maxw=m;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
cin>>t[i][j];
}
}
for(int i=1;i<=n;i++)
{
int cnt=0;
for(int j=1;j<=m;j++)
{
if(t[i][j]=='1')cnt++;
else
{
if(cnt>0)maxw=min(maxw,cnt);
}
}
if(cnt>0)maxw=min(maxw,cnt);
}
for(int j=1;j<=m;j++)
{
int cnt=0;
for(int i=1;i<=n;i++)
{
if(t[i][j]=='1')cnt++;
else
{
if(cnt>0)maxh=min(maxh,cnt);
}
}
}
cout<<maxw*maxh<<endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
3 |
Incorrect |
3 ms |
6348 KB |
Output isn't correct |
4 |
Incorrect |
3 ms |
6348 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
7 |
Correct |
0 ms |
204 KB |
Output is correct |
8 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
300 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
14 |
Correct |
1 ms |
304 KB |
Output is correct |
15 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
16 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
17 |
Correct |
1 ms |
460 KB |
Output is correct |
18 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
19 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
20 |
Incorrect |
1 ms |
432 KB |
Output isn't correct |
21 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
22 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
23 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
24 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
25 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
26 |
Correct |
1 ms |
460 KB |
Output is correct |
27 |
Correct |
7 ms |
1096 KB |
Output is correct |
28 |
Incorrect |
8 ms |
1100 KB |
Output isn't correct |
29 |
Incorrect |
9 ms |
1304 KB |
Output isn't correct |
30 |
Incorrect |
12 ms |
1484 KB |
Output isn't correct |
31 |
Incorrect |
10 ms |
1268 KB |
Output isn't correct |
32 |
Incorrect |
11 ms |
1356 KB |
Output isn't correct |
33 |
Incorrect |
14 ms |
1608 KB |
Output isn't correct |
34 |
Incorrect |
6 ms |
1228 KB |
Output isn't correct |
35 |
Incorrect |
17 ms |
1580 KB |
Output isn't correct |
36 |
Incorrect |
13 ms |
1484 KB |
Output isn't correct |
37 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
38 |
Correct |
399 ms |
12468 KB |
Output is correct |
39 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
40 |
Incorrect |
55 ms |
3180 KB |
Output isn't correct |
41 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
42 |
Incorrect |
1 ms |
460 KB |
Output isn't correct |
43 |
Correct |
407 ms |
12520 KB |
Output is correct |
44 |
Incorrect |
14 ms |
1484 KB |
Output isn't correct |
45 |
Incorrect |
401 ms |
12516 KB |
Output isn't correct |
46 |
Correct |
411 ms |
12452 KB |
Output is correct |
47 |
Incorrect |
401 ms |
12516 KB |
Output isn't correct |
48 |
Incorrect |
408 ms |
12444 KB |
Output isn't correct |
49 |
Correct |
401 ms |
12428 KB |
Output is correct |
50 |
Incorrect |
404 ms |
12520 KB |
Output isn't correct |
51 |
Incorrect |
402 ms |
12520 KB |
Output isn't correct |
52 |
Incorrect |
405 ms |
12424 KB |
Output isn't correct |
53 |
Incorrect |
388 ms |
12480 KB |
Output isn't correct |
54 |
Incorrect |
401 ms |
12616 KB |
Output isn't correct |
55 |
Incorrect |
420 ms |
12476 KB |
Output isn't correct |
56 |
Correct |
402 ms |
12420 KB |
Output is correct |
57 |
Incorrect |
401 ms |
12528 KB |
Output isn't correct |
58 |
Incorrect |
403 ms |
12472 KB |
Output isn't correct |
59 |
Incorrect |
403 ms |
12540 KB |
Output isn't correct |
60 |
Correct |
405 ms |
12400 KB |
Output is correct |
61 |
Incorrect |
393 ms |
12484 KB |
Output isn't correct |
62 |
Correct |
431 ms |
12520 KB |
Output is correct |
63 |
Correct |
396 ms |
12480 KB |
Output is correct |
64 |
Correct |
403 ms |
12532 KB |
Output is correct |
65 |
Incorrect |
404 ms |
12484 KB |
Output isn't correct |
66 |
Incorrect |
404 ms |
12544 KB |
Output isn't correct |
67 |
Incorrect |
424 ms |
12512 KB |
Output isn't correct |
68 |
Incorrect |
414 ms |
12516 KB |
Output isn't correct |
69 |
Incorrect |
407 ms |
12612 KB |
Output isn't correct |
70 |
Incorrect |
270 ms |
9072 KB |
Output isn't correct |
71 |
Incorrect |
403 ms |
12520 KB |
Output isn't correct |
72 |
Incorrect |
418 ms |
12504 KB |
Output isn't correct |
73 |
Incorrect |
406 ms |
12524 KB |
Output isn't correct |
74 |
Incorrect |
417 ms |
12412 KB |
Output isn't correct |
75 |
Incorrect |
401 ms |
12484 KB |
Output isn't correct |
76 |
Incorrect |
413 ms |
12408 KB |
Output isn't correct |
77 |
Incorrect |
403 ms |
12508 KB |
Output isn't correct |
78 |
Incorrect |
425 ms |
12464 KB |
Output isn't correct |
79 |
Incorrect |
400 ms |
12484 KB |
Output isn't correct |
80 |
Incorrect |
400 ms |
12484 KB |
Output isn't correct |
81 |
Incorrect |
428 ms |
12484 KB |
Output isn't correct |
82 |
Incorrect |
430 ms |
12460 KB |
Output isn't correct |
83 |
Incorrect |
406 ms |
12700 KB |
Output isn't correct |
84 |
Incorrect |
414 ms |
12520 KB |
Output isn't correct |
85 |
Incorrect |
405 ms |
12536 KB |
Output isn't correct |
86 |
Incorrect |
434 ms |
12468 KB |
Output isn't correct |
87 |
Incorrect |
413 ms |
12452 KB |
Output isn't correct |
88 |
Incorrect |
425 ms |
12484 KB |
Output isn't correct |
89 |
Incorrect |
424 ms |
12568 KB |
Output isn't correct |
90 |
Incorrect |
254 ms |
9028 KB |
Output isn't correct |
91 |
Incorrect |
418 ms |
12436 KB |
Output isn't correct |
92 |
Incorrect |
410 ms |
12640 KB |
Output isn't correct |
93 |
Incorrect |
431 ms |
12640 KB |
Output isn't correct |
94 |
Incorrect |
406 ms |
12504 KB |
Output isn't correct |
95 |
Incorrect |
415 ms |
12416 KB |
Output isn't correct |
96 |
Incorrect |
410 ms |
12480 KB |
Output isn't correct |
97 |
Incorrect |
407 ms |
12464 KB |
Output isn't correct |
98 |
Incorrect |
404 ms |
12472 KB |
Output isn't correct |
99 |
Incorrect |
413 ms |
12556 KB |
Output isn't correct |
100 |
Incorrect |
409 ms |
12520 KB |
Output isn't correct |