結果
| 問題 |
No.976 2 の 128 乗と M
|
| ユーザー |
beet
|
| 提出日時 | 2020-01-31 21:23:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 2,004 ms |
| コンパイル使用メモリ | 193,172 KB |
| 最終ジャッジ日時 | 2025-01-08 20:48:14 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 50 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using Int = long long;
template<typename T1,typename T2> inline void chmin(T1 &a,T2 b){if(a>b) a=b;}
template<typename T1,typename T2> inline void chmax(T1 &a,T2 b){if(a<b) a=b;}
//INSERT ABOVE HERE
signed main(){
long long m;
cin>>m;
const Int n = 128;
Int x=1;
for(Int i=0;i<n;i++){
x=x+x;
x%=m;
}
cout<<x<<endl;
return 0;
}
beet