結果
問題 |
No.805 UMG
|
ユーザー |
![]() |
提出日時 | 2020-08-07 23:25:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 364 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-18 14:05:33 |
合計ジャッジ時間 | 1,627 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 2 RE * 23 |
ソースコード
N = int(input()) S = input() result = 0 i = 0 while True: i = S.find('U', i) if i == -1: break j = i + 1 while True: j = S.format('M', j) if j == -1: break k = j + 1 while True: k = S.format('G', k) if k == -1: break result += 1 print(result)