結果

問題 No.805 UMG
ユーザー matriematrie
提出日時 2020-12-13 21:51:45
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 130 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 138,144 KB
最終ジャッジ日時 2024-04-29 11:13:35
合計ジャッジ時間 6,776 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
82,816 KB
testcase_01 AC 90 ms
77,184 KB
testcase_02 AC 59 ms
65,280 KB
testcase_03 AC 74 ms
72,448 KB
testcase_04 AC 54 ms
62,592 KB
testcase_05 AC 54 ms
62,464 KB
testcase_06 AC 57 ms
62,848 KB
testcase_07 AC 67 ms
69,888 KB
testcase_08 AC 76 ms
72,832 KB
testcase_09 AC 73 ms
72,320 KB
testcase_10 AC 56 ms
62,720 KB
testcase_11 AC 59 ms
65,152 KB
testcase_12 AC 52 ms
62,976 KB
testcase_13 AC 75 ms
73,216 KB
testcase_14 AC 51 ms
62,592 KB
testcase_15 AC 233 ms
79,104 KB
testcase_16 AC 228 ms
79,232 KB
testcase_17 AC 182 ms
78,592 KB
testcase_18 AC 302 ms
79,744 KB
testcase_19 AC 157 ms
78,464 KB
testcase_20 AC 284 ms
79,860 KB
testcase_21 AC 202 ms
78,720 KB
testcase_22 AC 226 ms
79,232 KB
testcase_23 TLE -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
n=int(input())
s=input()
a=0
for i in range(n//2):
	x=r"(?=(U"+'.'*i+r"M"+'.'*i+r"G))"
	a+=len(re.findall(x,s))
print(a)
0