結果

問題 No.71 そろばん
ユーザー firiexpfiriexp
提出日時 2019-03-03 17:18:21
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 334 ms / 5,000 ms
コード長 100 bytes
コンパイル時間 11,906 ms
コンパイル使用メモリ 427,916 KB
実行使用メモリ 49,984 KB
最終ジャッジ日時 2024-11-20 17:30:16
合計ジャッジ時間 18,709 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
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