結果

問題 No.976 2 の 128 乗と M
ユーザー Rubikun
提出日時 2020-01-31 21:23:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 1,575 ms
コンパイル使用メモリ 167,856 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 07:01:45
合計ジャッジ時間 2,530 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(x) (x).begin(),(x).end()
const int mod=1000000007,MAX=200005,INF=1<<30;

int main(){
    
    std::ifstream in("text.txt");
    std::cin.rdbuf(in.rdbuf());
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    ll M;cin>>M;
    ll now=1;
    for(int i=0;i<128;i++){
        now*=2;
        now%=M;
    }
    cout<<now<<endl;
}

0