結果

問題 No.71 そろばん
ユーザー firiexpfiriexp
提出日時 2019-03-03 17:18:21
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 298 ms / 5,000 ms
コード長 100 bytes
コンパイル時間 10,717 ms
コンパイル使用メモリ 428,168 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-04-30 19:58:18
合計ジャッジ時間 18,556 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 289 ms
54,296 KB
testcase_01 AC 292 ms
54,344 KB
testcase_02 AC 284 ms
54,188 KB
testcase_03 AC 288 ms
54,276 KB
testcase_04 AC 287 ms
54,256 KB
testcase_05 AC 290 ms
54,220 KB
testcase_06 AC 288 ms
54,328 KB
testcase_07 AC 285 ms
54,252 KB
testcase_08 AC 283 ms
54,380 KB
testcase_09 AC 298 ms
54,216 KB
testcase_10 AC 289 ms
54,088 KB
testcase_11 AC 287 ms
54,136 KB
testcase_12 AC 288 ms
54,136 KB
testcase_13 AC 285 ms
54,092 KB
testcase_14 AC 292 ms
54,232 KB
testcase_15 AC 286 ms
54,096 KB
testcase_16 AC 287 ms
54,208 KB
testcase_17 AC 285 ms
54,244 KB
testcase_18 AC 285 ms
54,168 KB
testcase_19 AC 284 ms
54,352 KB
testcase_20 AC 288 ms
54,100 KB
testcase_21 AC 285 ms
54,232 KB
testcase_22 AC 283 ms
54,256 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val n = readLine()!!.toLong()
    println((n/2+1)*((n+3)/2)-1)
}
0