結果
問題 |
No.1476 esreveR dna esreveR
|
ユーザー |
|
提出日時 | 2021-04-16 22:41:49 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 2,304 ms |
コンパイル使用メモリ | 102,912 KB |
実行使用メモリ | 17,408 KB |
最終ジャッジ日時 | 2024-07-03 02:56:21 |
合計ジャッジ時間 | 3,033 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 RE * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class A { static void Main() { var n = int.Parse(Console.ReadLine()); Console.WriteLine(MPow(6, n / 2)); } const long M = 998244353; static long MPow(long b, long i) { long r = 1; for (; i != 0; b = b * b % M, i >>= 1) if ((i & 1) != 0) r = r * b % M; return r; } }