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