結果
| 問題 |
No.2609 Decreasing GCDs
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-09-09 23:35:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 171 bytes |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 82,132 KB |
| 実行使用メモリ | 53,684 KB |
| 最終ジャッジ日時 | 2024-09-09 23:35:31 |
| 合計ジャッジ時間 | 2,614 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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