結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-04-01 18:39:12 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 501 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 10,822 ms |
コンパイル使用メモリ | 426,440 KB |
実行使用メモリ | 60,060 KB |
最終ジャッジ日時 | 2024-11-20 07:43:37 |
合計ジャッジ時間 | 14,309 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 340 ms
50,972 KB |
testcase_01 | AC | 331 ms
51,904 KB |
testcase_02 | AC | 326 ms
51,508 KB |
testcase_03 | AC | 322 ms
50,832 KB |
testcase_04 | AC | 332 ms
50,876 KB |
testcase_05 | AC | 398 ms
52,280 KB |
testcase_06 | AC | 501 ms
60,060 KB |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used fun main(args:Array<String>) { ^
ソースコード
fun main(args:Array<String>) { val text:String = readLine()!! val a = Regex("""\(\^\^\*\)""").findAll(text).map{ x -> x.value }.toList().size val b = Regex("""\(\*\^\^\)""").findAll(text).map{ x -> x.value }.toList().size println("$a $b") }