結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2017-07-02 13:44:01 |
言語 | Kotlin (2.1.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 566 bytes |
コンパイル時間 | 11,543 ms |
コンパイル使用メモリ | 436,188 KB |
実行使用メモリ | 57,872 KB |
最終ジャッジ日時 | 2024-11-20 11:17:54 |
合計ジャッジ時間 | 26,230 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 WA * 4 |
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used fun main( args : Array<String> ) { ^
ソースコード
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) } }