結果
問題 |
No.3036 Nauclhlt型文字列
|
ユーザー |
|
提出日時 | 2025-02-28 22:03:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 76 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 1,354 ms |
コンパイル使用メモリ | 163,284 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-28 22:03:51 |
合計ジャッジ時間 | 2,213 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
//yukicoder contest 458 B #include <bits/stdc++.h> using namespace std; int main() { int N; string S; cin >> N >> S; if(N % 2) {cout << "No" << endl; return 0;} string P, Q; for(int i = 0; i < N; i ++) { if(i % 2) Q = Q + S[i]; else P = P + S[i]; } cout << "Yes" << endl; cout << P << " " << Q << endl; return 0; }