結果
問題 | No.791 うし数列 |
ユーザー | pof |
提出日時 | 2019-05-22 16:18:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 764 ms |
コンパイル使用メモリ | 105,512 KB |
実行使用メモリ | 28,624 KB |
最終ジャッジ日時 | 2023-10-17 11:17:46 |
合計ジャッジ時間 | 2,709 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 60 ms
28,576 KB |
testcase_01 | WA | - |
testcase_02 | AC | 58 ms
28,588 KB |
testcase_03 | AC | 56 ms
28,460 KB |
testcase_04 | AC | 59 ms
28,576 KB |
testcase_05 | AC | 59 ms
28,588 KB |
testcase_06 | AC | 56 ms
28,460 KB |
testcase_07 | AC | 59 ms
28,580 KB |
testcase_08 | AC | 58 ms
28,576 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 58 ms
28,576 KB |
testcase_13 | AC | 59 ms
28,584 KB |
testcase_14 | AC | 59 ms
28,596 KB |
testcase_15 | AC | 59 ms
28,584 KB |
testcase_16 | AC | 59 ms
28,588 KB |
コンパイルメッセージ
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; namespace ConsoleApp2 { class Program { static void Main(string[] args) { string n = Console.ReadLine(); Match m = Regex.Match(n, "13+"); if (m.Success) { Console.WriteLine(m.Length-1); } else { Console.WriteLine(-1); } } } }