結果
| 問題 |
No.8081 HQ9+
|
| コンテスト | |
| ユーザー |
nasubi24
|
| 提出日時 | 2021-04-01 21:15:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 82,660 KB |
| 実行使用メモリ | 54,060 KB |
| 最終ジャッジ日時 | 2024-12-21 05:15:34 |
| 合計ジャッジ時間 | 2,139 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 6 |
ソースコード
n=int(input())
s=input()
if s.count("Q")==n:
for i in range(1,20):
if n==i**i:
print("Q"*i)
break
else:
print(-1)
else:
print(-1)
nasubi24