标签:style blog http color java os io strong
9 I‘ll shoot the magic arrow several times on the ground, and of course the arrow will leave some holes on the ground. When you connect three holes with three line segments, you may get a triangle. {|It is hole! Common sense!| No Response, Read Problem Statement|don‘t you know what a triangle is?} 1 Case $1: = >$ 5 $/*This is my code printed in proportional font, isn‘t it cool?*/ printf("Definitely it is cooooooool %d\n",4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4 * 4);$ 2 $Two space$ and {blue| red} color!
4 4 doge 6
1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 #include <climits> 7 #include <vector> 8 #include <queue> 9 #include <cstdlib> 10 #include <string> 11 #include <set> 12 #include <stack> 13 #define LL long long 14 #define INF 0x3f3f3f3f 15 using namespace std; 16 const int maxn = 1e5; 17 LL ans; 18 char str[1000100]; 19 int n,len; 20 int main(){ 21 int i,a,b,cnt,k,j; 22 while(~scanf("%d",&n)){ 23 getchar(); 24 len = 0; 25 ans = 1; 26 for(i = 0; i < n; i++){ 27 gets(str+len); 28 len = strlen(str); 29 } 30 a = b = 0; 31 for(i = 0; i < len; i++){ 32 if(a == 0 && str[i] == ‘$‘){ 33 a = 1; 34 }else if(str[i] == ‘{‘){ 35 b = 1; 36 j = 0; 37 }else if(a == 1 && str[i] == ‘$‘){ 38 a = 0; 39 }else if(str[i] == ‘}‘){ 40 b = 0; 41 ans *= j+1; 42 j = 0; 43 } 44 if(a && str[i] == ‘ ‘){ 45 k = 0; 46 while(str[i] == ‘ ‘){k++;i++;} 47 i--; 48 ans *= (k+1); 49 } 50 if(b && str[i] == ‘|‘){j++;} 51 if(ans > maxn) break; 52 } 53 if(ans > maxn) puts("doge"); 54 else printf("%I64d\n",ans); 55 } 56 return 0; 57 }
BNUOJ 35759 The Great Pan,布布扣,bubuko.com
标签:style blog http color java os io strong
原文地址:http://www.cnblogs.com/crackpotisback/p/3906783.html