Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62625 段文昊 字符串拼接 C++ Accepted 1 MS 280 KB 218 2023-12-24 17:17:40

Tests(10/10):


Code:

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