結果

問題 No.138 化石のバージョン
ユーザー mura40424mura40424
提出日時 2015-05-31 16:07:56
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 332 ms / 5,000 ms
コード長 464 bytes
コンパイル時間 12,208 ms
コンパイル使用メモリ 430,608 KB
実行使用メモリ 51,880 KB
最終ジャッジ日時 2024-04-30 02:42:52
合計ジャッジ時間 25,614 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 317 ms
51,512 KB
testcase_01 AC 315 ms
51,464 KB
testcase_02 AC 318 ms
51,472 KB
testcase_03 AC 321 ms
51,580 KB
testcase_04 AC 318 ms
51,792 KB
testcase_05 AC 324 ms
51,608 KB
testcase_06 AC 332 ms
51,540 KB
testcase_07 AC 322 ms
51,764 KB
testcase_08 AC 322 ms
51,816 KB
testcase_09 AC 318 ms
51,788 KB
testcase_10 AC 314 ms
51,572 KB
testcase_11 AC 322 ms
51,880 KB
testcase_12 AC 316 ms
51,488 KB
testcase_13 AC 322 ms
51,492 KB
testcase_14 AC 317 ms
51,716 KB
testcase_15 AC 321 ms
51,820 KB
testcase_16 AC 326 ms
51,636 KB
testcase_17 AC 323 ms
51,628 KB
testcase_18 AC 321 ms
51,856 KB
testcase_19 AC 327 ms
51,740 KB
testcase_20 AC 325 ms
51,732 KB
testcase_21 AC 317 ms
51,696 KB
testcase_22 AC 315 ms
51,736 KB
testcase_23 AC 317 ms
51,536 KB
testcase_24 AC 319 ms
51,488 KB
testcase_25 AC 315 ms
51,512 KB
testcase_26 AC 324 ms
51,708 KB
testcase_27 AC 314 ms
51,816 KB
testcase_28 AC 319 ms
51,524 KB
testcase_29 AC 316 ms
51,540 KB
testcase_30 AC 316 ms
51,648 KB
testcase_31 AC 319 ms
51,536 KB
testcase_32 AC 318 ms
51,772 KB
testcase_33 AC 314 ms
51,484 KB
testcase_34 AC 319 ms
51,556 KB
testcase_35 AC 323 ms
51,564 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args : Array<String>){
         ^

ソースコード

diff #

import java.lang.Math

fun main(args : Array<String>){
    var fossil = readLine()!!.split('.').map { it.toInt() }
    var current = readLine()!!.split('.').map { it.toInt() }
    var f_sum = 0
    var c_sum = 0

    for(i in 0..2) {
        f_sum += fossil[i]*Math.pow(1000.0, (2 - i).toDouble()).toInt()
        c_sum += current[i] * Math.pow(1000.0,(2 - i).toDouble()).toInt()
    }
    if(c_sum > f_sum)
        println("NO")
    else
        println("YES")
}
0