提交时间:2022-07-13 11:51:37

运行 ID: 51538

#include<iostream> #include<sstream> #include<string> #include<stack> #include<queue> #include<list> #include<algorithm> #include<set> #include<vector> #include<map> #include<unordered_map> #include<deque> #include<ctime> #include<cstdio> #include<cmath> #include<cstring> #include<cstdlib> #include<cctype> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<ctype.h> #include<time.h> using namespace std; void read(int &a) { a=0; int d=1; char c; while (c=getchar(),c<'0'||c>'9') if (c=='-') d=-1; a=a*10+c-48; while (c=getchar(),c>='0'&&c<='9') a=a*10+c-48; a*=d; } void write(int x) { if (x<0) { x=-x; putchar(45); } if (x) write(x/10); else return; putchar(x%10+48); } int main() { freopen("seq.in","r",stdin); freopen("seq.out","w",stdout); int n,k,type,ans=0; string str; read(n),read(k),read(type); cin>>str; write(n); if(type==1||type==2) { cout<<str; } return 0; }