Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146568 刘梓含 字符串拼接 C++ Wrong Answer 0 MS 280 KB 330 2026-01-29 13:25:48

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main (){ char a[10001],s[10001]; int m; cin >> a >> s >> m; int n = strlen(a); int d = strlen(s); for(int i = 0;i <= n + d;i++) { if(i == m) { if(m > n) { cout << s[i - n]; } else { cout << a[i]; } } } return 0; }


Run Info:

------Input------
executing users 13
------Answer-----
r
------Your output-----
s