結果

問題 No.69 文字を自由に並び替え
ユーザー da_louisda_louis
提出日時 2020-02-12 00:10:24
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 363 ms / 5,000 ms
コード長 217 bytes
コンパイル時間 14,546 ms
コンパイル使用メモリ 437,344 KB
実行使用メモリ 57,592 KB
最終ジャッジ日時 2024-04-08 21:59:44
合計ジャッジ時間 20,021 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 327 ms
57,584 KB
testcase_01 AC 339 ms
57,584 KB
testcase_02 AC 363 ms
57,592 KB
testcase_03 AC 361 ms
57,592 KB
testcase_04 AC 362 ms
57,580 KB
testcase_05 AC 350 ms
57,580 KB
testcase_06 AC 354 ms
57,592 KB
testcase_07 AC 352 ms
57,584 KB
testcase_08 AC 352 ms
57,592 KB
testcase_09 AC 346 ms
57,592 KB
testcase_10 AC 337 ms
57,588 KB
testcase_11 AC 341 ms
57,592 KB
testcase_12 AC 331 ms
57,588 KB
testcase_13 AC 334 ms
57,588 KB
testcase_14 AC 329 ms
57,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    p35()
}

fun p35() {
    val (a, b) = (1..2).map { readLine()!! }

    val answer = if (a.toCharArray().sorted() == b.toCharArray().sorted()) "YES" else "NO"

    println(answer)
}
0