結果
問題 | No.69 文字を自由に並び替え |
ユーザー | javy |
提出日時 | 2015-11-02 23:59:06 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 311 ms / 5,000 ms |
コード長 | 714 bytes |
コンパイル時間 | 11,568 ms |
コンパイル使用メモリ | 432,876 KB |
実行使用メモリ | 53,320 KB |
最終ジャッジ日時 | 2024-04-30 03:13:59 |
合計ジャッジ時間 | 16,398 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 305 ms
53,200 KB |
testcase_01 | AC | 307 ms
52,876 KB |
testcase_02 | AC | 311 ms
53,320 KB |
testcase_03 | AC | 307 ms
53,232 KB |
testcase_04 | AC | 306 ms
53,012 KB |
testcase_05 | AC | 308 ms
53,108 KB |
testcase_06 | AC | 303 ms
53,232 KB |
testcase_07 | AC | 302 ms
52,968 KB |
testcase_08 | AC | 302 ms
53,048 KB |
testcase_09 | AC | 309 ms
52,852 KB |
testcase_10 | AC | 307 ms
53,208 KB |
testcase_11 | AC | 301 ms
53,244 KB |
testcase_12 | AC | 301 ms
53,116 KB |
testcase_13 | AC | 301 ms
53,112 KB |
testcase_14 | AC | 298 ms
53,208 KB |
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^
ソースコード
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") } }