Submission #19562549


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;

class Program
{
    static void Main()
    {
        var s = Console.ReadLine();
        var matches = Regex.Matches(s, @"[A-Z].*?[A-Z]");
        var words = new List<string>();

        foreach (var match in matches)
        {
            words.Add(match.ToString());
        }

        words.Sort();
 
        foreach (var words2 in words)
        {
            Console.Write(words2);
        }
    }
}

Submission Info

Submission Time
Task F - DoubleCamelCase Sort
User lulu_suzuhara
Language C# (.NET Core 3.1.201)
Score 7
Code Size 516 Byte
Status AC
Exec Time 241 ms
Memory 40992 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 7 / 7
Status
AC × 2
AC × 24
Set Name Test Cases
Sample example_01.txt, example_02.txt
All example_01.txt, example_02.txt, subtask_01_01.txt, subtask_01_02.txt, subtask_01_03.txt, subtask_01_04.txt, subtask_01_05.txt, subtask_01_06.txt, subtask_01_07.txt, subtask_01_08.txt, subtask_01_09.txt, subtask_01_10.txt, subtask_01_11.txt, subtask_01_12.txt, subtask_01_13.txt, subtask_01_14.txt, subtask_01_15.txt, subtask_01_16.txt, subtask_01_17.txt, subtask_01_18.txt, subtask_01_19.txt, subtask_01_20.txt, subtask_01_21.txt, subtask_01_22.txt
Case Name Status Exec Time Memory
example_01.txt AC 85 ms 27036 KB
example_02.txt AC 85 ms 26784 KB
subtask_01_01.txt AC 84 ms 26648 KB
subtask_01_02.txt AC 93 ms 27000 KB
subtask_01_03.txt AC 94 ms 27396 KB
subtask_01_04.txt AC 94 ms 27404 KB
subtask_01_05.txt AC 91 ms 27476 KB
subtask_01_06.txt AC 106 ms 27412 KB
subtask_01_07.txt AC 241 ms 39156 KB
subtask_01_08.txt AC 212 ms 39096 KB
subtask_01_09.txt AC 216 ms 39308 KB
subtask_01_10.txt AC 86 ms 26980 KB
subtask_01_11.txt AC 108 ms 29176 KB
subtask_01_12.txt AC 195 ms 35488 KB
subtask_01_13.txt AC 205 ms 37040 KB
subtask_01_14.txt AC 103 ms 28500 KB
subtask_01_15.txt AC 131 ms 30216 KB
subtask_01_16.txt AC 150 ms 32544 KB
subtask_01_17.txt AC 103 ms 28428 KB
subtask_01_18.txt AC 215 ms 38672 KB
subtask_01_19.txt AC 189 ms 34660 KB
subtask_01_20.txt AC 160 ms 33580 KB
subtask_01_21.txt AC 241 ms 40780 KB
subtask_01_22.txt AC 232 ms 40992 KB