1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#include <cstdio> #include <cstring> #include <string> #include <algorithm> #include <cmath> #define INF 0x3fffffff #define JIN 678 #define mst(a,b) memset(a,b,sizeof(a)) using namespace std; typedef long long ll; typedef unsigned long long ull; const int maxn=1e5+5; char str[60]; char ans[2000]; int () { int n; cin>>n; getchar(); scanf("%s",str); int idx=0; int j;int i; int cnt=0; for(i=0,j=0;i<n;j++,i+=j) ans[cnt++]=str[i]; for(int idx=0;idx<cnt;idx++) printf("%c",ans[idx]); cout<<'n'; return 0; }
|
近期评论