結果
| 問題 |
No.747 循環小数N桁目 Hard
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2018-10-20 07:57:27 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 3,061 ms |
| コンパイル使用メモリ | 105,812 KB |
| 実行使用メモリ | 110,460 KB |
| 最終ジャッジ日時 | 2024-11-19 02:04:45 |
| 合計ジャッジ時間 | 194,303 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 69 TLE * 51 |
コンパイルメッセージ
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