結果

問題 No.441 和か積
ユーザー CroweaCrowea
提出日時 2019-04-29 16:17:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 612 bytes
コンパイル時間 1,403 ms
コンパイル使用メモリ 65,512 KB
実行使用メモリ 24,984 KB
最終ジャッジ日時 2023-08-26 01:29:29
合計ジャッジ時間 5,091 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 WA -
testcase_10 RE -
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 WA -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

namespace No441
{
    class Program
    {
        static void Main(string[] args)
        {
            decimal[] Ary = Array.ConvertAll(Console.ReadLine().Split(' '), decimal.Parse);
            decimal A, B;
            A = Ary[0];
            B = Ary[1];

            if (A >= decimal.MaxValue || B >= decimal.MinValue)
                Console.WriteLine("P");

            decimal sum = A + B;
            decimal mul = A * B;

            if (sum > mul) Console.WriteLine("S");
            else if (sum < mul) Console.WriteLine("P");
            else Console.WriteLine("E");
        }
    }
}
0