結果

問題 No.441 和か積
ユーザー kmtrc130kmtrc130
提出日時 2017-06-02 14:49:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 1,000 ms
コード長 633 bytes
コンパイル時間 2,776 ms
コンパイル使用メモリ 101,552 KB
実行使用メモリ 22,740 KB
最終ジャッジ日時 2023-09-09 10:44:38
合計ジャッジ時間 6,002 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
14,652 KB
testcase_01 AC 53 ms
14,492 KB
testcase_02 AC 56 ms
14,532 KB
testcase_03 AC 56 ms
14,560 KB
testcase_04 AC 53 ms
14,604 KB
testcase_05 AC 55 ms
14,644 KB
testcase_06 AC 56 ms
14,560 KB
testcase_07 AC 54 ms
14,544 KB
testcase_08 AC 54 ms
14,608 KB
testcase_09 AC 51 ms
14,268 KB
testcase_10 AC 56 ms
14,648 KB
testcase_11 AC 51 ms
14,332 KB
testcase_12 AC 54 ms
14,596 KB
testcase_13 AC 55 ms
14,548 KB
testcase_14 AC 55 ms
14,596 KB
testcase_15 AC 54 ms
14,648 KB
testcase_16 AC 57 ms
20,576 KB
testcase_17 AC 56 ms
20,756 KB
testcase_18 AC 57 ms
22,740 KB
testcase_19 AC 56 ms
20,732 KB
testcase_20 AC 57 ms
22,672 KB
testcase_21 AC 56 ms
20,736 KB
testcase_22 AC 55 ms
20,640 KB
testcase_23 AC 56 ms
20,620 KB
testcase_24 AC 55 ms
20,604 KB
testcase_25 AC 56 ms
18,660 KB
testcase_26 AC 55 ms
18,596 KB
testcase_27 AC 56 ms
20,704 KB
testcase_28 AC 56 ms
20,648 KB
testcase_29 AC 55 ms
22,728 KB
testcase_30 AC 56 ms
22,720 KB
testcase_31 AC 58 ms
22,620 KB
testcase_32 AC 56 ms
20,660 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.Collections.Generic;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        string[] AB = Console.ReadLine().Split(' ');

        if (AB[0] == AB[1] && (AB[0] == "0" || AB[0] == "2"))
        {
            Console.WriteLine("E");
            return;
        }
        else
        {
            int outA = 0, outB = 0;
            if ((int.TryParse(AB[0], out outA) && outA <= 1) || (int.TryParse(AB[1], out outB) && outB <= 1))
            {
                Console.WriteLine("S");
                return;
            }
            Console.WriteLine("P");
        }
    }
}
0