結果
| 問題 |
No.3036 Nauclhlt型文字列
|
| ユーザー |
|
| 提出日時 | 2025-02-28 21:37:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 214 bytes |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 82,444 KB |
| 実行使用メモリ | 70,364 KB |
| 最終ジャッジ日時 | 2025-02-28 21:37:41 |
| 合計ジャッジ時間 | 1,634 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
N = int(input())
S = input()
if N % 2:
print("No")
exit()
X = []
Y = []
for i in range(N):
if i % 2:
Y.append(S[i])
else:
X.append(S[i])
print("Yes")
print("".join(X), "".join(Y))