結果
問題 |
No.3036 Nauclhlt型文字列
|
ユーザー |
![]() |
提出日時 | 2025-03-02 21:27:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 1,996 ms |
コンパイル使用メモリ | 192,632 KB |
実行使用メモリ | 8,608 KB |
最終ジャッジ日時 | 2025-03-02 21:27:45 |
合計ジャッジ時間 | 2,980 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int INF=0x3f3f3f3f; const ll LLINF=0x3f3f3f3f3f3f3f3fLL; const int MAX=1e5+10; int main() { int n,i; string s,a,b; cin>>n; cin>>s; if(n&1) return 0*puts("No"); a=""; b=""; for(i=0;i<n;i++) { if(i&1) b+=s[i]; else a+=s[i]; } puts("Yes"); cout<<a<<" "<<b<<"\n"; return 0; }