結果
| 問題 | No.747 循環小数N桁目 Hard |
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2018-10-20 07:57:27 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 777 ms |
| コンパイル使用メモリ | 102,656 KB |
| 実行使用メモリ | 56,692 KB |
| 最終ジャッジ日時 | 2026-05-13 10:49:30 |
| 合計ジャッジ時間 | 22,171 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 TLE * 2 -- * 70 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System.Numerics;
using System;
public class Hello
{
public static void Main()
{
var n = BigInteger.Parse(Console.ReadLine().Trim());
var k = BigInteger.Parse(Console.ReadLine().Trim());
var a = (int)BigInteger.ModPow(n, k, 6);
Console.WriteLine("428571"[a]);
}
}
bluemegane