結果

問題 No.481 1から10
ユーザー pea vava
提出日時 2020-08-29 19:54:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-14 17:39:57
合計ジャッジ時間 997 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

num_list = list(map(int, (input().split())))
num_list.sort()

A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

if 10 not in num_list:
    print(10)
elif 10 in num_list:
    dif_list = []
    for num, a in zip(num_list, A): #リストの各要素同士を引く
        dif = a - num
        dif_list.append(dif)
    print(dif_list.index(-1)+1)
0