結果
問題 | No.8081 HQ9+ |
ユーザー |
![]() |
提出日時 | 2021-04-01 20:08:54 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 53,828 KB |
最終ジャッジ日時 | 2024-12-18 01:27:09 |
合計ジャッジ時間 | 1,765 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 6 |
ソースコード
n = int(input()) S = input() for s in S: if s != "Q": print(-1) exit() for i in range(10**3): if i*i == n: print("Q"*i) exit() print(-1)