結果

問題 No.791 うし数列
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 13:28:03
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 3,578 ms
コンパイル使用メモリ 107,236 KB
実行使用メモリ 23,620 KB
最終ジャッジ日時 2023-09-25 09:16:27
合計ジャッジ時間 4,587 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 57 ms
21,524 KB
testcase_02 AC 57 ms
21,492 KB
testcase_03 AC 57 ms
21,364 KB
testcase_04 WA -
testcase_05 AC 57 ms
21,500 KB
testcase_06 AC 57 ms
21,452 KB
testcase_07 AC 58 ms
21,660 KB
testcase_08 WA -
testcase_09 AC 57 ms
19,448 KB
testcase_10 AC 58 ms
21,464 KB
testcase_11 AC 58 ms
23,556 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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