結果

問題 No.495 (^^*) Easy
ユーザー 💕💖💞💕💖💞
提出日時 2017-04-01 18:39:12
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 498 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 11,167 ms
コンパイル使用メモリ 425,940 KB
実行使用メモリ 65,148 KB
最終ジャッジ日時 2024-04-30 12:40:38
合計ジャッジ時間 14,305 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 320 ms
56,904 KB
testcase_01 AC 329 ms
57,028 KB
testcase_02 AC 323 ms
57,036 KB
testcase_03 AC 321 ms
56,804 KB
testcase_04 AC 332 ms
56,876 KB
testcase_05 AC 394 ms
57,500 KB
testcase_06 AC 498 ms
65,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) { 
         ^

ソースコード

diff #

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")
}
0