結果

問題 No.632 穴埋め門松列
コンテスト
ユーザー brthyyjp
提出日時 2020-08-26 08:35:08
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 434 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 197 ms
コンパイル使用メモリ 85,120 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2026-05-07 04:51:11
合計ジャッジ時間 1,193 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

C = list(map(str, input().split()))
res = ''
import copy
temp = copy.copy(C)
for i, c in enumerate(temp):
    if c == '?':
        temp[i] = '1'
temp = [int(t) for t in temp]
if temp[1] == max(temp) or temp[1] == min(temp):
    res += '1'

temp = copy.copy(C)
for i, c in enumerate(temp):
    if c == '?':
        temp[i] = '4'
temp = [int(t) for t in temp]
if temp[1] == max(temp) or temp[1] == min(temp):
    res += '4'

print(res)
0