結果
| 問題 | No.1476 esreveR dna esreveR |
| コンテスト | |
| ユーザー |
shigeoku
|
| 提出日時 | 2021-04-16 20:44:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 424 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 40,544 KB |
| 最終ジャッジ日時 | 2026-03-24 06:53:28 |
| 合計ジャッジ時間 | 16,348 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 TLE * 5 |
ソースコード
import sys
N = int(input())
def pow_r(x, n):
if n == 0:
return 1
if n % 2 == 0:
return pow_r(x**2, n//2) % 998244353
else:
return x * pow_r(x**2, (n-1)//2) % 998244353
print(pow_r(6, N//2))
shigeoku