結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2017-07-02 13:46:53 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
AC
|
| 実行時間 | 377 ms / 5,000 ms |
| コード長 | 314 bytes |
| コンパイル時間 | 13,316 ms |
| コンパイル使用メモリ | 436,492 KB |
| 実行使用メモリ | 57,836 KB |
| 最終ジャッジ日時 | 2024-11-20 11:16:15 |
| 合計ジャッジ時間 | 27,100 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
コンパイルメッセージ
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) }
}
💕💖💞