結果
| 問題 | No.1220 yukipoker |
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2020-09-06 11:47:24 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 332 bytes |
| 記録 | |
| コンパイル時間 | 13,115 ms |
| コンパイル使用メモリ | 435,264 KB |
| 実行使用メモリ | 89,140 KB |
| 最終ジャッジ日時 | 2024-11-29 06:58:54 |
| 合計ジャッジ時間 | 25,515 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 24 |
コンパイルメッセージ
Main.kt:7:14: warning: variable 'n' is never used
val (n, m, k) = readInputLine().split(" ").map { it.toLong() }
^
Main.kt:7:20: warning: variable 'k' is never used
val (n, m, k) = readInputLine().split(" ").map { it.toLong() }
^
Main.kt:9:17: 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(if (m != 1L) "Flush" else "Straight")
^
ソースコード
fun main() {
val builder = StringBuilder()
val q = readInputLine().toInt()
repeat(q) {
val (n, m, k) = readInputLine().split(" ").map { it.toLong() }
builder.appendln(if (m != 1L) "Flush" else "Straight")
}
print(builder.toString())
}
fun readInputLine(): String {
return readLine()!!
}
rutilicus