結果
| 問題 | No.805 UMG |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-13 21:51:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 130 bytes |
| 記録 | |
| コンパイル時間 | 489 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 178,920 KB |
| 最終ジャッジ日時 | 2026-05-13 02:05:41 |
| 合計ジャッジ時間 | 6,673 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 TLE * 1 -- * 4 |
ソースコード
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)