結果
問題 |
No.805 UMG
|
ユーザー |
|
提出日時 | 2019-07-09 10:52:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-18 13:51:04 |
合計ジャッジ時間 | 1,649 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 RE * 19 |
ソースコード
n = int(input()) s = input() x = 0 for i in range(n): if s[i] == 'U': for j in range((n-i)//2 + 1): if s[i + j] == 'M' and s[i + j*2] == 'G': x += 1 print(x)