結果
| 問題 | No.780 オフ会 | 
| コンテスト | |
| ユーザー |  💕💖💞 | 
| 提出日時 | 2019-05-07 22:10:28 | 
| 言語 | Kotlin (2.1.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 325 ms / 2,000 ms | 
| コード長 | 303 bytes | 
| コンパイル時間 | 11,682 ms | 
| コンパイル使用メモリ | 435,144 KB | 
| 実行使用メモリ | 60,416 KB | 
| 最終ジャッジ日時 | 2024-11-20 18:20:35 | 
| 合計ジャッジ時間 | 18,771 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 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}") }
    }
}
            
            
            
        