結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
![]() |
提出日時 | 2022-07-18 15:20:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 2,077 ms |
コンパイル使用メモリ | 192,956 KB |
最終ジャッジ日時 | 2025-01-30 10:49:43 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | AC * 11 WA * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; int d = a; for(int i=0; i < b - 1; i++) { d *= a; } int c = 10000000; cout << c << endl; d = d % c; cout << d <<endl; }