标签:des style blog http color io os ar java
3 http://dict.bing.com.cn/#%E5%B0%8F%E6%95%B0%E7%82%B9 http://www.mariowiki.com/Mushroom https://mail.google.com/mail/?shva=1#inbox
Case #1: dict.bing.com.cn Case #2: www.mariowiki.com Case #3: mail.google.com训练一下快速找到水题并切掉的能力。。毕竟现场赛只能做水题了。。7分钟1A#include <iostream> #include <algorithm> #include <cstdio> #include <cstring> #include <string> #include <vector> #include <cmath> #include <map> using namespace std; #define LL long long char s[10010],ans[10010]; int main() { //ios::sync_with_stdio(false); int t,p,cas=1; scanf("%d",&t); getchar(); while(t--) { gets(s); int len=strlen(s); for(int i=0;i<len;i++) { if(s[i]=='/'&&s[i-1]=='/') { int j=i+1;p=0; while(s[j]!='/'&&s[j]!=':') ans[p++]=s[j++]; break; } } printf("Case #%d: ",cas++); for(int i=0;i<p;i++) printf("%c",ans[i]); puts(""); } return 0; }
标签:des style blog http color io os ar java
原文地址:http://blog.csdn.net/qq_16255321/article/details/39802267