結果
問題 | No.3036 Nauclhlt型文字列 |
ユーザー |
|
提出日時 | 2025-02-28 21:25:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 1,729 ms |
コンパイル使用メモリ | 193,040 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-28 21:25:45 |
合計ジャッジ時間 | 2,527 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}