답안 #48402

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
48402 2018-05-12T18:59:57 Z Pajaraja Bomb (IZhO17_bomb) C++17
12 / 100
302 ms 131072 KB
#include <bits/stdc++.h>
using namespace std;
bool t[2507][2507];
int main()
{
	int n,m,lh=2507,lv=2507;
	cin>>n>>m;
	for(int i=0;i<n;i++)
	{
		string s;
		cin>>s;
		for(int j=0;j<m;j++) t[i][j]=(s[j]=='1'?1:0);
	}
	for(int i=0;i<n;i++)
	{
		int cur=0;
		for(int j=0;j<m;j++)
		{
			if(t[i][j]==0) 
			{
				if(cur!=0) lh=min(lh,cur);
				cur=0;
			}
			else cur++;
		}
	}
	for(int i=0;i<m;i++)
	{
		int cur=0;
		for(int j=0;j<n;j++)
		{
			if(t[j][i]==0)
			{
				if(cur!=0) lv=min(lv,cur);
				cur=0;
			}
			else cur++;
		}
	}
	printf("%d",lv*lh);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 248 KB Output isn't correct
2 Incorrect 2 ms 488 KB Output isn't correct
3 Incorrect 6 ms 6560 KB Output isn't correct
4 Incorrect 6 ms 6620 KB Output isn't correct
5 Incorrect 2 ms 6620 KB Output isn't correct
6 Incorrect 2 ms 6620 KB Output isn't correct
7 Correct 2 ms 6620 KB Output is correct
8 Incorrect 2 ms 6620 KB Output isn't correct
9 Incorrect 2 ms 6620 KB Output isn't correct
10 Incorrect 2 ms 6620 KB Output isn't correct
11 Incorrect 2 ms 6620 KB Output isn't correct
12 Incorrect 2 ms 6620 KB Output isn't correct
13 Incorrect 2 ms 6620 KB Output isn't correct
14 Correct 2 ms 6620 KB Output is correct
15 Incorrect 3 ms 6620 KB Output isn't correct
16 Incorrect 2 ms 6620 KB Output isn't correct
17 Correct 2 ms 6620 KB Output is correct
18 Incorrect 2 ms 6620 KB Output isn't correct
19 Incorrect 2 ms 6620 KB Output isn't correct
20 Incorrect 2 ms 6620 KB Output isn't correct
21 Incorrect 2 ms 6620 KB Output isn't correct
22 Incorrect 2 ms 6620 KB Output isn't correct
23 Incorrect 3 ms 6620 KB Output isn't correct
24 Incorrect 2 ms 6620 KB Output isn't correct
25 Incorrect 3 ms 6620 KB Output isn't correct
26 Correct 2 ms 6620 KB Output is correct
27 Correct 5 ms 6620 KB Output is correct
28 Incorrect 7 ms 6620 KB Output isn't correct
29 Incorrect 7 ms 6620 KB Output isn't correct
30 Incorrect 10 ms 6620 KB Output isn't correct
31 Incorrect 8 ms 6620 KB Output isn't correct
32 Incorrect 8 ms 6620 KB Output isn't correct
33 Incorrect 10 ms 6620 KB Output isn't correct
34 Incorrect 5 ms 6620 KB Output isn't correct
35 Incorrect 10 ms 6620 KB Output isn't correct
36 Incorrect 10 ms 6620 KB Output isn't correct
37 Incorrect 2 ms 6620 KB Output isn't correct
38 Incorrect 244 ms 14732 KB Output isn't correct
39 Incorrect 2 ms 14732 KB Output isn't correct
40 Incorrect 31 ms 14732 KB Output isn't correct
41 Incorrect 2 ms 14732 KB Output isn't correct
42 Incorrect 2 ms 14732 KB Output isn't correct
43 Correct 286 ms 21548 KB Output is correct
44 Incorrect 10 ms 21548 KB Output isn't correct
45 Incorrect 254 ms 27832 KB Output isn't correct
46 Correct 288 ms 34088 KB Output is correct
47 Incorrect 268 ms 40272 KB Output isn't correct
48 Incorrect 236 ms 46328 KB Output isn't correct
49 Correct 295 ms 52328 KB Output is correct
50 Incorrect 273 ms 58712 KB Output isn't correct
51 Incorrect 233 ms 64600 KB Output isn't correct
52 Incorrect 294 ms 70856 KB Output isn't correct
53 Incorrect 244 ms 76968 KB Output isn't correct
54 Incorrect 240 ms 82984 KB Output isn't correct
55 Incorrect 231 ms 89144 KB Output isn't correct
56 Incorrect 235 ms 95240 KB Output isn't correct
57 Incorrect 269 ms 101368 KB Output isn't correct
58 Incorrect 266 ms 107496 KB Output isn't correct
59 Incorrect 228 ms 113624 KB Output isn't correct
60 Correct 236 ms 119848 KB Output is correct
61 Incorrect 257 ms 126024 KB Output isn't correct
62 Correct 233 ms 131072 KB Output is correct
63 Correct 244 ms 131072 KB Output is correct
64 Correct 230 ms 131072 KB Output is correct
65 Incorrect 238 ms 131072 KB Output isn't correct
66 Incorrect 237 ms 131072 KB Output isn't correct
67 Incorrect 235 ms 131072 KB Output isn't correct
68 Incorrect 247 ms 131072 KB Output isn't correct
69 Incorrect 246 ms 131072 KB Output isn't correct
70 Incorrect 149 ms 131072 KB Output isn't correct
71 Incorrect 230 ms 131072 KB Output isn't correct
72 Incorrect 286 ms 131072 KB Output isn't correct
73 Incorrect 232 ms 131072 KB Output isn't correct
74 Incorrect 231 ms 131072 KB Output isn't correct
75 Incorrect 234 ms 131072 KB Output isn't correct
76 Incorrect 257 ms 131072 KB Output isn't correct
77 Incorrect 232 ms 131072 KB Output isn't correct
78 Incorrect 231 ms 131072 KB Output isn't correct
79 Incorrect 232 ms 131072 KB Output isn't correct
80 Incorrect 289 ms 131072 KB Output isn't correct
81 Incorrect 247 ms 131072 KB Output isn't correct
82 Incorrect 245 ms 131072 KB Output isn't correct
83 Incorrect 228 ms 131072 KB Output isn't correct
84 Incorrect 233 ms 131072 KB Output isn't correct
85 Incorrect 238 ms 131072 KB Output isn't correct
86 Incorrect 231 ms 131072 KB Output isn't correct
87 Incorrect 231 ms 131072 KB Output isn't correct
88 Incorrect 302 ms 131072 KB Output isn't correct
89 Incorrect 242 ms 131072 KB Output isn't correct
90 Incorrect 148 ms 131072 KB Output isn't correct
91 Incorrect 234 ms 131072 KB Output isn't correct
92 Incorrect 273 ms 131072 KB Output isn't correct
93 Incorrect 238 ms 131072 KB Output isn't correct
94 Incorrect 258 ms 131072 KB Output isn't correct
95 Incorrect 251 ms 131072 KB Output isn't correct
96 Incorrect 240 ms 131072 KB Output isn't correct
97 Incorrect 242 ms 131072 KB Output isn't correct
98 Incorrect 235 ms 131072 KB Output isn't correct
99 Incorrect 237 ms 131072 KB Output isn't correct
100 Incorrect 234 ms 131072 KB Output isn't correct