結果

問題 No.441 和か積
ユーザー ototonariototonari
提出日時 2017-03-20 01:07:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 989 bytes
コンパイル時間 2,303 ms
コンパイル使用メモリ 99,188 KB
実行使用メモリ 23,608 KB
最終ジャッジ日時 2023-09-09 10:39:16
合計ジャッジ時間 6,059 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
19,332 KB
testcase_01 AC 72 ms
21,328 KB
testcase_02 AC 73 ms
23,424 KB
testcase_03 AC 74 ms
23,404 KB
testcase_04 AC 74 ms
21,580 KB
testcase_05 AC 74 ms
21,528 KB
testcase_06 AC 75 ms
21,512 KB
testcase_07 AC 74 ms
23,552 KB
testcase_08 AC 74 ms
23,552 KB
testcase_09 AC 73 ms
19,344 KB
testcase_10 AC 74 ms
23,380 KB
testcase_11 AC 73 ms
21,548 KB
testcase_12 AC 74 ms
21,572 KB
testcase_13 AC 72 ms
23,480 KB
testcase_14 AC 72 ms
21,528 KB
testcase_15 AC 73 ms
23,608 KB
testcase_16 AC 72 ms
21,556 KB
testcase_17 AC 69 ms
21,440 KB
testcase_18 AC 68 ms
21,396 KB
testcase_19 AC 70 ms
21,504 KB
testcase_20 AC 72 ms
21,400 KB
testcase_21 AC 72 ms
21,332 KB
testcase_22 AC 73 ms
23,484 KB
testcase_23 AC 73 ms
21,508 KB
testcase_24 AC 73 ms
21,576 KB
testcase_25 AC 73 ms
21,436 KB
testcase_26 AC 74 ms
19,588 KB
testcase_27 AC 73 ms
21,444 KB
testcase_28 AC 71 ms
21,556 KB
testcase_29 AC 73 ms
23,448 KB
testcase_30 AC 73 ms
21,460 KB
testcase_31 AC 72 ms
21,388 KB
testcase_32 AC 73 ms
21,408 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace yukicoder
{
    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