結果

問題 No.744 循環小数N桁目 Easy
ユーザー clocklrclocklr
提出日時 2018-10-19 22:20:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 5,677 ms
コンパイル使用メモリ 98,420 KB
実行使用メモリ 22,804 KB
最終ジャッジ日時 2023-08-12 01:19:44
合計ジャッジ時間 3,300 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,720 KB
testcase_01 AC 53 ms
18,632 KB
testcase_02 AC 54 ms
20,680 KB
testcase_03 AC 54 ms
20,792 KB
testcase_04 AC 54 ms
20,672 KB
testcase_05 AC 54 ms
20,648 KB
testcase_06 AC 54 ms
20,772 KB
testcase_07 AC 55 ms
22,804 KB
testcase_08 AC 55 ms
20,624 KB
testcase_09 AC 54 ms
22,712 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using static System.Console;
using static System.Math;
using System.Linq;

public class Hello{
    public static void Main(){
        int a = int.Parse(ReadLine())-1;
        a %= 6;
        string b = "285714";
        WriteLine(b[a]);
    }
}
0