結果

問題 No.1114 足し算盆に返らず
ユーザー brthyyjpbrthyyjp
提出日時 2020-07-17 21:31:54
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 86,736 KB
最終ジャッジ日時 2023-08-19 23:53:02
合計ジャッジ時間 8,424 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
86,632 KB
testcase_01 AC 97 ms
86,580 KB
testcase_02 AC 97 ms
86,724 KB
testcase_03 AC 90 ms
82,700 KB
testcase_04 AC 94 ms
86,488 KB
testcase_05 AC 86 ms
80,268 KB
testcase_06 AC 96 ms
86,664 KB
testcase_07 AC 97 ms
86,736 KB
testcase_08 AC 89 ms
80,872 KB
testcase_09 AC 86 ms
79,860 KB
testcase_10 AC 87 ms
80,968 KB
testcase_11 AC 81 ms
76,520 KB
testcase_12 AC 88 ms
81,812 KB
testcase_13 AC 96 ms
86,372 KB
testcase_14 AC 81 ms
76,680 KB
testcase_15 AC 85 ms
79,396 KB
testcase_16 AC 89 ms
80,272 KB
testcase_17 AC 91 ms
81,740 KB
testcase_18 AC 84 ms
77,708 KB
testcase_19 AC 84 ms
79,316 KB
testcase_20 AC 95 ms
86,604 KB
testcase_21 AC 85 ms
79,016 KB
testcase_22 AC 69 ms
71,220 KB
testcase_23 AC 69 ms
71,328 KB
testcase_24 AC 70 ms
71,372 KB
testcase_25 AC 71 ms
71,320 KB
testcase_26 AC 71 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

A = set()
for i in reversed(range(1, n+1)):
    if n-i in A or n-i == i:
        break
    else:
        A.add(i)
print(*list(A))
0