結果

問題 No.441 和か積
ユーザー TaK7907TaK7907
提出日時 2017-10-29 11:27:57
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 539 bytes
コンパイル時間 2,175 ms
コンパイル使用メモリ 105,284 KB
実行使用メモリ 25,872 KB
最終ジャッジ日時 2023-08-14 09:30:39
合計ジャッジ時間 6,648 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
23,520 KB
testcase_01 AC 61 ms
21,660 KB
testcase_02 AC 61 ms
23,556 KB
testcase_03 AC 61 ms
21,532 KB
testcase_04 AC 62 ms
23,552 KB
testcase_05 AC 60 ms
21,508 KB
testcase_06 AC 60 ms
21,600 KB
testcase_07 AC 61 ms
23,652 KB
testcase_08 AC 60 ms
21,388 KB
testcase_09 AC 61 ms
21,524 KB
testcase_10 AC 60 ms
23,688 KB
testcase_11 AC 60 ms
21,572 KB
testcase_12 WA -
testcase_13 AC 60 ms
21,464 KB
testcase_14 AC 61 ms
23,488 KB
testcase_15 AC 60 ms
23,616 KB
testcase_16 AC 60 ms
21,456 KB
testcase_17 AC 60 ms
21,496 KB
testcase_18 AC 60 ms
21,548 KB
testcase_19 AC 60 ms
23,568 KB
testcase_20 AC 60 ms
21,556 KB
testcase_21 AC 60 ms
21,400 KB
testcase_22 AC 61 ms
21,800 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 60 ms
23,556 KB
testcase_26 WA -
testcase_27 AC 60 ms
21,620 KB
testcase_28 AC 61 ms
21,696 KB
testcase_29 AC 61 ms
21,596 KB
testcase_30 AC 60 ms
21,588 KB
testcase_31 AC 61 ms
23,592 KB
testcase_32 AC 60 ms
21,548 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;

namespace yukicodeX {
    public class ProgramX {
        public static string Solver(System.IO.TextReader reader) {
            var a = reader.ReadLine().Split().ToList().ConvertAll( double.Parse );
            var sum = a[ 0 ] + a[ 1 ];
            var product = a[ 0 ] * a[ 1 ];
            return sum == product ? "E" : sum > product ? "S" : "P";
        }

        private static void Main() {
            Console.WriteLine( Solver( Console.In ) );
        }
    }
}
0