結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
👑 |
提出日時 | 2025-09-07 09:06:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 244 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-09-07 09:06:08 |
合計ジャッジ時間 | 2,956 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 19 |
ソースコード
R=range I=input H,W=map(int,I().split()) for i in R(H): a,t,s="",0,I()+' '; for j in R(W): if t<1: if s[j]!='.':t=(s[j]!='9')+1 elif s[j]=='.':t=0 a+='Y'if'y'==s[j]and'9'in[s[j-1]if t<2 else "",s[j+1]if t>1 else""]else s[j] print(a)