結果
| 問題 | No.805 UMG |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-09-18 18:44:04 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 161 ms / 2,000 ms |
| + 847µs | |
| コード長 | 141 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2026-08-30 09:40:22 |
| 合計ジャッジ時間 | 4,291 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
n=int(input()) s=input() c=0 for i in range(n): for j in range(1,n+1): if 0<=i-j and i+j<n and s[i-j]+s[i]+s[i+j]=="UMG": c+=1 print(c)
sasa8uyauya