結果

問題 No.313 π
ユーザー Lily89164763Lily89164763
提出日時 2020-03-13 02:16:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 482 bytes
コンパイル時間 3,639 ms
コンパイル使用メモリ 103,800 KB
実行使用メモリ 22,996 KB
最終ジャッジ日時 2023-08-13 02:40:39
合計ジャッジ時間 7,320 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,856 KB
testcase_01 AC 57 ms
20,872 KB
testcase_02 AC 57 ms
22,996 KB
testcase_03 AC 55 ms
20,816 KB
testcase_04 AC 56 ms
21,016 KB
testcase_05 AC 57 ms
22,840 KB
testcase_06 AC 58 ms
20,820 KB
testcase_07 AC 55 ms
18,872 KB
testcase_08 AC 57 ms
20,880 KB
testcase_09 AC 56 ms
20,836 KB
testcase_10 AC 56 ms
22,864 KB
testcase_11 AC 57 ms
22,836 KB
testcase_12 AC 56 ms
20,920 KB
testcase_13 AC 56 ms
21,008 KB
testcase_14 AC 57 ms
20,812 KB
testcase_15 AC 56 ms
22,884 KB
testcase_16 AC 55 ms
20,852 KB
testcase_17 AC 55 ms
20,904 KB
testcase_18 AC 56 ms
20,872 KB
testcase_19 AC 55 ms
18,768 KB
testcase_20 AC 55 ms
20,936 KB
testcase_21 AC 57 ms
22,912 KB
testcase_22 AC 55 ms
20,860 KB
testcase_23 AC 56 ms
20,932 KB
testcase_24 AC 55 ms
18,884 KB
testcase_25 AC 56 ms
20,844 KB
testcase_26 AC 57 ms
21,028 KB
testcase_27 AC 55 ms
20,856 KB
testcase_28 AC 56 ms
20,916 KB
testcase_29 AC 57 ms
20,832 KB
testcase_30 AC 57 ms
20,860 KB
testcase_31 AC 56 ms
20,836 KB
testcase_32 AC 57 ms
22,976 KB
testcase_33 AC 58 ms
22,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program
{
    public void Solve()
    {
        var cnt = new int[] {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841};
        var s = Console.ReadLine();
        foreach (char c in s)
        {
            if (c == '.') continue;
            cnt[c - '0']--;
        }
        
        Console.WriteLine($"{Array.IndexOf(cnt,-1)} {Array.IndexOf(cnt,1)}");
    }

    public static void Main(string[] args) => new Program().Solve();
}
0