mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
23 lines
410 B
C++
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");
|
||
|
}
|
||
|
}
|