結果
問題 |
No.8081 HQ9+
|
ユーザー |
![]() |
提出日時 | 2021-04-01 20:56:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 197 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 82,324 KB |
実行使用メモリ | 56,448 KB |
最終ジャッジ日時 | 2024-12-21 04:49:03 |
合計ジャッジ時間 | 2,031 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 6 |
ソースコード
import sys N = int(input()) S = input() if len(set(S)) == 1 and S[0] == "Q": for length in range(1, 10 ** 3): if length ** 2 == N: sys.stdout.write("Q" * length) exit(0) print(-1)