結果

問題 No.3036 Nauclhlt型文字列
ユーザー 👑 rin204
提出日時 2025-02-28 21:22:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,656 KB
実行使用メモリ 72,804 KB
最終ジャッジ日時 2025-02-28 21:22:50
合計ジャッジ時間 1,561 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
S = input()
if n % 2 == 1:
    print("No")
else:
    print("Yes")
    A = []
    B = []
    for i, s in enumerate(S):
        if i % 2 == 0:
            A.append(s)
        else:
            B.append(s)

    print("".join(A), "".join(B))
0