結果
問題 |
No.218 経験値1.5倍
|
ユーザー |
|
提出日時 | 2018-04-09 01:58:09 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 294 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 10,565 ms |
コンパイル使用メモリ | 429,584 KB |
実行使用メモリ | 50,040 KB |
最終ジャッジ日時 | 2024-11-20 15:47:58 |
合計ジャッジ時間 | 20,630 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^
ソースコード
package net.ipipip0129.kotlin.yukicoder fun main(args: Array<String>) { val a = readLine()!!.toDouble() val b = readLine()!!.toDouble() val c = readLine()!!.toDouble() val nc = Math.ceil(a / b) val ec = Math.ceil(a / c) if (ec * 1.5 <= nc) { println("YES") } else { println("NO") } }