結果
| 問題 | No.632 穴埋め門松列 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-02-07 01:42:13 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 31 ms / 1,000 ms | 
| コード長 | 359 bytes | 
| コンパイル時間 | 75 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-20 05:30:29 | 
| 合計ジャッジ時間 | 789 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
ソースコード
def kadomatu(c):
    center = c[1]
    if center == max(c):
        return True
    if center == min(c):
        return True
    return False
c = input().split()
ind = c.index('?')
c1 = c.copy()
c4 = c.copy()
c1[ind] = 1
c4[ind] = 4
c1 = list(map(int, c1))
c4 = list(map(int, c4))
if kadomatu(c1):
    print(1, end="")
if kadomatu(c4):
    print(4, end="")
            
            
            
        