結果

問題 No.1468 Colourful Pastel
ユーザー bluemeganebluemegane
提出日時 2021-04-09 23:03:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 508 bytes
コンパイル時間 1,700 ms
コンパイル使用メモリ 67,700 KB
実行使用メモリ 37,512 KB
最終ジャッジ日時 2023-09-07 12:44:54
合計ジャッジ時間 4,923 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
36,468 KB
testcase_01 AC 105 ms
36,480 KB
testcase_02 AC 54 ms
21,360 KB
testcase_03 AC 54 ms
21,380 KB
testcase_04 AC 53 ms
21,316 KB
testcase_05 AC 54 ms
23,356 KB
testcase_06 AC 55 ms
21,412 KB
testcase_07 AC 53 ms
21,256 KB
testcase_08 AC 53 ms
21,176 KB
testcase_09 AC 54 ms
21,300 KB
testcase_10 AC 52 ms
21,268 KB
testcase_11 AC 54 ms
21,260 KB
testcase_12 AC 53 ms
21,412 KB
testcase_13 AC 55 ms
23,224 KB
testcase_14 AC 54 ms
21,452 KB
testcase_15 AC 53 ms
21,380 KB
testcase_16 AC 53 ms
21,168 KB
testcase_17 AC 53 ms
21,304 KB
testcase_18 AC 54 ms
23,364 KB
testcase_19 AC 54 ms
23,312 KB
testcase_20 AC 53 ms
21,380 KB
testcase_21 AC 53 ms
21,304 KB
testcase_22 AC 56 ms
23,388 KB
testcase_23 AC 54 ms
21,348 KB
testcase_24 AC 54 ms
19,252 KB
testcase_25 AC 53 ms
21,308 KB
testcase_26 AC 53 ms
21,296 KB
testcase_27 AC 112 ms
37,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System.Linq;
using System;

public class Hello
{
    static void Main()
    {
        Console.ReadLine();
        string[] line = Console.ReadLine().Trim().Split(' ');
        string[] line2 = Console.ReadLine().Trim().Split(' ');
        var coL = new string[] { "Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Violet" };
        foreach (var x in coL)
        {
            if (line.Count(y => y == x) != line2.Count(y => y == x))
            { Console.WriteLine(x); return; }
        }
    }
}
0