結果
| 問題 |
No.3036 Nauclhlt型文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-09 16:55:27 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 599 bytes |
| コンパイル時間 | 3,626 ms |
| コンパイル使用メモリ | 273,636 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-07-09 16:55:32 |
| 合計ジャッジ時間 | 4,763 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 5 WA * 10 |
ソースコード
#include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define endl "\n"
using namespace std;
int main()
{
fastio;
int n; cin >> n;
string s; cin >> s;
if (n % 2 != 0) {
cout << "No" << endl;
return 0;
} else {
string sA, sB;
for (int i = 0; i < s.length(); i++) {
if (i % 2 == 0) {
sB += s[i];
} else {
sA += s[i];
}
}
cout << "Yes" << endl << sA << " " << sB << endl;
}
return 0;
}