結果

問題 No.2079 aaabbc
ユーザー rieaaddlreiuu
提出日時 2022-10-22 08:56:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 330 bytes
コンパイル時間 1,529 ms
コンパイル使用メモリ 164,880 KB
実行使用メモリ 13,760 KB
最終ジャッジ日時 2024-07-01 13:02:14
合計ジャッジ時間 9,221 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 2
other WA * 2 TLE * 2 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <vector>
#include <tuple>
#include <regex>
#include <string>
#include <stack>
#include <algorithm>
using namespace std;

int main(){
    int N;
    int ans = 1;
    scanf("%d",&N);
    N = N % 998244352;
    for(int i=0;i<N;i++){
        ans = (ans * 3) % 998244353;
    }
    printf("%d",ans);
}
0