結果

問題 No.441 和か積
ユーザー HujiLeeHujiLee
提出日時 2016-12-26 14:01:14
言語 Scala(Beta)
(3.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 387 bytes
コンパイル時間 9,196 ms
コンパイル使用メモリ 259,648 KB
実行使用メモリ 62,688 KB
最終ジャッジ日時 2023-09-12 09:16:46
合計ジャッジ時間 44,001 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 982 ms
62,164 KB
testcase_01 AC 975 ms
62,612 KB
testcase_02 AC 975 ms
62,220 KB
testcase_03 AC 975 ms
62,388 KB
testcase_04 AC 987 ms
62,200 KB
testcase_05 AC 985 ms
62,384 KB
testcase_06 AC 984 ms
62,296 KB
testcase_07 AC 977 ms
62,152 KB
testcase_08 AC 975 ms
62,176 KB
testcase_09 AC 972 ms
62,248 KB
testcase_10 AC 982 ms
62,688 KB
testcase_11 AC 976 ms
62,256 KB
testcase_12 AC 953 ms
62,376 KB
testcase_13 AC 937 ms
62,424 KB
testcase_14 AC 935 ms
62,200 KB
testcase_15 AC 946 ms
62,152 KB
testcase_16 AC 950 ms
62,120 KB
testcase_17 AC 951 ms
62,288 KB
testcase_18 AC 966 ms
62,356 KB
testcase_19 AC 973 ms
62,384 KB
testcase_20 AC 973 ms
62,012 KB
testcase_21 AC 976 ms
62,068 KB
testcase_22 AC 977 ms
62,516 KB
testcase_23 AC 972 ms
62,468 KB
testcase_24 AC 976 ms
62,396 KB
testcase_25 AC 979 ms
62,136 KB
testcase_26 AC 979 ms
62,272 KB
testcase_27 TLE -
testcase_28 AC 962 ms
62,160 KB
testcase_29 AC 963 ms
62,256 KB
testcase_30 AC 973 ms
62,140 KB
testcase_31 AC 972 ms
62,564 KB
testcase_32 AC 969 ms
62,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn

/**
  * Created by Administrator on 2016/12/26 0026.
  */
object Main  extends App{
  val bigInts: Array[BigInt] = StdIn.readLine().split(" ").map(x=>BigInt.apply(x))
  val sum = bigInts.reduce((x,y)=>x+y)
  val mul = bigInts.reduce((x,y)=>x*y)
  val cha = sum-mul
  if(cha>0){
    println("S")
  }else if(cha<0){
    println("P")
  }else{
    println("E")
  }


}
0