結果

問題 No.976 2 の 128 乗と M
ユーザー kenta255
提出日時 2020-02-01 00:31:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 1,714 ms
コンパイル使用メモリ 191,476 KB
最終ジャッジ日時 2025-01-08 21:28:47
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;


int main(){
	ll M,ans=1;
	cin >> M;
	for(int i=0;i<128;i++){
		(ans *= 2) %= M;
	}
	cout << ans << endl;
}
0