結果
| 問題 | No.3036 Nauclhlt型文字列 |
| コンテスト | |
| ユーザー |
ruase_
|
| 提出日時 | 2025-08-15 10:51:21 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| + 690µs | |
| コード長 | 459 bytes |
| 記録 | |
| コンパイル時間 | 1,043 ms |
| コンパイル使用メモリ | 166,080 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-14 01:19:26 |
| 合計ジャッジ時間 | 2,345 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
# include <iostream>
# include <iomanip>
# include <algorithm>
using namespace std;
int main()
{
int n;
string s;
cin >> n >> s;
string ans1 = "", ans2 = "";
if (n%2 == 0) {
cout << "Yes" << endl;
for (int i = 0; i < s.length()/2 ; i++) {
ans1 = ans1 + s[i*2];
ans2 = ans2 + s[i*2 + 1];
}
cout << ans1 << " " << ans2 << endl;
}else {
cout << "No" << endl;
}
}
ruase_