結果
| 問題 | No.2609 Decreasing GCDs |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-03 18:28:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 85,832 KB |
| 実行使用メモリ | 53,820 KB |
| 最終ジャッジ日時 | 2026-04-15 02:28:16 |
| 合計ジャッジ時間 | 4,040 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 22 |
ソースコード
N = int(input()) ans = [2 ** (N - 2)] now = 2 ** (N - 1) for _ in range(N // 2): copy = now // 2 t = ans[-1] while now <= t:now *= 3 ans.append(now) while copy <= now:copy *= 5 ans.append(copy) now //= 2 print(*ans[:N])