Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62517 冯纪尧 字符串拼接 C++ Wrong Answer 1 MS 272 KB 280 2023-12-24 11:21:22

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a,b,m; cin>>a>>b; int c; cin>>c; int n=a.size()+b.size(); char z; if(c>a.size()){ int y=n-c-1; z=b[y]; }else{ z=a[c]; } cout<<z; return 0; }


Run Info:

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