| 记录编号 | 450311 | 评测结果 | WWWWWTEEEEEEEEE | ||
|---|---|---|---|---|---|
| 题目名称 | 2750.[Codeforces 827A] 字串重组 | 最终得分 | 0 | ||
| 用户昵称 | 是否通过 | 未通过 | |||
| 代码语言 | C++ | 运行时间 | 1.655 s | ||
| 提交时间 | 2017-09-15 22:00:47 | 内存使用 | 0.31 MiB | ||
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char s[100];
int n;
char s1[100];
int main()
{
int i;
freopen("R.in","r",stdin);
freopen("R.out","w",stdout);
scanf("%d",&n);
int num;
int t;
for(i=1;i<=n;i++)
{
cin>>s1;
scanf("%d",&num);
for(int j=1;j<=num;j++)
{
scanf("%d",&t);
for(int k=0;k<strlen(s1);k++)
{
s[t++]=s1[k];
}
}
memset(s1,0,sizeof(s1));
}
for(i=0;i<strlen(s);i++)
printf("%c",s[i]);
return 0;
}