結果
問題 |
No.805 UMG
|
ユーザー |
![]() |
提出日時 | 2020-02-11 12:00:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,248 KB |
最終ジャッジ日時 | 2024-11-18 13:58:18 |
合計ジャッジ時間 | 17,385 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 TLE * 5 |
ソースコード
n = int(input()) s = input() cnt = 0 for i in range(n-2): for j in range(1, (n-i+1)//2): if s[i]+s[i+j]+s[i+j*2] == 'UMG': cnt += 1 print(cnt)