結果

問題 No.815 Are you a traveller ?
ユーザー 💕💖💞💕💖💞
提出日時 2019-05-06 14:20:03
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 266 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 10,828 ms
コンパイル使用メモリ 410,304 KB
実行使用メモリ 50,656 KB
最終ジャッジ日時 2023-08-13 01:55:07
合計ジャッジ時間 13,940 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 261 ms
50,244 KB
testcase_01 AC 264 ms
50,656 KB
testcase_02 AC 264 ms
50,284 KB
testcase_03 AC 266 ms
50,248 KB
testcase_04 AC 261 ms
50,260 KB
testcase_05 AC 264 ms
50,188 KB
testcase_06 AC 263 ms
50,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>){
         ^

ソースコード

diff #

fun main(args:Array<String>){
    readLine()!!.toInt().let {
        when {
            it%2 == 0 -> it/2
            else -> it/2 + 1
        }
    }.let { println(it) }
}
0