結果

問題 No.2456 Stamp Art
ユーザー hiro1729hiro1729
提出日時 2023-09-02 09:00:36
言語 cLay
(20241019-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
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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