結果
問題 | No.1476 esreveR dna esreveR |
ユーザー |
![]() |
提出日時 | 2021-04-16 21:31:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 2,344 ms |
コンパイル使用メモリ | 190,240 KB |
最終ジャッジ日時 | 2025-01-20 19:33:11 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:16:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 16 | scanf("%ld", &n); | ~~~~~^~~~~~~~~~~
ソースコード
#include<bits/stdc++.h> using ll = int_fast64_t; ll modpow(ll a, ll p, ll m){ ll ret = 1; while(p){ if(p&1) ret = ret * a % m; a = a * a % m; p >>= 1; } return ret; } int main(){ ll n; scanf("%ld", &n); printf("%ld\n", modpow(6, n/2, 998244353)); }