結果

問題 No.1476 esreveR dna esreveR
ユーザー 👑 NachiaNachia
提出日時 2021-04-16 20:03:21
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
MLE  
実行時間 -
コード長 410 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 70,008 KB
実行使用メモリ 814,896 KB
最終ジャッジ日時 2023-09-15 20:08:20
合計ジャッジ時間 4,149 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0