結果
| 問題 |
No.976 2 の 128 乗と M
|
| ユーザー |
|
| 提出日時 | 2020-02-01 14:53:16 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 736 bytes |
| コンパイル時間 | 960 ms |
| コンパイル使用メモリ | 101,848 KB |
| 最終ジャッジ日時 | 2025-01-08 21:43:56 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 50 |
ソースコード
// _/ _/ _/_/_/ _/
//_/_/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/
// _/ _/ _/ _/ _/ _/ _/_/_/ _/
//_/ _/ _/ _/ _/ _/ _/ _/ _/
// _/_/ _/_/ _/_/ _/_/ _/_/ _/
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const double pi=3.14159265358979323846;
const int inf=2e9;
const ll INF=9e18;
typedef pair<ll,ll> P;
int main() {
cin.tie(0),cout.tie(0);
ios::sync_with_stdio(false);
ll m,ans=1;
cin >> m;
for(int i=0; i<128; i++) {
ans*=2;
ans%=m;
}
cout << ans << endl;
}