結果
問題 |
No.8081 HQ9+
|
ユーザー |
![]() |
提出日時 | 2021-04-01 20:54:53 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,576 KB |
実行使用メモリ | 58,144 KB |
最終ジャッジ日時 | 2024-12-21 04:44:45 |
合計ジャッジ時間 | 2,045 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 6 |
ソースコード
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: print("Q" * length) exit(0) print(-1)