結果

問題 No.457 (^^*)
ユーザー letrangerjpletrangerjp
提出日時 2017-11-03 07:37:19
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 156 bytes
コンパイル時間 481 ms
コンパイル使用メモリ 11,136 KB
実行使用メモリ 39,984 KB
最終ジャッジ日時 2023-08-14 16:24:03
合計ジャッジ時間 7,209 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
19,400 KB
testcase_01 AC 79 ms
15,304 KB
testcase_02 AC 79 ms
15,212 KB
testcase_03 AC 80 ms
15,124 KB
testcase_04 AC 79 ms
15,256 KB
testcase_05 AC 80 ms
15,124 KB
testcase_06 AC 80 ms
15,220 KB
testcase_07 AC 116 ms
19,328 KB
testcase_08 AC 342 ms
22,388 KB
testcase_09 AC 1,701 ms
26,296 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l=r=0
gets.scan(?(){
  s=$'
  t=s.dup
  l += 1 while t.sub!(/(\^.*?\^.*?\*.*?)\)/,'\1')
  r += 1 while s.sub!(/(\*.*?\^.*?\^.*?)\)/,'\1')
}
puts"#{l} #{r}"
0