| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150984 | 李鸣 | 墓碑上的字符 | C++ | Accepted | 1 MS | 276 KB | 419 | 2026-04-02 15:58:24 |
#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; // 吃掉换行,防止getline读空 cin.ignore(); while(n--) { string s1, s2; getline(cin, s1); getline(cin, s2); int mid = s1.size() / 2; string ans = s1.substr(0, mid) + s2 + s1.substr(mid); cout << ans << endl; } return 0; }