結果

問題 No.441 和か積
ユーザー swdamdrswdamdr
提出日時 2017-01-26 13:26:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 821 bytes
コンパイル時間 1,917 ms
コンパイル使用メモリ 101,848 KB
実行使用メモリ 23,592 KB
最終ジャッジ日時 2023-09-09 10:36:36
合計ジャッジ時間 5,572 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
21,420 KB
testcase_01 AC 73 ms
23,472 KB
testcase_02 AC 73 ms
23,464 KB
testcase_03 AC 73 ms
21,476 KB
testcase_04 AC 72 ms
21,528 KB
testcase_05 AC 73 ms
23,464 KB
testcase_06 AC 72 ms
21,464 KB
testcase_07 AC 73 ms
21,420 KB
testcase_08 AC 72 ms
21,420 KB
testcase_09 AC 72 ms
21,364 KB
testcase_10 AC 72 ms
19,572 KB
testcase_11 AC 72 ms
21,484 KB
testcase_12 AC 72 ms
21,348 KB
testcase_13 AC 72 ms
23,448 KB
testcase_14 AC 69 ms
19,388 KB
testcase_15 AC 68 ms
21,356 KB
testcase_16 AC 69 ms
21,464 KB
testcase_17 AC 71 ms
21,436 KB
testcase_18 AC 70 ms
21,472 KB
testcase_19 AC 70 ms
19,324 KB
testcase_20 AC 73 ms
23,516 KB
testcase_21 AC 73 ms
23,416 KB
testcase_22 AC 72 ms
21,524 KB
testcase_23 AC 72 ms
23,440 KB
testcase_24 AC 72 ms
23,592 KB
testcase_25 AC 72 ms
19,576 KB
testcase_26 AC 72 ms
19,376 KB
testcase_27 AC 72 ms
21,484 KB
testcase_28 AC 72 ms
21,408 KB
testcase_29 AC 72 ms
21,528 KB
testcase_30 AC 73 ms
19,508 KB
testcase_31 AC 73 ms
23,524 KB
testcase_32 AC 73 ms
21,384 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[] args)
    {
        string[] s = Console.ReadLine().Split();
        Array.Sort(s);

        string a = s[0];
        string b = s[1];

        if (a == "0")
        {
            if (b == "0")
            {
                Console.WriteLine("E");
                return;
            }
            else
            {
                Console.WriteLine("S");
                return;
            }
        }

        if (a == "1")
        {
            Console.WriteLine("S");
            return;
        }

        if (a == "2")
        {
            if (b == "2")
            {
                Console.WriteLine("E");
                return;
            }
        }

        Console.WriteLine("P");
    }
}

0