結果

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

ソースコード

diff #

n = int(input())
S = input()

if len(S) % 2 == 0:
    a = []
    b = []

    for i,c in enumerate(S):
        if i % 2 == 0:
            a.append(c)
        else:
            b.append(c)

    print ("Yes")
    print ("".join(a),"".join(b))

else:
    print ("No")
0