mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
1d53c6ce3d
4000-4099
21 lines
372 B
C++
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;
|
|
}
|