| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 4324 | 李言 | 词组缩写 | C++ | Compile Error | 0 | 0 MS | 0 KB | 309 | 2020-01-04 09:59:20 |
#include<iostream> using namespace std; int main(){ int n; char c[1001]; scanf("%d%*c",&n); for(int i=1;i<=n;i++){ gets(c); int j=0; int len=0; while(c[j]!='\0'){ if(c[j]!=' '&&len==0){ if(c[j]>='a') printf("%c",c[j]-32); else printf("%c",c[j]); len++; } if(c[j]==' ') len= 0; j++; } cout<<endl; } return 0; }