結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー GrilledSushi
提出日時 2022-07-15 22:00:51
言語 Ruby
(3.4.1)
結果
RE  
実行時間 -
コード長 228 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-06-27 17:55:36
合計ジャッジ時間 7,706 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#include <iostream>
#include <cmath>

int main(){
    unsigned int a;
    unsigned int n;
    std::cin >> a >> n;
    unsigned int r = 10000000;
    std::cout << r << std::endl << std::pow(a, n) % r << std::endl;
    return 0;
}
0