結果

問題 No.976 2 の 128 乗と M
ユーザー chacoder1
提出日時 2021-06-15 21:50:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 2,177 ms
コンパイル使用メモリ 190,824 KB
最終ジャッジ日時 2025-01-22 08:25:30
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
static const int mod=1000000007;

signed main(){
  ll m;
  cin>>m;
  ll ans=2;
  for(int i=0;i<127;i++){
    ans%=m;
    ans*=2;
  }
  ans%=m;
  cout<<ans<<endl;
  return 0;
}


0