結果
| 問題 | 
                            No.2007 Arbitrary Mod (Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-05-08 21:30:32 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 277 bytes | 
| コンパイル時間 | 446 ms | 
| コンパイル使用メモリ | 69,112 KB | 
| 最終ジャッジ日時 | 2025-02-12 21:02:39 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
#include <atcoder/modint>
#include <iostream>
using namespace std;
using namespace atcoder;
using mint = modint998244353;
int main() {
	int a;
	long long n;
	cin >> a >> n;
	mint b = a;
    mint ans = b.pow(n);
    cout << 998244353 << endl;
    cout << ans.val() << endl;
}