結果
| 問題 | No.2609 Decreasing GCDs |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-09-09 23:35:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 1,000 ms |
| + 94µs | |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 95,344 KB |
| 実行使用メモリ | 78,720 KB |
| 最終ジャッジ日時 | 2026-08-25 16:38:04 |
| 合計ジャッジ時間 | 3,523 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 22 |
ソースコード
N = int(input())
GCD = [2]
for _ in range(N-2):
GCD.append(GCD[-1]*2)
GCD = GCD[::-1]
ans = [GCD[0]]
for i in range(N-1):
ans.append(ans[-1]+GCD[i])
print(*ans)
detteiuu