結果

問題 No.69 文字を自由に並び替え
ユーザー バカらっくバカらっく
提出日時 2019-09-23 02:29:59
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 355 ms / 5,000 ms
コード長 155 bytes
コンパイル時間 12,345 ms
コンパイル使用メモリ 429,860 KB
実行使用メモリ 58,568 KB
最終ジャッジ日時 2023-10-19 07:53:09
合計ジャッジ時間 18,892 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 345 ms
58,552 KB
testcase_01 AC 348 ms
58,556 KB
testcase_02 AC 349 ms
58,556 KB
testcase_03 AC 349 ms
58,568 KB
testcase_04 AC 350 ms
58,564 KB
testcase_05 AC 343 ms
58,556 KB
testcase_06 AC 341 ms
58,568 KB
testcase_07 AC 345 ms
58,560 KB
testcase_08 AC 345 ms
58,564 KB
testcase_09 AC 341 ms
58,552 KB
testcase_10 AC 346 ms
58,560 KB
testcase_11 AC 340 ms
58,568 KB
testcase_12 AC 344 ms
58,564 KB
testcase_13 AC 344 ms
58,560 KB
testcase_14 AC 355 ms
58,556 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    print(if((1..2).map { readLine()!!.toCharArray().sorted().joinToString("") }.let { it[0] == it[1] }) "YES" else "NO")

}
0