結果

問題 No.345 最小チワワ問題
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-30 03:05:44
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 1,876 ms
コンパイル使用メモリ 101,340 KB
実行使用メモリ 26,520 KB
最終ジャッジ日時 2023-09-13 16:09:41
合計ジャッジ時間 6,122 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
22,404 KB
testcase_01 AC 94 ms
24,456 KB
testcase_02 AC 93 ms
24,448 KB
testcase_03 AC 93 ms
24,508 KB
testcase_04 AC 93 ms
24,420 KB
testcase_05 WA -
testcase_06 AC 93 ms
24,376 KB
testcase_07 AC 93 ms
24,416 KB
testcase_08 AC 91 ms
24,552 KB
testcase_09 AC 91 ms
24,244 KB
testcase_10 AC 93 ms
24,496 KB
testcase_11 AC 92 ms
26,448 KB
testcase_12 AC 94 ms
24,432 KB
testcase_13 AC 90 ms
22,096 KB
testcase_14 AC 93 ms
26,404 KB
testcase_15 AC 92 ms
24,488 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 93 ms
22,496 KB
testcase_20 AC 94 ms
24,332 KB
testcase_21 AC 93 ms
24,448 KB
testcase_22 AC 93 ms
24,388 KB
testcase_23 AC 92 ms
24,396 KB
testcase_24 AC 94 ms
24,440 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 94 ms
24,328 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 91 ms
24,188 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.Text.RegularExpressions;

class No345{
    static void Main(){
        var s=Console.ReadLine();
        var a=new Regex(@"c(?!c).*?w.*?w");
        var r=a.Matches(s);
        var i=101;
        foreach(Match c in r){
        if(i>c.Length)i=c.Length;
        }
        Console.WriteLine(i==101?-1:i);
    }
}
0