結果
問題 | No.402 最も海から遠い場所 |
ユーザー |
|
提出日時 | 2017-03-25 11:33:59 |
言語 | PyPy2 (7.3.15) |
結果 |
AC
|
実行時間 | 329 ms / 3,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 1,035 ms |
コンパイル使用メモリ | 76,812 KB |
実行使用メモリ | 149,184 KB |
最終ジャッジ日時 | 2024-07-06 06:01:05 |
合計ジャッジ時間 | 6,169 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#yuki_402 h,w=map(int,raw_input().split()) dp=[[0 for i in xrange(w+2)] for j in xrange(h+2)] res=0 for i in xrange(1,h+1): s=raw_input() for j in xrange(1,w+1): if s[j-1]=='#': dp[i][j]=min(dp[i-1][j-1],dp[i-1][j],dp[i][j-1])+1 res=max(res,dp[i][j]) print (res+1)/2