結果
問題 |
No.805 UMG
|
ユーザー |
![]() |
提出日時 | 2020-04-10 20:26:28 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 82,072 KB |
実行使用メモリ | 138,444 KB |
最終ジャッジ日時 | 2024-11-18 14:00:16 |
合計ジャッジ時間 | 19,382 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 TLE * 5 |
ソースコード
n = int(input()) s = input() ret = 0 for i in range(n): for j in range(i+1, n): for k in range(j+1, n): if j-i!=k-j: continue if s[i]=='U' and s[j]=='M' and s[k]=='G': ret += 1 print(ret)