結果

問題 No.976 2 の 128 乗と M
ユーザー sigmani
提出日時 2022-02-09 15:28:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 434 bytes
コンパイル時間 953 ms
コンパイル使用メモリ 91,056 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-24 18:05:23
合計ジャッジ時間 2,790 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<bitset>
#include <vector>
#include<bitset>
#include <iomanip>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <climits>
#include <queue>
using namespace std;


int main() {
	
	long long M;
	cin >> M;
	long long answer = 1;
	for (int i = 1; i <= 128; i++) {
		answer = answer * 2;
		answer = answer % M;
	}
	cout << answer;

	
}
0