結果

問題 No.138 化石のバージョン
ユーザー 💕💖💞💕💖💞
提出日時 2017-07-02 13:46:53
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 359 ms / 5,000 ms
コード長 314 bytes
コンパイル時間 9,728 ms
コンパイル使用メモリ 438,112 KB
実行使用メモリ 58,020 KB
最終ジャッジ日時 2024-04-30 15:18:52
合計ジャッジ時間 22,233 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 337 ms
57,744 KB
testcase_01 AC 324 ms
57,760 KB
testcase_02 AC 308 ms
57,768 KB
testcase_03 AC 309 ms
57,788 KB
testcase_04 AC 301 ms
57,896 KB
testcase_05 AC 307 ms
57,780 KB
testcase_06 AC 306 ms
57,724 KB
testcase_07 AC 303 ms
57,760 KB
testcase_08 AC 299 ms
57,836 KB
testcase_09 AC 311 ms
57,864 KB
testcase_10 AC 301 ms
57,844 KB
testcase_11 AC 309 ms
58,020 KB
testcase_12 AC 310 ms
57,912 KB
testcase_13 AC 308 ms
57,844 KB
testcase_14 AC 320 ms
57,808 KB
testcase_15 AC 310 ms
57,864 KB
testcase_16 AC 306 ms
57,840 KB
testcase_17 AC 307 ms
57,856 KB
testcase_18 AC 306 ms
57,752 KB
testcase_19 AC 309 ms
57,756 KB
testcase_20 AC 303 ms
57,928 KB
testcase_21 AC 305 ms
57,772 KB
testcase_22 AC 308 ms
57,868 KB
testcase_23 AC 309 ms
57,736 KB
testcase_24 AC 331 ms
57,732 KB
testcase_25 AC 309 ms
57,860 KB
testcase_26 AC 309 ms
57,904 KB
testcase_27 AC 310 ms
57,848 KB
testcase_28 AC 307 ms
57,840 KB
testcase_29 AC 307 ms
57,752 KB
testcase_30 AC 310 ms
57,844 KB
testcase_31 AC 312 ms
57,840 KB
testcase_32 AC 313 ms
57,876 KB
testcase_33 AC 359 ms
57,828 KB
testcase_34 AC 306 ms
57,784 KB
testcase_35 AC 308 ms
57,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
          ^

ソースコード

diff #

fun main( args : Array<String> ) {
  val (a0, a1, a2) = readLine()!!.split(".").map { it.toInt() }
  val (b0, b1, b2) = readLine()!!.split(".").map { it.toInt() }
  when { 
    "%03d%03d%03d".format(a0,a1,a2).toLong() >= "%03d%03d%03d".format(b0,b1,b2).toLong()  -> "YES"
    else -> "NO"
  }.let { println(it) }
}
0