結果

問題 No.292 芸名
ユーザー javyjavy
提出日時 2015-11-03 00:16:15
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 327 ms / 2,000 ms
コード長 805 bytes
コンパイル時間 12,241 ms
コンパイル使用メモリ 430,532 KB
実行使用メモリ 51,000 KB
最終ジャッジ日時 2024-04-30 03:14:47
合計ジャッジ時間 17,213 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 308 ms
50,988 KB
testcase_01 AC 307 ms
50,736 KB
testcase_02 AC 304 ms
50,752 KB
testcase_03 AC 301 ms
50,872 KB
testcase_04 AC 307 ms
50,988 KB
testcase_05 AC 308 ms
50,908 KB
testcase_06 AC 315 ms
50,728 KB
testcase_07 AC 315 ms
50,828 KB
testcase_08 AC 322 ms
50,772 KB
testcase_09 AC 327 ms
50,860 KB
testcase_10 AC 317 ms
50,864 KB
testcase_11 AC 303 ms
51,000 KB
testcase_12 AC 317 ms
50,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

package Yukicoder

/**
 * Created by hichikawa on 2015/11/02.
 */
fun main(args: Array<String>) {
    fun readLineLongArray() : List<Long> {
        val str = readLine() as String
        val arrStr = str.split(" ")
        val ret = arrStr.map { it.toLong() }
        return ret
    }
    fun readLineLong() : Long {
        val str = readLine() as String
        return str.toLong()
    }
    fun readLineStringArray() : List<String> {
        val str = readLine() as String
        val arrStr = str.split(" ")
        return arrStr
    }
    val arrStr = readLineStringArray()
    val str = arrStr[0]
    val num1 = arrStr[1].toInt()
    val num2 = arrStr[2].toInt()
    for (i in 0..(str.length-1)) {
        if (i == num1 || i == num2)
            continue
        print(str[i])
    }
    println()
}
0