結果

問題 No.138 化石のバージョン
ユーザー 💕💖💞💕💖💞
提出日時 2017-07-02 13:44:01
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 566 bytes
コンパイル時間 12,679 ms
コンパイル使用メモリ 447,424 KB
実行使用メモリ 58,004 KB
最終ジャッジ日時 2024-04-30 15:20:15
合計ジャッジ時間 26,844 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 369 ms
57,840 KB
testcase_01 AC 380 ms
57,844 KB
testcase_02 AC 376 ms
58,004 KB
testcase_03 AC 369 ms
57,876 KB
testcase_04 AC 366 ms
57,884 KB
testcase_05 AC 373 ms
57,844 KB
testcase_06 AC 371 ms
57,988 KB
testcase_07 AC 371 ms
57,848 KB
testcase_08 AC 365 ms
57,744 KB
testcase_09 AC 371 ms
57,744 KB
testcase_10 AC 368 ms
57,848 KB
testcase_11 AC 371 ms
57,564 KB
testcase_12 AC 367 ms
57,796 KB
testcase_13 AC 373 ms
57,892 KB
testcase_14 AC 370 ms
57,860 KB
testcase_15 AC 374 ms
57,740 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 383 ms
57,832 KB
testcase_20 AC 374 ms
57,840 KB
testcase_21 WA -
testcase_22 AC 372 ms
57,900 KB
testcase_23 AC 373 ms
57,800 KB
testcase_24 AC 371 ms
57,860 KB
testcase_25 AC 368 ms
57,828 KB
testcase_26 AC 374 ms
57,836 KB
testcase_27 AC 369 ms
57,844 KB
testcase_28 AC 373 ms
57,868 KB
testcase_29 AC 372 ms
57,864 KB
testcase_30 AC 367 ms
57,824 KB
testcase_31 AC 376 ms
57,820 KB
testcase_32 AC 369 ms
57,860 KB
testcase_33 AC 372 ms
57,856 KB
testcase_34 AC 374 ms
57,892 KB
testcase_35 AC 367 ms
57,796 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