結果

問題 No.3036 Nauclhlt型文字列
ユーザー 高橋ゆに
提出日時 2025-02-28 21:53:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 54,368 KB
最終ジャッジ日時 2025-02-28 21:53:03
合計ジャッジ時間 1,894 ms
ジャッジサーバーID
(参考情報)
judge2 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
	N = int(input())
	S = input()
	
	ans = 'No'
	s, t = '', ''
	if N % 2 == 0:
		ans = 'Yes'
		for i in range(N):
			if i % 2 == 0:
				s += S[i]
			else:
				t += S[i]
	
	print(ans)
	if ans == 'Yes':
		print(s + ' ' + t)
		
0