結果

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

ソースコード

diff #

#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
using namespace std;


int main()
{
    long long m, t;
    cin >> m;
    t =(long long)pow(2, 60);
    for (int i = 0; i < 68; i++){
        t *= 2;
        t %= m;
    }
    cout << t << endl;
}
0