結果
| 問題 | No.501 穴と文字列 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2017-06-25 17:26:41 |
| 言語 | Kotlin (2.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 8,100 ms |
| コンパイル使用メモリ | 459,004 KB |
| 実行使用メモリ | 55,560 KB |
| 最終ジャッジ日時 | 2026-05-14 12:59:46 |
| 合計ジャッジ時間 | 13,888 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 7 |
ソースコード
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
}
}
💕💖💞