結果

問題 No.1461 しあはせや歩みゆく?
ユーザー rhincodon66rhincodon66
提出日時 2021-04-02 21:26:50
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 266 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 13,552 ms
コンパイル使用メモリ 413,376 KB
実行使用メモリ 50,596 KB
最終ジャッジ日時 2023-08-25 11:25:11
合計ジャッジ時間 24,156 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 261 ms
50,204 KB
testcase_01 AC 261 ms
50,288 KB
testcase_02 AC 262 ms
50,320 KB
testcase_03 AC 262 ms
50,412 KB
testcase_04 AC 262 ms
50,208 KB
testcase_05 AC 263 ms
50,348 KB
testcase_06 AC 263 ms
50,292 KB
testcase_07 AC 262 ms
50,336 KB
testcase_08 AC 262 ms
50,272 KB
testcase_09 AC 264 ms
50,276 KB
testcase_10 AC 258 ms
50,268 KB
testcase_11 AC 262 ms
50,216 KB
testcase_12 AC 265 ms
50,412 KB
testcase_13 AC 261 ms
50,312 KB
testcase_14 AC 262 ms
50,592 KB
testcase_15 AC 258 ms
50,488 KB
testcase_16 AC 259 ms
50,276 KB
testcase_17 AC 261 ms
50,524 KB
testcase_18 AC 260 ms
50,332 KB
testcase_19 AC 260 ms
50,180 KB
testcase_20 AC 259 ms
50,360 KB
testcase_21 AC 260 ms
50,284 KB
testcase_22 AC 265 ms
50,208 KB
testcase_23 AC 266 ms
50,244 KB
testcase_24 AC 263 ms
50,252 KB
testcase_25 AC 266 ms
50,280 KB
testcase_26 AC 264 ms
50,308 KB
testcase_27 AC 264 ms
50,248 KB
testcase_28 AC 265 ms
50,180 KB
testcase_29 AC 260 ms
50,364 KB
testcase_30 AC 261 ms
50,468 KB
testcase_31 AC 263 ms
50,244 KB
testcase_32 AC 259 ms
50,304 KB
testcase_33 AC 262 ms
50,276 KB
testcase_34 AC 257 ms
50,280 KB
testcase_35 AC 260 ms
50,596 KB
testcase_36 AC 259 ms
50,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

import java.util.*
import javax.swing.plaf.SeparatorUI
import kotlin.math.ceil
import java.util.Queue as Queue1

fun main(args:Array<String>) {
    solve()
}

fun solve(){
    val n = readLine()!!.toLong()
    if(n <= 3L) println(n) else println((n - 3) * 5 + 3)
}

0