結果

問題 No.441 和か積
ユーザー 14番14番
提出日時 2016-11-11 22:33:20
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 1,333 bytes
コンパイル時間 2,162 ms
コンパイル使用メモリ 107,696 KB
実行使用メモリ 23,932 KB
最終ジャッジ日時 2023-09-09 10:14:05
合計ジャッジ時間 5,300 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,784 KB
testcase_01 AC 53 ms
23,396 KB
testcase_02 AC 53 ms
21,448 KB
testcase_03 AC 53 ms
23,400 KB
testcase_04 AC 53 ms
23,296 KB
testcase_05 AC 53 ms
21,428 KB
testcase_06 AC 53 ms
21,404 KB
testcase_07 AC 53 ms
21,376 KB
testcase_08 AC 60 ms
21,808 KB
testcase_09 AC 60 ms
21,940 KB
testcase_10 AC 54 ms
19,432 KB
testcase_11 AC 58 ms
21,932 KB
testcase_12 AC 50 ms
21,356 KB
testcase_13 AC 52 ms
23,408 KB
testcase_14 AC 51 ms
23,364 KB
testcase_15 AC 59 ms
23,932 KB
testcase_16 AC 51 ms
23,472 KB
testcase_17 AC 61 ms
21,932 KB
testcase_18 AC 61 ms
22,060 KB
testcase_19 AC 60 ms
21,992 KB
testcase_20 AC 52 ms
21,372 KB
testcase_21 AC 52 ms
19,408 KB
testcase_22 AC 53 ms
21,480 KB
testcase_23 AC 54 ms
21,356 KB
testcase_24 AC 53 ms
23,412 KB
testcase_25 AC 53 ms
21,276 KB
testcase_26 AC 53 ms
21,448 KB
testcase_27 AC 59 ms
19,840 KB
testcase_28 AC 52 ms
21,288 KB
testcase_29 AC 52 ms
21,496 KB
testcase_30 AC 52 ms
21,304 KB
testcase_31 AC 49 ms
21,448 KB
testcase_32 AC 49 ms
19,368 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.Text;
using System.Linq;
using System.Collections.Generic;

public class Program
{
    public void Proc() {
        Reader.IsDebug = false;
        string[] inpt = Reader.ReadLine().Split(' ');
        if(inpt.Max(a=>a.Length) <= 1) {
            int[] tmp = inpt.Select(a=>int.Parse(a)).ToArray();
            int tasu = tmp.Sum(a=>a);
            int kake = tmp[0] * tmp[1];
            Console.WriteLine(tasu==kake?"E":tasu>kake?"S":"P");
        } else if(inpt.Any(a=>a.Equals("0") || a.Equals("1"))) {
            Console.WriteLine("S");
        } else {
            Console.WriteLine("P");
        }


    }

    public class Reader {
        public static bool IsDebug = true;
        private static System.IO.StringReader SReader;
        private static string InitText = @"


148356891374098124128871958712904 3951732985701928409731964831409


";
        public static string ReadLine() {
            if(IsDebug) {
                if(SReader == null) {
                    SReader = new System.IO.StringReader(InitText.Trim());
                }
                return SReader.ReadLine();
            } else {
                return Console.ReadLine();
            }
        }
    }
    public static void Main(string[] args)
    {
        Program prg = new Program();
        prg.Proc();
    }
}
0