Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111355 | 吴梓玄 | 字符串拼接 | C++ | Accepted | 1 MS | 276 KB | 238 | 2025-03-01 17:24:49 |
#include <bits/stdc++.h> using namespace std; int main() { string s,t; cin>>s; cin>>t; int p; cin>>p; char w[p+100]; int n=s.size(); if(n>=p){ cout<<s[p-1]; } else{ cout<<t[p-n-1]; } return 0; }
------Input------
executing users 13
------Answer-----
r
------Your output-----