結果
問題 | No.1476 esreveR dna esreveR |
ユーザー | さかぽん |
提出日時 | 2021-04-16 22:41:49 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 2,073 ms |
コンパイル使用メモリ | 100,608 KB |
実行使用メモリ | 22,432 KB |
最終ジャッジ日時 | 2023-09-16 01:46:07 |
合計ジャッジ時間 | 3,343 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 53 ms
18,712 KB |
testcase_01 | AC | 54 ms
20,596 KB |
testcase_02 | AC | 55 ms
20,800 KB |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | AC | 55 ms
20,668 KB |
testcase_06 | RE | - |
testcase_07 | RE | - |
コンパイルメッセージ
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; } }