結果

問題 No.1422 Social Distance in Train
ユーザー face4face4
提出日時 2021-04-09 00:02:43
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 274 ms / 2,000 ms
コード長 83 bytes
コンパイル時間 13,816 ms
コンパイル使用メモリ 406,020 KB
実行使用メモリ 50,376 KB
最終ジャッジ日時 2023-09-06 08:02:46
合計ジャッジ時間 17,370 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 267 ms
50,128 KB
testcase_01 AC 269 ms
50,052 KB
testcase_02 AC 274 ms
50,008 KB
testcase_03 AC 270 ms
49,996 KB
testcase_04 AC 268 ms
50,376 KB
testcase_05 AC 268 ms
50,244 KB
testcase_06 AC 267 ms
50,180 KB
testcase_07 AC 266 ms
50,264 KB
testcase_08 AC 270 ms
50,312 KB
testcase_09 AC 268 ms
50,292 KB
testcase_10 AC 272 ms
50,196 KB
testcase_11 AC 271 ms
50,164 KB
testcase_12 AC 265 ms
50,096 KB
testcase_13 AC 265 ms
50,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main(){
    val n = readLine()!!.toInt()
    println(if(n%2==1) 1 else n/2+1)
}
0