結果

問題 No.342 一番ワロタww
ユーザー keymoonkeymoon
提出日時 2020-03-21 14:52:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 109 ms / 5,000 ms
コード長 478 bytes
コンパイル時間 2,164 ms
コンパイル使用メモリ 108,268 KB
実行使用メモリ 29,540 KB
最終ジャッジ日時 2023-08-24 13:30:24
合計ジャッジ時間 5,049 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
25,104 KB
testcase_01 AC 104 ms
25,480 KB
testcase_02 AC 105 ms
27,448 KB
testcase_03 AC 105 ms
29,540 KB
testcase_04 AC 104 ms
25,640 KB
testcase_05 AC 106 ms
25,576 KB
testcase_06 AC 105 ms
27,540 KB
testcase_07 AC 105 ms
23,388 KB
testcase_08 AC 107 ms
25,564 KB
testcase_09 AC 106 ms
25,432 KB
testcase_10 AC 106 ms
25,576 KB
testcase_11 AC 106 ms
25,780 KB
testcase_12 AC 105 ms
25,424 KB
testcase_13 AC 105 ms
27,576 KB
testcase_14 AC 89 ms
24,956 KB
testcase_15 AC 90 ms
25,268 KB
testcase_16 AC 109 ms
23,588 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.Linq;
using System.Text.RegularExpressions;

public static class P
{
    static void Main()
    {
        var s = Console.ReadLine().TrimStart('w');
        var maxLen = Regex.Matches(s, @"w+").DefaultIfEmpty(Match.Empty).Max(x => x.Value.Length);
        if (maxLen == 0) return;
        var res = Regex.Matches(s, $@"([^w]+)w{{{maxLen}}}").Select(x => x.Groups[1].Value).ToArray();
        Console.WriteLine(string.Join("\n", res));
    }
}
0