結果
問題 |
No.2007 Arbitrary Mod (Easy)
|
ユーザー |
![]() |
提出日時 | 2022-07-18 15:14:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 1,501 ms |
コンパイル使用メモリ | 167,052 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 15:06:40 |
合計ジャッジ時間 | 7,001 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | AC * 10 WA * 20 |
ソースコード
#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 = 998244353; cout << c << endl; d = d % c; cout << d <<endl; }