結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2019-05-07 22:09:26 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| コンパイル時間 | 11,427 ms |
| コンパイル使用メモリ | 439,144 KB |
| 実行使用メモリ | 60,508 KB |
| 最終ジャッジ日時 | 2024-11-20 18:20:13 |
| 合計ジャッジ時間 | 20,300 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 23 |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
^
ソースコード
fun main(args:Array<String>) {
val (A, B) = readLine()!!.split(" ").map { it.toInt() }
listOf(A - B, -1).max().let {
when {
it == -1 -> Pair("Yes", Math.abs(A+1-B))
else -> Pair("No", Math.abs(A+1-B))
}.let { println("${it.first}\n${it.second}") }
}
}
💕💖💞