結果
| 問題 | No.791 うし数列 | 
| コンテスト | |
| ユーザー |  yurara | 
| 提出日時 | 2019-04-09 23:53:33 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 49 ms / 2,000 ms | 
| コード長 | 332 bytes | 
| コンパイル時間 | 1,898 ms | 
| コンパイル使用メモリ | 101,632 KB | 
| 実行使用メモリ | 22,400 KB | 
| 最終ジャッジ日時 | 2024-07-05 17:13:12 | 
| 合計ジャッジ時間 | 2,622 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 15 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Text.RegularExpressions;
public class Program
{
    public static void Main()
    {
        var value = Console.ReadLine();
        if (Regex.IsMatch(value, @"^13+$"))
            Console.WriteLine("{0}", value.Length - 1);
        else
            Console.WriteLine("{0}", -1);
        return;
    }
}
            
            
            
        