結果
問題 | No.701 ひとりしりとり |
ユーザー | 💕💖💞 |
提出日時 | 2018-06-16 03:14:23 |
言語 | Kotlin (1.9.23) |
結果 |
WA
|
実行時間 | - |
コード長 | 469 bytes |
コンパイル時間 | 13,085 ms |
コンパイル使用メモリ | 435,924 KB |
実行使用メモリ | 108,120 KB |
最終ジャッジ日時 | 2024-04-30 18:54:14 |
合計ジャッジ時間 | 21,083 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 334 ms
56,992 KB |
testcase_01 | AC | 396 ms
57,916 KB |
testcase_02 | AC | 397 ms
58,232 KB |
testcase_03 | AC | 395 ms
58,128 KB |
testcase_04 | AC | 396 ms
58,164 KB |
testcase_05 | AC | 396 ms
58,112 KB |
testcase_06 | AC | 398 ms
58,000 KB |
testcase_07 | AC | 407 ms
58,156 KB |
testcase_08 | AC | 425 ms
58,312 KB |
testcase_09 | AC | 605 ms
64,232 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used fun main(args:Array<String>) { ^
ソースコード
fun main(args:Array<String>) { val n = readLine()!!.toInt() val s = (0..9).zip( "abcdefghei".toList() ).map { val (num, char) = it Pair(num.toString(), char.toString()) }.toMap() val buffs = mutableListOf<String>("an") (1..n-1).map { var numstr = "a%.8fa".format(Math.random()).replace("0.", "") s.map { (s,t) -> numstr = numstr.replace( s, t ) } buffs.add(numstr) } buffs.reversed().joinToString("\n").run(::println) }