結果

問題 No.976 2 の 128 乗と M
ユーザー yukarinoki
提出日時 2020-01-31 22:17:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 55,588 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 08:37:49
合計ジャッジ時間 2,217 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 1 WA * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    unsigned long long int m; cin >> m;
    unsigned long long int f = (long long)4294967296;
    f = f%m;
    f = (f*f)%m;
    f = (f * f)%m;
    cout << f << endl;
    return 0;
}
0