結果

問題 No.2456 Stamp Art
ユーザー hiro1729hiro1729
提出日時 2023-09-02 09:00:36
言語 cLay
(20240420-1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 219 bytes
コンパイル時間 2,234 ms
コンパイル使用メモリ 176,300 KB
実行使用メモリ 10,308 KB
最終ジャッジ日時 2024-06-11 18:12:23
合計ジャッジ時間 4,231 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 AC 2 ms
6,944 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 AC 30 ms
8,064 KB
testcase_04 AC 2 ms
6,944 KB
testcase_05 AC 1 ms
6,944 KB
testcase_06 AC 30 ms
10,180 KB
testcase_07 AC 28 ms
9,544 KB
testcase_08 AC 28 ms
9,160 KB
testcase_09 AC 30 ms
8,064 KB
testcase_10 AC 30 ms
9,676 KB
testcase_11 AC 30 ms
8,064 KB
testcase_12 AC 29 ms
9,288 KB
testcase_13 AC 29 ms
10,308 KB
testcase_14 AC 29 ms
8,064 KB
testcase_15 AC 29 ms
8,192 KB
testcase_16 AC 18 ms
6,944 KB
testcase_17 AC 2 ms
6,940 KB
testcase_18 AC 2 ms
6,944 KB
testcase_19 AC 21 ms
8,768 KB
testcase_20 AC 28 ms
10,180 KB
testcase_21 AC 27 ms
9,928 KB
testcase_22 AC 29 ms
8,064 KB
testcase_23 AC 3 ms
6,944 KB
testcase_24 AC 4 ms
6,940 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@h,@w,c,a=1e5;string@s[h];
rep[s](i,h){c=0;rep[i](j,w){if(j=='.'&&c)a=min(a,c),c=0;if(j=='#')c++;}if(c)a=min(a,c);}
rep(i,w){c=0;rep(j,h){if(s[j][i]=='.'&&c)a=min(a,c),c=0;if(s[j][i]=='#')c++;}if(c)a=min(a,c);}
wt(a);
0