結果
| 問題 | 
                            No.2782 メルセンヌ数総乗
                             | 
                    
| コンテスト | |
| ユーザー | 
                             norioc
                         | 
                    
| 提出日時 | 2024-06-14 22:00:05 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 37 ms / 2,000 ms | 
| コード長 | 155 bytes | 
| コンパイル時間 | 340 ms | 
| コンパイル使用メモリ | 82,424 KB | 
| 実行使用メモリ | 53,664 KB | 
| 最終ジャッジ日時 | 2024-06-14 22:00:07 | 
| 合計ジャッジ時間 | 1,722 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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