結果

問題 No.342 一番ワロタww
ユーザー keymoonkeymoon
提出日時 2020-03-21 14:49:21
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 423 bytes
コンパイル時間 3,777 ms
コンパイル使用メモリ 100,888 KB
実行使用メモリ 27,612 KB
最終ジャッジ日時 2023-08-24 13:23:01
合計ジャッジ時間 6,823 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 104 ms
25,496 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 104 ms
25,516 KB
testcase_05 WA -
testcase_06 AC 105 ms
25,368 KB
testcase_07 WA -
testcase_08 AC 106 ms
25,516 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 106 ms
27,588 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 106 ms
25,500 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.Match(s, @"w+").Captures.Max(x => x.Value.Length);
        var res = Regex.Matches(s, $@"([^w]+)w{{{maxLen}}}").Select(x => x.Groups[1].Value).ToArray();
        Console.WriteLine(string.Join(" ", res));
    }
}
0