-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCDS003.cpp
More file actions
23 lines (23 loc) · 760 Bytes
/
CDS003.cpp
File metadata and controls
23 lines (23 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<stdio.h>
#include<cstring>
char a[10000007];
int main(){
int t;
scanf("%d",&t);
for(;t>0;t--){
scanf("%s",&a);
int temp=0;
for(int i=0;i<strlen(a);i++)
{
temp=0;
while(!((temp>=65 && temp<=65+26)||(temp>=97 && temp<=97+26)||temp==32)){
temp=temp*10+(a[i]-'0');
i++;
//printf("temp:%d\n",temp);
}
//printf("%d\n",temp);
printf("%c",temp);
}
}
return 0;
}