結果

問題 No.791 うし数列
ユーザー keymoonkeymoon
提出日時 2019-02-22 21:24:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 446 bytes
コンパイル時間 2,315 ms
コンパイル使用メモリ 104,172 KB
実行使用メモリ 27,424 KB
最終ジャッジ日時 2023-08-16 15:23:15
合計ジャッジ時間 4,548 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
25,376 KB
testcase_01 AC 96 ms
27,228 KB
testcase_02 AC 95 ms
27,132 KB
testcase_03 AC 92 ms
25,124 KB
testcase_04 AC 95 ms
27,212 KB
testcase_05 AC 92 ms
25,148 KB
testcase_06 AC 92 ms
27,012 KB
testcase_07 AC 96 ms
25,192 KB
testcase_08 AC 95 ms
23,084 KB
testcase_09 AC 96 ms
25,208 KB
testcase_10 AC 95 ms
25,380 KB
testcase_11 AC 95 ms
25,380 KB
testcase_12 AC 95 ms
23,108 KB
testcase_13 AC 95 ms
27,144 KB
testcase_14 AC 95 ms
25,280 KB
testcase_15 AC 95 ms
27,424 KB
testcase_16 AC 95 ms
25,156 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

class P
{
    static void Main()
    {
        var val = Console.ReadLine();
        Console.WriteLine(Regex.IsMatch(val, "^13+$") ? val.Count(x => x == '3') : -1);
    }
}
0