結果

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

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
signed main() { 
  ios::sync_with_stdio(false); cin.tie(0);
  long long mod;
  cin >> mod;
  long long ans = 1;
  for (int i = 0; i < 128; i++) {
    ans <<= 1;
    ans %= mod;
  }
  cout << ans << endl;
  return 0;
}
0