結果

問題 No.138 化石のバージョン
コンテスト
ユーザー 💕💖💞
提出日時 2017-07-02 13:44:01
言語 Kotlin
(2.4.21 + ACL)
コンパイル:
kotlinc -cp /opt/aclib/ac_library.jar _filename_ -include-runtime -d main.jar
実行:
java -cp main.jar:/opt/aclib/ac_library.jar _class_
結果
WA  
実行時間 -
コード長 566 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,724 ms
コンパイル使用メモリ 502,212 KB
実行使用メモリ 48,872 KB
最終ジャッジ日時 2026-09-27 00:25:41
合計ジャッジ時間 14,142 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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