結果

問題 No.734 Careful Engineer
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-11-26 22:28:16
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 10,968 ms
コンパイル使用メモリ 430,504 KB
実行使用メモリ 55,440 KB
最終ジャッジ日時 2024-04-30 19:37:10
合計ジャッジ時間 17,224 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 357 ms
55,244 KB
testcase_07 AC 356 ms
55,268 KB
testcase_08 AC 370 ms
55,348 KB
testcase_09 AC 357 ms
55,344 KB
testcase_10 WA -
testcase_11 AC 353 ms
55,156 KB
testcase_12 AC 352 ms
55,248 KB
testcase_13 AC 354 ms
55,192 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)

    val hand = sc.nextInt() * 60
    val runCost = sc.nextInt()
    val initCost = sc.nextInt() * 3600

    if (hand <= runCost) {
        println(-1)
        return
    }
    println((initCost - 1) / (hand - runCost) + 1)
}
0