結果

問題 No.163 cAPSlOCK
ユーザー バカらっくバカらっく
提出日時 2019-11-26 03:07:52
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 346 ms / 5,000 ms
コード長 171 bytes
コンパイル時間 13,569 ms
コンパイル使用メモリ 435,372 KB
実行使用メモリ 57,196 KB
最終ジャッジ日時 2024-04-23 14:12:50
合計ジャッジ時間 20,175 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 312 ms
51,764 KB
testcase_01 AC 308 ms
56,948 KB
testcase_02 AC 311 ms
56,932 KB
testcase_03 AC 309 ms
57,128 KB
testcase_04 AC 311 ms
57,016 KB
testcase_05 AC 308 ms
57,068 KB
testcase_06 AC 309 ms
57,040 KB
testcase_07 AC 310 ms
56,972 KB
testcase_08 AC 312 ms
57,024 KB
testcase_09 AC 314 ms
57,120 KB
testcase_10 AC 346 ms
57,016 KB
testcase_11 AC 308 ms
57,160 KB
testcase_12 AC 310 ms
57,124 KB
testcase_13 AC 313 ms
57,040 KB
testcase_14 AC 314 ms
56,964 KB
testcase_15 AC 311 ms
57,008 KB
testcase_16 AC 309 ms
57,004 KB
testcase_17 AC 312 ms
57,040 KB
testcase_18 AC 313 ms
57,196 KB
testcase_19 AC 313 ms
57,092 KB
testcase_20 AC 310 ms
56,848 KB
testcase_21 AC 311 ms
57,068 KB
testcase_22 AC 315 ms
56,892 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^
Main.kt:3:41: warning: 'toUpperCase(): Char' is deprecated. Use uppercaseChar() instead.
    val inpt = readLine()!!.map { if(it.toUpperCase() == it) it.toLowerCase() else it.toUpperCase() }.joinToString("")
                                        ^
Main.kt:3:65: warning: 'toLowerCase(): Char' is deprecated. Use lowercaseChar() instead.
    val inpt = readLine()!!.map { if(it.toUpperCase() == it) it.toLowerCase() else it.toUpperCase() }.joinToString("")
                                                                ^
Main.kt:3:87: warning: 'toUpperCase(): Char' is deprecated. Use uppercaseChar() instead.
    val inpt = readLine()!!.map { if(it.toUpperCase() == it) it.toLowerCase() else it.toUpperCase() }.joinToString("")
                                                                                      ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val inpt = readLine()!!.map { if(it.toUpperCase() == it) it.toLowerCase() else it.toUpperCase() }.joinToString("")
    println(inpt)
}

0