結果

問題 No.441 和か積
ユーザー akichiakichi
提出日時 2017-08-22 01:31:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 437 bytes
コンパイル時間 3,185 ms
コンパイル使用メモリ 102,756 KB
実行使用メモリ 23,432 KB
最終ジャッジ日時 2023-09-09 10:46:14
合計ジャッジ時間 6,281 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
21,380 KB
testcase_01 AC 54 ms
21,296 KB
testcase_02 AC 53 ms
21,384 KB
testcase_03 AC 52 ms
21,388 KB
testcase_04 AC 54 ms
23,432 KB
testcase_05 AC 54 ms
21,260 KB
testcase_06 AC 53 ms
21,140 KB
testcase_07 AC 53 ms
21,292 KB
testcase_08 AC 51 ms
19,204 KB
testcase_09 AC 45 ms
19,124 KB
testcase_10 AC 53 ms
23,248 KB
testcase_11 AC 47 ms
21,244 KB
testcase_12 AC 52 ms
21,452 KB
testcase_13 AC 54 ms
21,140 KB
testcase_14 AC 52 ms
23,364 KB
testcase_15 AC 51 ms
21,320 KB
testcase_16 AC 50 ms
23,236 KB
testcase_17 AC 54 ms
21,400 KB
testcase_18 AC 54 ms
23,224 KB
testcase_19 AC 52 ms
21,248 KB
testcase_20 AC 53 ms
21,168 KB
testcase_21 AC 54 ms
23,308 KB
testcase_22 AC 52 ms
21,316 KB
testcase_23 AC 52 ms
21,244 KB
testcase_24 AC 53 ms
21,376 KB
testcase_25 AC 53 ms
21,284 KB
testcase_26 AC 52 ms
21,184 KB
testcase_27 AC 52 ms
23,288 KB
testcase_28 AC 52 ms
19,192 KB
testcase_29 AC 52 ms
21,204 KB
testcase_30 AC 50 ms
21,192 KB
testcase_31 AC 51 ms
23,224 KB
testcase_32 AC 53 ms
23,348 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.Collections.Generic;

class Program {
    static void Main() {
        string ans;
        string line = Console.ReadLine();
        if (line == "0 0" || line == "2 2") ans = "E";
        else {
            List<string> ab = line.Split().ToList();
            if (ab.Contains("0") || ab.Contains("1")) ans = "S";
            else ans = "P";
        }
        Console.WriteLine(ans);
    }
}
0