結果
| 問題 |
No.2609 Decreasing GCDs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-03 18:28:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 603 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-09-28 10:57:13 |
| 合計ジャッジ時間 | 5,579 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])