結果

問題 No.3081 HQ9+
ユーザー nasubi24nasubi24
提出日時 2021-04-01 21:19:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 53,636 KB
最終ジャッジ日時 2024-06-01 03:08:14
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,268 KB
testcase_01 AC 38 ms
52,988 KB
testcase_02 AC 39 ms
52,348 KB
testcase_03 AC 38 ms
51,904 KB
testcase_04 WA -
testcase_05 AC 38 ms
52,676 KB
testcase_06 AC 38 ms
52,404 KB
testcase_07 AC 39 ms
52,520 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 38 ms
52,452 KB
testcase_12 AC 39 ms
51,828 KB
testcase_13 AC 38 ms
52,556 KB
testcase_14 AC 38 ms
52,624 KB
testcase_15 AC 39 ms
52,352 KB
testcase_16 AC 39 ms
52,364 KB
testcase_17 AC 39 ms
51,880 KB
testcase_18 AC 39 ms
53,492 KB
testcase_19 AC 38 ms
52,420 KB
testcase_20 AC 39 ms
52,420 KB
testcase_21 AC 39 ms
52,552 KB
testcase_22 AC 39 ms
53,636 KB
権限があれば一括ダウンロードができます

ソースコード

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