結果
問題 |
No.2609 Decreasing GCDs
|
ユーザー |
|
提出日時 | 2024-02-03 18:26:52 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 82,576 KB |
実行使用メモリ | 53,940 KB |
最終ジャッジ日時 | 2024-09-28 10:57:00 |
合計ジャッジ時間 | 4,684 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 22 |
ソースコード
N = int(input()) ans = [2 ** (N - 2)] now = 2 ** (N - 1) for _ in range(N // 2): now //= 2 copy = now t = ans[-1] while now <= t:now *= 3 ans.append(now) while copy <= now:copy *= 5 ans.append(copy) print(*ans[:N])