結果

問題 No.3036 Nauclhlt型文字列
ユーザー さわーくりーむおにおん🧅
提出日時 2025-02-28 22:06:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 292 ms / 2,000 ms
コード長 700 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 87,576 KB
最終ジャッジ日時 2025-02-28 22:06:55
合計ジャッジ時間 2,449 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, Counter, deque
from itertools import groupby, accumulate, combinations, permutations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from operator import itemgetter
import math

from string import ascii_lowercase
LMI=lambda:list(map(int, input().split()))
LMS=lambda:list(map(str, input().split()))
MI=lambda:map(int, input().split())
MS=lambda:map(str, input().split())
II=lambda:int(input())
IS=lambda:input().split()
LI=lambda:list(input())

N=II()
S=input()

if N%2==1:
    print('No')
    exit()
else:
    print('Yes')
    a=''
    b=''
    for i in range(len(S)//2):
        a+=S[2*i]
        b+=S[2*i+1]
    print(a, b)
0