結果

問題 No.345 最小チワワ問題
ユーザー uma-pinehill
提出日時 2018-05-17 17:25:03
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 771 ms
コンパイル使用メモリ 102,528 KB
実行使用メモリ 22,656 KB
最終ジャッジ日時 2024-06-28 13:32:11
合計ジャッジ時間 3,666 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

public class Program
{
    static void Main()
    {
        string n = Console.ReadLine();
        var x = Regex.Match(n,"c[^w]*w[^w]*w");
        Console.WriteLine(x.Length == 0 ? -1:x.Length);
    }
}
0