結果
| 問題 | 
                            No.3036 Nauclhlt型文字列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             yamasaKit_
                         | 
                    
| 提出日時 | 2025-03-01 20:43:32 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 685 bytes | 
| コンパイル時間 | 227 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 14,080 KB | 
| 最終ジャッジ日時 | 2025-03-01 20:43:34 | 
| 合計ジャッジ時間 | 2,285 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 RE * 2 | 
| other | AC * 5 RE * 10 | 
ソースコード
import sys
from collections import *
from functools import cache, partial
from itertools import *
from pprint import pprint
from typing import Any, Final
try:
    from icecream import ic
except ImportError:  # Graceful fallback if IceCream isn't installed.
    ic = lambda *a: None if not a else (a[0] if len(a) == 1 else a)  # noqa
debug = partial(print, file=sys.stderr)
dpprint = partial(pprint, stream=sys.stderr)
sys.setrecursionlimit(10 ** 6)
MOD=998244353
N: Final = int(input())
S = input()
if len(S) % 2 == 1:
    print("No")
    exit()
P = []
Q = []
for i in range(0, len(S), step=2):
    P.append(S[i])
    Q.append(S[i + 1])
print("Yes")
print("".join(P), "".join(Q))
            
            
            
        
            
yamasaKit_