# 官方题解|欢乐赛#40
2025-02-11 15:56:42
发布于:浙江
8阅读
0回复
0点赞
T3
本题只要利用for循环直接模拟即可,但是注意要开long long,另外要不断的取模哦。
#include <bits/stdc++.h>
using namespace std;
   
const int N = 200010, mod = 998244353;
int a[N], n, m, k;
 
int main(){
    cin >> n;
    long long ans = 1;
    for(int i = 1; i <= n; i ++ ){
        ans = ans * 114514 % mod;
    }
    cout << ans;
    return 0;
}
这里空空如也

有帮助,赞一个