結果
| 問題 |
No.8081 HQ9+
|
| コンテスト | |
| ユーザー |
NOSS
|
| 提出日時 | 2021-04-01 21:18:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 120 bytes |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-12-21 05:33:06 |
| 合計ジャッジ時間 | 1,563 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 21 |
ソースコード
n = int(input)
s = input()
x = 0
for c in s:
if c == 'Q':
x += 1
if x == 1:
print(s)
else:
print(-1)
NOSS