結果

問題 No.632 穴埋め門松列
ユーザー brthyyjpbrthyyjp
提出日時 2020-08-26 08:35:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 434 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2024-04-24 14:16:34
合計ジャッジ時間 1,012 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
53,248 KB
testcase_01 AC 42 ms
53,120 KB
testcase_02 AC 46 ms
53,632 KB
testcase_03 AC 41 ms
53,376 KB
testcase_04 AC 40 ms
53,248 KB
testcase_05 AC 40 ms
52,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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