結果

問題 No.3036 Nauclhlt型文字列
ユーザー YU Hirose
提出日時 2025-03-29 14:09:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 372 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 82,760 KB
実行使用メモリ 85,784 KB
最終ジャッジ日時 2025-03-29 14:10:01
合計ジャッジ時間 3,019 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
if n%2 == 1:
    print("No")
else:
    p, q = "", ""
    for i in range(n):
        if i%2 == 0:
            p += s[i]
        else:
            q += s[i]
    print("Yes")
    print(p, q)
0