結果
| 問題 | 
                            No.264 じゃんけん
                             | 
                    
| コンテスト | |
| ユーザー | 
                             rutilicus
                         | 
                    
| 提出日時 | 2020-08-30 21:05:23 | 
| 言語 | Kotlin  (2.1.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 349 bytes | 
| コンパイル時間 | 11,418 ms | 
| コンパイル使用メモリ | 433,540 KB | 
| 実行使用メモリ | 57,056 KB | 
| 最終ジャッジ日時 | 2024-11-15 15:27:26 | 
| 合計ジャッジ時間 | 13,754 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 WA * 3 | 
コンパイルメッセージ
Main.kt:6:13: warning: 'appendln(String?): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
    builder.appendln(
            ^
            
            ソースコード
fun main() {
    val builder = StringBuilder()
    val (n, k) = readInputLine().split(" ").map { it.toInt() }
    builder.appendln(
        when {
            n == k -> "Drew"
            (n + 1) % 3 == k -> "Won"
            else -> "Lose"
        }
    )
    print(builder.toString())
}
fun readInputLine(): String {
    return readLine()!!
}
            
            
            
        
            
rutilicus