結果

問題 No.857 素振り
ユーザー minokasagominokasago
提出日時 2019-11-01 08:27:59
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 293 ms / 1,000 ms
コード長 169 bytes
コンパイル時間 14,309 ms
コンパイル使用メモリ 420,264 KB
実行使用メモリ 52,900 KB
最終ジャッジ日時 2023-10-13 00:18:54
合計ジャッジ時間 17,229 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 291 ms
52,668 KB
testcase_01 AC 288 ms
52,788 KB
testcase_02 AC 288 ms
52,772 KB
testcase_03 AC 288 ms
52,888 KB
testcase_04 AC 286 ms
52,900 KB
testcase_05 AC 290 ms
52,648 KB
testcase_06 AC 290 ms
52,788 KB
testcase_07 AC 289 ms
52,828 KB
testcase_08 AC 292 ms
52,768 KB
testcase_09 AC 293 ms
52,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main()
{
    val (x, y, z) = readLine()!!.split(" ").map(String::toLong)
    var ans: Long = z
    if (x <= z) ans--;
    if (y <= z) ans--;
    println("${ans}")
}
0