Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89055 | 杨珂茹 | 墓碑上的字符 | C++ | Accepted | 1 MS | 276 KB | 350 | 2024-08-21 19:55:19 |
#include<bits/stdc++.h> using namespace std; int main() { int n, j, i, c; char a[50], b[50]; cin >> n; for (i = 0; i < n; i++) { cin >> a >> b; c = strlen(a) / 2; for (j = 0; j < c; j++) { cout << a[j]; } cout << b; for (j = c; j < strlen(a); j++) { cout << a[j]; } cout << endl; } return 0; }