結果

問題 No.632 穴埋め門松列
ユーザー vagueinsigitvagueinsigit
提出日時 2018-02-26 21:11:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-03 16:35:44
合計ジャッジ時間 709 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(str, input().split())
a_list = [a,b,c]
index = a_list.index("?")
del a_list[index]
new_list = [int(i) for i in a_list]
max_number = max(new_list)
min_number = min(new_list)
if max_number - min_number == 2:
    print(int((max_number+min_number)/2))
else:
    A = str(max_number+1)+str(min_number-1)
    print(A)
0