結果
| 問題 | No.3526 Anti SKG |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-04 21:38:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 89,984 KB |
| 最終ジャッジ日時 | 2026-05-04 21:38:17 |
| 合計ジャッジ時間 | 10,303 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 13 |
ソースコード
T = input()
N = len(T)
for i in range(N-2):
if T[i:i+3] == "SKG":
print("No")
exit()
T = list(T)
for i in range(N):
if T[i] != ".":
continue
for w in ["S","K","G"]:
T[i] = w
flag = True
for s in range(-2,1):
if s < 0 or s+3 > N:
continue
if T[s:s+3] == ["S","K","G"]:
flag = False
if flag:
break
print("Yes")
print("".join(T))