結果
| 問題 |
No.2609 Decreasing GCDs
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-01-19 21:31:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 1,000 ms |
| コード長 | 243 bytes |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-09-28 04:02:21 |
| 合計ジャッジ時間 | 2,184 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 22 |
ソースコード
from math import gcd
N = int(input())
ans = [0] * N
D = []
for i in range(N):
ans[i] = 2 ** (25 - i) * (2 ** (i+1) - 1)
# if ans[i] > 10 ** 8:
# print("error")
# if i:
# D.append(gcd(ans[i], ans[i-1]))
print(*ans)
rlangevin