結果
問題 | No.279 木の数え上げ |
ユーザー | javy |
提出日時 | 2015-11-03 02:19:05 |
言語 | Kotlin (1.9.23) |
結果 |
WA
|
実行時間 | - |
コード長 | 755 bytes |
コンパイル時間 | 12,288 ms |
コンパイル使用メモリ | 427,928 KB |
実行使用メモリ | 55,924 KB |
最終ジャッジ日時 | 2024-04-30 05:17:08 |
合計ジャッジ時間 | 21,824 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 291 ms
49,720 KB |
testcase_01 | WA | - |
testcase_02 | AC | 293 ms
49,628 KB |
testcase_03 | AC | 291 ms
49,592 KB |
testcase_04 | WA | - |
testcase_05 | AC | 295 ms
49,844 KB |
testcase_06 | AC | 289 ms
49,444 KB |
testcase_07 | AC | 291 ms
49,636 KB |
testcase_08 | WA | - |
testcase_09 | AC | 287 ms
49,520 KB |
testcase_10 | WA | - |
testcase_11 | AC | 442 ms
53,056 KB |
testcase_12 | AC | 464 ms
55,240 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 476 ms
55,524 KB |
testcase_16 | AC | 480 ms
55,484 KB |
testcase_17 | WA | - |
testcase_18 | AC | 469 ms
53,860 KB |
testcase_19 | AC | 475 ms
55,476 KB |
testcase_20 | WA | - |
コンパイルメッセージ
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() } val str = readLine() as String val numT = str.filter { it == 't' }.length val numR = str.filter { it == 'r' }.length val numE = str.filter { it == 'e' }.length / 2 if (numT < numR) { if (numT < numE) println(numT) } else { if (numR < numE) println(numR) else println(numE) } }