結果
| 問題 |
No.3036 Nauclhlt型文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:23:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 153 ms / 2,000 ms |
| コード長 | 564 bytes |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 82,592 KB |
| 実行使用メモリ | 94,084 KB |
| 最終ジャッジ日時 | 2025-02-28 21:23:12 |
| 合計ジャッジ時間 | 3,600 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
n = int(input())
#alist = list(map(int,input().split()))
#alist = []
s = input().rstrip()
#n,m = map(int,input().split())
#for i in range(n):
# alist.append(list(map(int,input().split())))
if n % 2 == 1:
exit(print('No'))
print('Yes')
a = []
b = []
for i in range(n):
if i % 2 == 0:
a.append(s[i])
else:
b.append(s[i])
print(''.join(a),''.join(b))