# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
386372 |
2021-04-06T13:14:29 Z |
vanic |
Bomb (IZhO17_bomb) |
C++14 |
|
1000 ms |
2028 KB |
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <set>
#include <stack>
#include <vector>
#include <queue>
#include <map>
#include <cstring>
#include <array>
#include <bitset>
using namespace std;
const int maxn=2505;
bitset < maxn > a[maxn];
bitset < maxn > b[maxn];
int n, m;
bool provjeri(int x, int y){
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
b[i][j]=a[i][j];
}
}
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(b[i][j]){
for(int k=i; k<i+x; k++){
for(int l=j; l<j+y; l++){
if(k>=n || l>=m || !b[k][l]){
return 0;
}
b[k][l]=0;
}
}
}
}
}
return 1;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> n >> m;
string s;
for(int i=0; i<n; i++){
cin >> s;
for(int j=0; j<m; j++){
if(s[j]=='1'){
a[i][j]=1;
}
}
}
int maksi=0;
for(int i=1; i<=n; i++){
for(int j=1; j<=m; j++){
if(provjeri(i, j)){
maksi=max(maksi, i*j);
}
}
}
cout << maksi << '\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
3 |
Incorrect |
24 ms |
1900 KB |
Output isn't correct |
4 |
Incorrect |
30 ms |
1900 KB |
Output isn't correct |
5 |
Incorrect |
21 ms |
364 KB |
Output isn't correct |
6 |
Incorrect |
5 ms |
364 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
9 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
13 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
14 |
Correct |
1 ms |
364 KB |
Output is correct |
15 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
16 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
17 |
Incorrect |
69 ms |
364 KB |
Output isn't correct |
18 |
Incorrect |
64 ms |
364 KB |
Output isn't correct |
19 |
Incorrect |
186 ms |
492 KB |
Output isn't correct |
20 |
Incorrect |
203 ms |
364 KB |
Output isn't correct |
21 |
Incorrect |
75 ms |
632 KB |
Output isn't correct |
22 |
Incorrect |
165 ms |
364 KB |
Output isn't correct |
23 |
Incorrect |
332 ms |
364 KB |
Output isn't correct |
24 |
Incorrect |
117 ms |
448 KB |
Output isn't correct |
25 |
Incorrect |
336 ms |
492 KB |
Output isn't correct |
26 |
Incorrect |
366 ms |
492 KB |
Output isn't correct |
27 |
Execution timed out |
1087 ms |
492 KB |
Time limit exceeded |
28 |
Execution timed out |
1085 ms |
492 KB |
Time limit exceeded |
29 |
Execution timed out |
1089 ms |
620 KB |
Time limit exceeded |
30 |
Execution timed out |
1095 ms |
620 KB |
Time limit exceeded |
31 |
Execution timed out |
1098 ms |
492 KB |
Time limit exceeded |
32 |
Execution timed out |
1095 ms |
620 KB |
Time limit exceeded |
33 |
Execution timed out |
1097 ms |
620 KB |
Time limit exceeded |
34 |
Execution timed out |
1082 ms |
492 KB |
Time limit exceeded |
35 |
Execution timed out |
1097 ms |
492 KB |
Time limit exceeded |
36 |
Execution timed out |
1089 ms |
620 KB |
Time limit exceeded |
37 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
38 |
Execution timed out |
1097 ms |
1900 KB |
Time limit exceeded |
39 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
40 |
Execution timed out |
1093 ms |
876 KB |
Time limit exceeded |
41 |
Incorrect |
2 ms |
364 KB |
Output isn't correct |
42 |
Incorrect |
347 ms |
492 KB |
Output isn't correct |
43 |
Execution timed out |
1097 ms |
1900 KB |
Time limit exceeded |
44 |
Execution timed out |
1094 ms |
620 KB |
Time limit exceeded |
45 |
Execution timed out |
1098 ms |
1900 KB |
Time limit exceeded |
46 |
Execution timed out |
1077 ms |
1900 KB |
Time limit exceeded |
47 |
Execution timed out |
1087 ms |
1900 KB |
Time limit exceeded |
48 |
Execution timed out |
1091 ms |
1900 KB |
Time limit exceeded |
49 |
Execution timed out |
1093 ms |
1940 KB |
Time limit exceeded |
50 |
Execution timed out |
1086 ms |
1900 KB |
Time limit exceeded |
51 |
Execution timed out |
1075 ms |
1900 KB |
Time limit exceeded |
52 |
Execution timed out |
1095 ms |
1900 KB |
Time limit exceeded |
53 |
Execution timed out |
1084 ms |
1900 KB |
Time limit exceeded |
54 |
Execution timed out |
1090 ms |
1900 KB |
Time limit exceeded |
55 |
Execution timed out |
1082 ms |
1900 KB |
Time limit exceeded |
56 |
Execution timed out |
1100 ms |
1900 KB |
Time limit exceeded |
57 |
Execution timed out |
1087 ms |
1772 KB |
Time limit exceeded |
58 |
Execution timed out |
1084 ms |
2028 KB |
Time limit exceeded |
59 |
Execution timed out |
1093 ms |
1772 KB |
Time limit exceeded |
60 |
Execution timed out |
1097 ms |
1900 KB |
Time limit exceeded |
61 |
Execution timed out |
1092 ms |
1900 KB |
Time limit exceeded |
62 |
Execution timed out |
1093 ms |
1900 KB |
Time limit exceeded |
63 |
Execution timed out |
1091 ms |
1900 KB |
Time limit exceeded |
64 |
Execution timed out |
1069 ms |
1900 KB |
Time limit exceeded |
65 |
Execution timed out |
1095 ms |
1900 KB |
Time limit exceeded |
66 |
Execution timed out |
1081 ms |
1900 KB |
Time limit exceeded |
67 |
Execution timed out |
1090 ms |
1900 KB |
Time limit exceeded |
68 |
Execution timed out |
1090 ms |
1900 KB |
Time limit exceeded |
69 |
Execution timed out |
1078 ms |
1772 KB |
Time limit exceeded |
70 |
Execution timed out |
1087 ms |
1260 KB |
Time limit exceeded |
71 |
Execution timed out |
1099 ms |
1644 KB |
Time limit exceeded |
72 |
Execution timed out |
1091 ms |
1644 KB |
Time limit exceeded |
73 |
Execution timed out |
1091 ms |
1644 KB |
Time limit exceeded |
74 |
Execution timed out |
1090 ms |
1772 KB |
Time limit exceeded |
75 |
Execution timed out |
1096 ms |
1772 KB |
Time limit exceeded |
76 |
Execution timed out |
1096 ms |
1772 KB |
Time limit exceeded |
77 |
Execution timed out |
1094 ms |
1772 KB |
Time limit exceeded |
78 |
Execution timed out |
1091 ms |
1772 KB |
Time limit exceeded |
79 |
Execution timed out |
1089 ms |
1388 KB |
Time limit exceeded |
80 |
Execution timed out |
1092 ms |
1388 KB |
Time limit exceeded |
81 |
Execution timed out |
1091 ms |
1388 KB |
Time limit exceeded |
82 |
Execution timed out |
1089 ms |
1900 KB |
Time limit exceeded |
83 |
Execution timed out |
1088 ms |
1900 KB |
Time limit exceeded |
84 |
Execution timed out |
1091 ms |
1260 KB |
Time limit exceeded |
85 |
Execution timed out |
1088 ms |
1900 KB |
Time limit exceeded |
86 |
Execution timed out |
1092 ms |
1900 KB |
Time limit exceeded |
87 |
Execution timed out |
1074 ms |
1900 KB |
Time limit exceeded |
88 |
Execution timed out |
1077 ms |
1900 KB |
Time limit exceeded |
89 |
Execution timed out |
1093 ms |
1900 KB |
Time limit exceeded |
90 |
Execution timed out |
1088 ms |
1644 KB |
Time limit exceeded |
91 |
Execution timed out |
1087 ms |
1900 KB |
Time limit exceeded |
92 |
Execution timed out |
1097 ms |
1900 KB |
Time limit exceeded |
93 |
Execution timed out |
1043 ms |
1900 KB |
Time limit exceeded |
94 |
Execution timed out |
1090 ms |
1900 KB |
Time limit exceeded |
95 |
Execution timed out |
1095 ms |
1900 KB |
Time limit exceeded |
96 |
Execution timed out |
1093 ms |
1900 KB |
Time limit exceeded |
97 |
Execution timed out |
1081 ms |
1900 KB |
Time limit exceeded |
98 |
Execution timed out |
1090 ms |
1900 KB |
Time limit exceeded |
99 |
Execution timed out |
1086 ms |
1900 KB |
Time limit exceeded |
100 |
Execution timed out |
1089 ms |
1900 KB |
Time limit exceeded |