結果
| 問題 |
No.976 2 の 128 乗と M
|
| ユーザー |
hanbei_dayo
|
| 提出日時 | 2020-03-07 01:24:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 463 bytes |
| コンパイル時間 | 662 ms |
| コンパイル使用メモリ | 82,348 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 11:01:27 |
| 合計ジャッジ時間 | 2,201 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 50 |
ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<utility>
#include<map>
#include<set>
#include<queue>
#include<functional>
#include<math.h>
using namespace std;
#define N (1000000000+7)
#define INF 1e16
typedef long long ll;
typedef pair<int,int> P;
ll c[110][110];
int main(void){
ll ans = 1;
ll m;
cin>>m;
for(ll i=0;i<128;i++){
ans*=2;
ans = ans%m;
}
cout<<ans<<endl;
return 0;
}
hanbei_dayo