結果
| 問題 | No.2782 メルセンヌ数総乗 |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-06-14 22:00:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 155 bytes |
| 記録 | |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 85,512 KB |
| 実行使用メモリ | 53,880 KB |
| 最終ジャッジ日時 | 2026-03-06 01:35:18 |
| 合計ジャッジ時間 | 1,514 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
N = int(input())
m = pow(2, N+1) - 1
x = 1
for i in range(2, N+1):
x *= (pow(2, i) - 1)
x %= m
if x == 0:
print('Yes')
else:
print('No')
norioc