結果
問題 | No.1528 Not 1 |
ユーザー | yakeshiba |
提出日時 | 2021-06-09 20:55:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 545 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 87,316 KB |
実行使用メモリ | 87,208 KB |
最終ジャッジ日時 | 2023-08-19 06:57:54 |
合計ジャッジ時間 | 6,527 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge9 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 69 ms
71,280 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 91 ms
85,116 KB |
testcase_05 | AC | 78 ms
76,564 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 83 ms
79,472 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 70 ms
71,348 KB |
testcase_13 | AC | 69 ms
71,444 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 97 ms
86,964 KB |
ソースコード
n = int(input()) ans = [] if n < 10: if n%2 == 0: for i in range(2,n+1,2): ans.append(i) else: if n <= 5: print(-1) exit() else: ans.append(3) ans.append(6) for i in range(2,n+1,2): if i == 6: continue ans.append(i) print(ans) elif n >= 10: ans.append(5) ans.append(10) for i in range(2,n+1,2): if i == 10: continue ans.append(i) print(*ans)