結果
| 問題 |
No.501 穴と文字列
|
| ユーザー |
💕💖💞
|
| 提出日時 | 2017-06-25 17:26:41 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 11,371 ms |
| コンパイル使用メモリ | 430,584 KB |
| 実行使用メモリ | 57,124 KB |
| 最終ジャッジ日時 | 2024-11-20 10:34:04 |
| 合計ジャッジ時間 | 19,829 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 7 |
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
^
Main.kt:7:15: warning: the expression is unused
else -> null
^
ソースコード
fun main( args : Array<String> ) {
val (b, t) = readLine()!!.split(" ").map { x -> x.toInt() }
when {
b == t -> println("A".repeat(b))
b < t -> println("A".repeat(b - (t-b)) + "B".repeat(t-b) )
b > t -> println("A".repeat(b - t) + "C".repeat(t) )
else -> null
}
}
💕💖💞