結果

問題 No.1543 [Cherry 2nd Tune A] これがプログラミングなのね
ユーザー バカらっくバカらっく
提出日時 2022-02-04 09:59:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 300 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 13,998 ms
コンパイル使用メモリ 421,836 KB
実行使用メモリ 54,264 KB
最終ジャッジ日時 2023-09-02 03:24:58
合計ジャッジ時間 27,201 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 292 ms
52,580 KB
testcase_01 AC 294 ms
52,636 KB
testcase_02 AC 290 ms
52,464 KB
testcase_03 AC 292 ms
52,840 KB
testcase_04 AC 290 ms
52,652 KB
testcase_05 AC 290 ms
52,640 KB
testcase_06 AC 288 ms
52,504 KB
testcase_07 AC 292 ms
52,440 KB
testcase_08 AC 295 ms
52,592 KB
testcase_09 AC 297 ms
52,688 KB
testcase_10 AC 299 ms
52,544 KB
testcase_11 AC 290 ms
52,408 KB
testcase_12 AC 290 ms
52,572 KB
testcase_13 AC 292 ms
52,632 KB
testcase_14 AC 297 ms
52,592 KB
testcase_15 AC 292 ms
52,708 KB
testcase_16 AC 293 ms
54,264 KB
testcase_17 AC 300 ms
52,744 KB
testcase_18 AC 295 ms
52,440 KB
testcase_19 AC 296 ms
52,352 KB
testcase_20 AC 295 ms
52,700 KB
testcase_21 AC 293 ms
52,348 KB
testcase_22 AC 295 ms
52,680 KB
testcase_23 AC 289 ms
52,560 KB
testcase_24 AC 292 ms
52,628 KB
testcase_25 AC 291 ms
52,592 KB
testcase_26 AC 293 ms
52,660 KB
testcase_27 AC 288 ms
52,556 KB
testcase_28 AC 288 ms
52,604 KB
testcase_29 AC 295 ms
52,636 KB
testcase_30 AC 293 ms
52,596 KB
testcase_31 AC 289 ms
52,676 KB
testcase_32 AC 291 ms
52,604 KB
testcase_33 AC 293 ms
52,584 KB
testcase_34 AC 289 ms
53,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val inpt = readLine()!!.split(" ")
    val (s,t) = inpt.dropLast(1).map { it.toInt() }
    val ans = when(inpt.last()[0]) {
        '<' -> {
            s < t
        }
        '>' -> {
            s > t
        }
        else -> {
            s == t
        }
    }
    println(if(ans) "YES" else "NO")
}
0