結果

問題 No.791 うし数列
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 13:26:35
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 2,171 ms
コンパイル使用メモリ 105,608 KB
実行使用メモリ 23,532 KB
最終ジャッジ日時 2023-09-25 09:14:54
合計ジャッジ時間 4,280 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
21,496 KB
testcase_01 AC 57 ms
23,532 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 55 ms
21,592 KB
testcase_05 AC 57 ms
21,536 KB
testcase_06 WA -
testcase_07 AC 56 ms
23,532 KB
testcase_08 AC 55 ms
21,524 KB
testcase_09 AC 56 ms
21,512 KB
testcase_10 AC 56 ms
21,552 KB
testcase_11 AC 56 ms
21,400 KB
testcase_12 AC 54 ms
21,480 KB
testcase_13 AC 54 ms
19,548 KB
testcase_14 AC 55 ms
21,492 KB
testcase_15 AC 55 ms
23,448 KB
testcase_16 AC 53 ms
21,352 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 System.Linq;

class Program
{
    public void Solve()
    {
        string N = Console.ReadLine();
        if (0 < N.Substring(1).Where(x => x != '3').Count())
        { Console.WriteLine(-1); }
        else
        { Console.WriteLine(N.Substring(1).Length); }
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0