結果

問題 No.8081 HQ9+
ユーザー nasubi24
提出日時 2021-04-01 21:25:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 98 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 53,776 KB
最終ジャッジ日時 2024-12-21 05:41:23
合計ジャッジ時間 1,829 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
s=input()
if s.count("Q")==1 and s.count("H")==0:
    print(s)
else:
    print(-1)
0