結果
問題 |
No.342 一番ワロタww
|
ユーザー |
![]() |
提出日時 | 2020-03-21 14:49:21 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 423 bytes |
コンパイル時間 | 2,444 ms |
コンパイル使用メモリ | 105,856 KB |
実行使用メモリ | 23,552 KB |
最終ジャッジ日時 | 2024-12-22 20:37:13 |
合計ジャッジ時間 | 4,365 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 6 RE * 3 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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)); } }