OJ-Problems-Source/HDOJ/4018_autoAC.cpp
2016-09-04 14:21:47 +08:00

21 lines
372 B
C++

#include <iostream>
#include <cstring>
#include <string>
#include <cstdio>
using namespace std;
int main()
{
char str[2000];
char buf[2000];
int t;
scanf("%d",&t);
for (int i=1;i<=t;i++)
{
printf("Case #%d: ",i);
cin>>str;
sscanf(str,"%*[^/]//%[^/:]",buf);
cout<<buf<<endl;
}
return 0;
}