結果

問題 No.441 和か積
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-12-08 00:44:31
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 299 ms / 1,000 ms
コード長 225 bytes
コンパイル時間 14,593 ms
コンパイル使用メモリ 407,216 KB
実行使用メモリ 53,452 KB
最終ジャッジ日時 2023-08-27 11:44:13
合計ジャッジ時間 25,609 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 295 ms
53,240 KB
testcase_01 AC 292 ms
53,004 KB
testcase_02 AC 292 ms
52,684 KB
testcase_03 AC 290 ms
52,876 KB
testcase_04 AC 287 ms
53,008 KB
testcase_05 AC 289 ms
53,132 KB
testcase_06 AC 285 ms
53,120 KB
testcase_07 AC 285 ms
52,972 KB
testcase_08 AC 285 ms
53,092 KB
testcase_09 AC 287 ms
52,780 KB
testcase_10 AC 288 ms
53,096 KB
testcase_11 AC 285 ms
52,912 KB
testcase_12 AC 295 ms
53,132 KB
testcase_13 AC 289 ms
52,832 KB
testcase_14 AC 286 ms
52,824 KB
testcase_15 AC 291 ms
52,924 KB
testcase_16 AC 287 ms
53,136 KB
testcase_17 AC 286 ms
52,868 KB
testcase_18 AC 292 ms
53,136 KB
testcase_19 AC 297 ms
52,944 KB
testcase_20 AC 293 ms
52,792 KB
testcase_21 AC 299 ms
53,012 KB
testcase_22 AC 299 ms
53,452 KB
testcase_23 AC 293 ms
53,176 KB
testcase_24 AC 292 ms
52,928 KB
testcase_25 AC 289 ms
52,708 KB
testcase_26 AC 292 ms
52,972 KB
testcase_27 AC 290 ms
53,028 KB
testcase_28 AC 293 ms
52,872 KB
testcase_29 AC 294 ms
53,044 KB
testcase_30 AC 296 ms
53,140 KB
testcase_31 AC 298 ms
52,992 KB
testcase_32 AC 293 ms
52,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val (a,b) = readLine()!!.split(' ').map { it.toBigInteger() }
    val c = a + b
    val d = a * b
    println(when {
        c > d -> "S"
        c == d -> "E"
        c < d -> "P"
        else -> ""
    })
}
0