結果

問題 No.441 和か積
ユーザー AreTrashAreTrash
提出日時 2016-11-11 23:46:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 418 bytes
コンパイル時間 3,503 ms
コンパイル使用メモリ 102,804 KB
実行使用メモリ 23,452 KB
最終ジャッジ日時 2023-09-09 10:23:48
合計ジャッジ時間 5,293 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
21,292 KB
testcase_01 AC 51 ms
21,440 KB
testcase_02 AC 51 ms
23,312 KB
testcase_03 AC 52 ms
21,320 KB
testcase_04 AC 52 ms
23,188 KB
testcase_05 AC 52 ms
21,252 KB
testcase_06 AC 53 ms
21,412 KB
testcase_07 AC 53 ms
21,352 KB
testcase_08 AC 53 ms
21,432 KB
testcase_09 AC 54 ms
23,312 KB
testcase_10 AC 55 ms
21,212 KB
testcase_11 AC 52 ms
21,220 KB
testcase_12 AC 54 ms
23,412 KB
testcase_13 AC 53 ms
23,252 KB
testcase_14 AC 53 ms
21,268 KB
testcase_15 AC 54 ms
21,196 KB
testcase_16 AC 54 ms
23,316 KB
testcase_17 AC 53 ms
23,396 KB
testcase_18 AC 51 ms
19,344 KB
testcase_19 AC 50 ms
19,272 KB
testcase_20 AC 50 ms
21,336 KB
testcase_21 AC 50 ms
21,340 KB
testcase_22 AC 49 ms
21,208 KB
testcase_23 AC 50 ms
23,452 KB
testcase_24 AC 52 ms
21,432 KB
testcase_25 AC 53 ms
21,208 KB
testcase_26 AC 54 ms
23,240 KB
testcase_27 AC 53 ms
21,364 KB
testcase_28 AC 54 ms
21,360 KB
testcase_29 AC 53 ms
23,184 KB
testcase_30 AC 53 ms
23,268 KB
testcase_31 AC 54 ms
23,388 KB
testcase_32 AC 54 ms
23,380 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;

namespace No441{
    public class Program{
        public static void Main(string[] args){
            var input = Console.ReadLine().Split();
            var res = 0;
            if(input.Any(s => s == "0") || input.Any(s => s == "1")) res = 1;
            if(input.All(s => s == "0") || input.All(s => s == "2")) res = 2;
            Console.WriteLine("PSE"[res]);
        }
    }
}
0