結果
| 問題 |
No.805 UMG
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 18:54:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,376 KB |
| 最終ジャッジ日時 | 2024-11-18 14:02:42 |
| 合計ジャッジ時間 | 17,495 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 TLE * 5 |
ソースコード
N = int(input())
S = input()
c = 0
for i in range(N):
for j in range(i+1,N):
k = 2*j - i
if k < N:
if S[i] == "U" and S[j] == "M" and S[k] == "G":
c += 1
print(c)