結果

問題 No.976 2 の 128 乗と M
ユーザー yukarinoki
提出日時 2020-01-31 22:18:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 987 ms
コンパイル使用メモリ 54,872 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 08:42:00
合計ジャッジ時間 2,191 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 = (unsigned long long)4294967296;
    f = f%m;
    f = (f*f)%m;
    f = (f * f)%m;
    cout << f << endl;
    return 0;
}
0