結果

問題 No.8081 HQ9+
ユーザー NOSS
提出日時 2021-04-01 21:18:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 122 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-12-21 05:33:15
合計ジャッジ時間 1,564 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
x = 0
for c in s:
    if c == 'Q':
        x += 1
if x == 1:
    print(s)
else:
    print(-1)
0