結果
| 問題 |
No.3036 Nauclhlt型文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:24:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 212 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 82,776 KB |
| 実行使用メモリ | 71,356 KB |
| 最終ジャッジ日時 | 2025-02-28 21:25:06 |
| 合計ジャッジ時間 | 1,445 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
N=int(input())
S=input()
if N%2==1:exit(print("No"))
ans1=[]
ans2=[]
for i in range(N):
if i%2==0:
ans1.append(S[i])
else:
ans2.append(S[i])
print("Yes")
print("".join(ans1),"".join(ans2))