結果

問題 No.1114 足し算盆に返らず
ユーザー tomoyaatcodertomoyaatcoder
提出日時 2020-08-01 03:40:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 78,368 KB
最終ジャッジ日時 2023-09-21 08:49:54
合計ジャッジ時間 9,995 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 86 ms
77,704 KB
testcase_02 AC 87 ms
77,972 KB
testcase_03 AC 85 ms
77,788 KB
testcase_04 AC 85 ms
77,848 KB
testcase_05 WA -
testcase_06 AC 85 ms
77,872 KB
testcase_07 AC 84 ms
77,864 KB
testcase_08 AC 84 ms
77,332 KB
testcase_09 AC 83 ms
77,248 KB
testcase_10 AC 84 ms
77,288 KB
testcase_11 WA -
testcase_12 AC 86 ms
77,612 KB
testcase_13 AC 85 ms
77,668 KB
testcase_14 AC 83 ms
76,408 KB
testcase_15 WA -
testcase_16 AC 84 ms
77,236 KB
testcase_17 AC 85 ms
77,564 KB
testcase_18 WA -
testcase_19 AC 84 ms
77,072 KB
testcase_20 AC 88 ms
77,924 KB
testcase_21 AC 81 ms
77,072 KB
testcase_22 AC 72 ms
71,316 KB
testcase_23 AC 72 ms
71,352 KB
testcase_24 AC 71 ms
71,100 KB
testcase_25 WA -
testcase_26 AC 71 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_ok(a):
    if a % 2 == 0 and a // 2 % 2 == 0:
        return True

N = int(input())

ans1 = [i for i in range(1, N + 1, 2)]
if is_ok(N):
    ans1.append(N)
print(*ans1)

0