mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-08 02:13:51 +08:00
Update: Rename folder name to XSMOJ
This commit is contained in:
17
XSMOJ/#248. 字符串小手术.cpp
Normal file
17
XSMOJ/#248. 字符串小手术.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <iomanip>
|
||||
using namespace std;
|
||||
int main(){
|
||||
char a[10000];
|
||||
char b;
|
||||
cin >>a>>b;
|
||||
cout <<a[0];
|
||||
for(int i=1;i<strlen(a);i++){
|
||||
cout <<b<<a[i];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user