結果

問題 No.441 和か積
ユーザー ototonari
提出日時 2017-03-20 01:07:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 989 bytes
コンパイル時間 2,704 ms
コンパイル使用メモリ 112,140 KB
実行使用メモリ 26,664 KB
最終ジャッジ日時 2024-06-27 03:47:37
合計ジャッジ時間 4,385 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
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