1 solutions
-
0
C++ :
#include<iostream> using namespace std; char from[100],to[100]; void solve(char *p,int n,char *q) { p+=n-1; while (*q++=*p++) ; } int main() { int n,m; cin>>n; for (int i=0; i<n; i++) cin>>from[i]; cin>>m; solve(from,m,to); cout<<to<<endl; return 0; }
- 1
Information
- ID
- 16743
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By