結果

問題 No.1047 Zero (Novice)
ユーザー face4face4
提出日時 2021-04-11 14:42:21
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 296 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 14,814 ms
コンパイル使用メモリ 415,516 KB
実行使用メモリ 53,248 KB
最終ジャッジ日時 2023-09-09 17:08:01
合計ジャッジ時間 23,269 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 296 ms
52,696 KB
testcase_01 AC 285 ms
52,700 KB
testcase_02 AC 283 ms
53,248 KB
testcase_03 AC 293 ms
52,752 KB
testcase_04 AC 286 ms
52,708 KB
testcase_05 AC 286 ms
52,988 KB
testcase_06 AC 287 ms
52,792 KB
testcase_07 AC 294 ms
52,844 KB
testcase_08 AC 287 ms
53,240 KB
testcase_09 AC 288 ms
52,632 KB
testcase_10 AC 285 ms
53,052 KB
testcase_11 AC 290 ms
52,896 KB
testcase_12 AC 287 ms
53,060 KB
testcase_13 AC 283 ms
53,032 KB
testcase_14 AC 285 ms
52,780 KB
testcase_15 AC 288 ms
52,768 KB
testcase_16 AC 289 ms
52,780 KB
testcase_17 AC 286 ms
52,800 KB
testcase_18 AC 288 ms
52,700 KB
testcase_19 AC 287 ms
52,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main(){
    val (a, b) = readLine()!!.split(" ").map{it.toInt()}
    println(if(b==0) 1 else if(a==-1) 2 else -1)
}
0