結果
| 問題 | No.1476 esreveR dna esreveR |
| コンテスト | |
| ユーザー |
👑 Nachia
|
| 提出日時 | 2021-04-16 20:03:21 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 1,186 ms |
| コンパイル使用メモリ | 71,168 KB |
| 実行使用メモリ | 1,306,752 KB |
| 最終ジャッジ日時 | 2026-06-19 18:19:03 |
| 合計ジャッジ時間 | 5,231 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 2 |
| other | -- * 6 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
using namespace std;
using ll=long long;
using ull=unsigned long long;
#define rep(i,n) for(int i=0; i<(n); i++)
const ull M = 998244353;
ull powm(ull a,ull i){
if(i==0) return 1;
ull res = powm(a*a%M,i);
if(i%2==1) res = res * a % M;
return res;
}
int main(){
ull N; cin>>N;
N /= 2;
ull ans = powm(6,N);
cout<<ans<<"\n";
return 0;
}
Nachia