結果
| 問題 | 
                            No.2007 Arbitrary Mod (Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             259_Momone
                         | 
                    
| 提出日時 | 2022-07-15 21:21:38 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 272 bytes | 
| コンパイル時間 | 4,609 ms | 
| コンパイル使用メモリ | 248,004 KB | 
| 最終ジャッジ日時 | 2025-01-30 07:19:28 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
#include <bits/extc++.h>
#include <atcoder/modint>
int main(){
    using namespace std;
    using modint = atcoder::static_modint<998244353>;
    unsigned long a, n;
    cin >> a >> n;
    cout << 998244353 << endl << modint::raw(a).pow(n).val() << endl;
    return 0;
}
            
            
            
        
            
259_Momone