結果

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

ソースコード

diff #

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