結果

問題 No.441 和か積
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-09-01 01:51:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 1,000 ms
コード長 527 bytes
コンパイル時間 1,955 ms
コンパイル使用メモリ 99,712 KB
実行使用メモリ 22,740 KB
最終ジャッジ日時 2023-10-12 00:43:02
合計ジャッジ時間 5,223 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,820 KB
testcase_01 AC 57 ms
22,640 KB
testcase_02 AC 57 ms
22,740 KB
testcase_03 AC 52 ms
20,528 KB
testcase_04 AC 52 ms
20,464 KB
testcase_05 AC 52 ms
20,676 KB
testcase_06 AC 53 ms
20,540 KB
testcase_07 AC 51 ms
20,476 KB
testcase_08 AC 56 ms
20,692 KB
testcase_09 AC 57 ms
20,656 KB
testcase_10 AC 52 ms
20,632 KB
testcase_11 AC 56 ms
20,788 KB
testcase_12 AC 57 ms
20,708 KB
testcase_13 AC 56 ms
20,740 KB
testcase_14 AC 52 ms
22,536 KB
testcase_15 AC 56 ms
20,780 KB
testcase_16 AC 56 ms
20,664 KB
testcase_17 AC 56 ms
18,704 KB
testcase_18 AC 57 ms
20,852 KB
testcase_19 AC 57 ms
20,884 KB
testcase_20 AC 52 ms
22,644 KB
testcase_21 AC 52 ms
20,448 KB
testcase_22 AC 52 ms
20,532 KB
testcase_23 AC 56 ms
20,588 KB
testcase_24 AC 56 ms
22,684 KB
testcase_25 AC 57 ms
20,736 KB
testcase_26 AC 56 ms
22,704 KB
testcase_27 AC 56 ms
20,668 KB
testcase_28 AC 53 ms
20,532 KB
testcase_29 AC 51 ms
20,640 KB
testcase_30 AC 52 ms
22,604 KB
testcase_31 AC 51 ms
20,556 KB
testcase_32 AC 53 ms
22,712 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;

class No441
{
    static void Main()
    {
        var num = Console.ReadLine().Split(' ');
        var ans = 'P';
        var a = -1; var b = -1;
        if (num[0].Length < 2) a = Int32.Parse(num[0]);
        if (num[1].Length < 2) b = Int32.Parse(num[1]);
        if (a != -1 || b != -1)
        {
            if ((a == 0 && b == 0) || (a == 2 && b == 2)) ans = 'E';
            else if ((a == 0 || b == 0) || (a == 1 || b == 1)) ans = 'S';
        }
        Console.WriteLine(ans);
    }
}
0