結果
| 問題 |
No.3036 Nauclhlt型文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 22:20:26 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 3,207 ms |
| コンパイル使用メモリ | 274,712 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-02-28 22:20:47 |
| 合計ジャッジ時間 | 3,998 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int N;
string S;
cin >> N >> S;
if(N & 1) {cout << "No\n";}
else {
cout << "Yes\n";
string A = "", B = "";
for(int i = 0; i < N; i += 2) A += S[i];
for(int i = 1; i < N; i += 2) B += S[i];
cout << A << " " << B << "\n";
}
}