結果

問題 No.69 文字を自由に並び替え
ユーザー javyjavy
提出日時 2015-11-02 23:59:06
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 293 ms / 5,000 ms
コード長 714 bytes
コンパイル時間 13,468 ms
コンパイル使用メモリ 413,772 KB
実行使用メモリ 55,580 KB
最終ジャッジ日時 2023-08-12 13:25:23
合計ジャッジ時間 16,627 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 276 ms
53,520 KB
testcase_01 AC 271 ms
55,580 KB
testcase_02 AC 293 ms
53,524 KB
testcase_03 AC 269 ms
53,880 KB
testcase_04 AC 279 ms
53,616 KB
testcase_05 AC 271 ms
53,656 KB
testcase_06 AC 269 ms
53,600 KB
testcase_07 AC 264 ms
53,592 KB
testcase_08 AC 271 ms
53,564 KB
testcase_09 AC 273 ms
54,580 KB
testcase_10 AC 275 ms
53,564 KB
testcase_11 AC 272 ms
53,728 KB
testcase_12 AC 269 ms
53,596 KB
testcase_13 AC 265 ms
53,812 KB
testcase_14 AC 257 ms
53,632 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 readLineStringSorted() : List<Char> {
        val str = readLine() as String
        return str.toCharArray().sorted()
    }
    val inputStr1 = readLineStringSorted()
    val inputStr2 = readLineStringSorted()
    if (inputStr1.equals(inputStr2)) {
        println("YES")
    } else {
        println("NO")
    }
}
0