結果
| 問題 | No.1476 esreveR dna esreveR |
| コンテスト | |
| ユーザー |
Nachia
|
| 提出日時 | 2021-04-16 20:03:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 412 bytes |
| コンパイル時間 | 2,886 ms |
| コンパイル使用メモリ | 68,452 KB |
| 最終ジャッジ日時 | 2025-01-20 18:19:54 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 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/2);
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