結果

問題 No.805 UMG
ユーザー pasoconhoshiipasoconhoshii
提出日時 2019-03-22 22:29:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 77,312 KB
最終ジャッジ日時 2023-08-11 19:18:43
合計ジャッジ時間 11,147 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
76,016 KB
testcase_01 AC 88 ms
76,424 KB
testcase_02 AC 76 ms
76,436 KB
testcase_03 AC 79 ms
76,176 KB
testcase_04 WA -
testcase_05 AC 71 ms
71,460 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 69 ms
71,200 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 TLE -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
s=input()

ans=0
for i in range(n):
    for j in range(i+1,n):
        for k in range(j+1,n):
            if s[i]=="U" and s[j]=="M" and s[k]=="K":
                ans+=1
print(ans)
0