OJ-Problems-Source/HDOJ/2564_autoAC.cpp
2016-08-22 00:30:27 +08:00

23 lines
410 B
C++

#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main(void)
{
int n;
char src2[15][15],src[150],*p;
scanf("%d",&n);
getchar();
while(n--)
{
gets(src);
p=strtok(src," ");
while(p!=NULL)
{
printf("%c",toupper(p[0]));
p=strtok(NULL," ");
}
printf("\n");
}
}