結果
問題 | No.632 穴埋め門松列 |
ユーザー |
![]() |
提出日時 | 2024-06-08 03:45:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-26 21:00:37 |
合計ジャッジ時間 | 989 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
import sys input = sys.stdin.readline C=input().split() x=C.index("?") ANS="" C[x]="1" if len(set(C))==3 and (max(C)==C[1] or min(C)==C[1]): ANS+="1" C[x]="4" if len(set(C))==3 and (max(C)==C[1] or min(C)==C[1]): ANS+="4" print(ANS)