結果

問題 No.342 一番ワロタww
ユーザー keymoon
提出日時 2020-03-21 14:50:27
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 417 bytes
コンパイル時間 957 ms
コンパイル使用メモリ 113,240 KB
実行使用メモリ 28,720 KB
最終ジャッジ日時 2024-12-22 20:39:06
合計ジャッジ時間 3,024 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 RE * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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