結果

問題 No.805 UMG
ユーザー kawacchukawacchu
提出日時 2019-03-23 09:46:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 76,872 KB
最終ジャッジ日時 2023-08-11 19:22:27
合計ジャッジ時間 4,312 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
75,812 KB
testcase_01 AC 77 ms
75,540 KB
testcase_02 AC 74 ms
71,244 KB
testcase_03 AC 76 ms
75,992 KB
testcase_04 AC 71 ms
71,204 KB
testcase_05 AC 73 ms
71,452 KB
testcase_06 AC 71 ms
71,244 KB
testcase_07 AC 73 ms
75,792 KB
testcase_08 AC 73 ms
76,160 KB
testcase_09 AC 72 ms
75,892 KB
testcase_10 AC 70 ms
71,096 KB
testcase_11 AC 68 ms
71,300 KB
testcase_12 AC 71 ms
71,208 KB
testcase_13 AC 74 ms
75,780 KB
testcase_14 AC 69 ms
71,260 KB
testcase_15 AC 78 ms
76,240 KB
testcase_16 AC 79 ms
76,360 KB
testcase_17 AC 76 ms
76,076 KB
testcase_18 AC 79 ms
76,344 KB
testcase_19 AC 78 ms
76,500 KB
testcase_20 AC 79 ms
76,280 KB
testcase_21 AC 79 ms
76,348 KB
testcase_22 AC 80 ms
76,496 KB
testcase_23 AC 187 ms
76,844 KB
testcase_24 AC 184 ms
76,588 KB
testcase_25 AC 183 ms
76,800 KB
testcase_26 AC 188 ms
76,808 KB
testcase_27 AC 189 ms
76,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
S=input()
a=0
for i in range(1,(N+1)//2):
 for j in range(N-2*i):
  if S[j]+S[j+i]+S[j+2*i]=="UMG":a+=1
print(a)
0