結果
| 問題 | No.2609 Decreasing GCDs |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-03 18:26:52 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 95,816 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-09-05 15:46:18 |
| 合計ジャッジ時間 | 5,090 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])