結果

問題 No.441 和か積
ユーザー CroweaCrowea
提出日時 2019-04-29 16:16:54
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 507 bytes
コンパイル時間 1,449 ms
コンパイル使用メモリ 63,200 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-08-26 01:29:21
合計ジャッジ時間 6,164 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
20,724 KB
testcase_01 AC 60 ms
20,724 KB
testcase_02 AC 61 ms
20,768 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 59 ms
20,876 KB
testcase_09 AC 58 ms
18,744 KB
testcase_10 RE -
testcase_11 AC 59 ms
22,824 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 AC 60 ms
20,708 KB
testcase_15 AC 60 ms
20,732 KB
testcase_16 AC 60 ms
22,844 KB
testcase_17 AC 60 ms
20,892 KB
testcase_18 AC 61 ms
22,800 KB
testcase_19 AC 60 ms
22,896 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 59 ms
20,908 KB
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];

            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