結果
問題 |
No.8081 HQ9+
|
ユーザー |
👑 ![]() |
提出日時 | 2021-04-01 21:24:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 52,608 KB |
最終ジャッジ日時 | 2024-12-21 05:40:08 |
合計ジャッジ時間 | 2,087 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 6 |
ソースコード
import sys N = int(input()) S = input() for i in S: if i != "Q": print (-1) sys.exit() for i in range(1000): if i**2 == len(S): print ("Q" * i) sys.exit() print (-1)