結果

問題 No.342 一番ワロタww
ユーザー keymoonkeymoon
提出日時 2020-03-21 14:50:27
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 417 bytes
コンパイル時間 4,806 ms
コンパイル使用メモリ 103,076 KB
実行使用メモリ 27,476 KB
最終ジャッジ日時 2023-08-24 13:26:02
合計ジャッジ時間 4,898 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 103 ms
25,412 KB
testcase_02 AC 105 ms
25,408 KB
testcase_03 AC 104 ms
25,312 KB
testcase_04 AC 104 ms
23,540 KB
testcase_05 AC 104 ms
25,356 KB
testcase_06 AC 105 ms
25,316 KB
testcase_07 AC 104 ms
25,476 KB
testcase_08 AC 105 ms
27,476 KB
testcase_09 AC 104 ms
25,440 KB
testcase_10 AC 104 ms
27,412 KB
testcase_11 AC 105 ms
25,344 KB
testcase_12 AC 104 ms
25,492 KB
testcase_13 AC 106 ms
23,396 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 106 ms
25,336 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+").Max(x => x.Value.Length);
        var res = Regex.Matches(s, $@"([^w]+)w{{{maxLen}}}").Select(x => x.Groups[1].Value).ToArray();
        Console.WriteLine(string.Join("\n", res));
    }
}
0