设为首页 加入收藏

TOP

HDU 4891 The Great Pan(模拟)(二)
2015-07-20 18:02:14 来源: 作者: 【 】 浏览:9
Tags:HDU 4891 The Great Pan 模拟
n) { ans=maxn+10; flat=false; continue; } if(c=='{') { flat1=true; cnt=1; } else if(c=='}') { ans*=cnt; flat1=false; } else if(flat1&&c=='|') { cnt++; } else if(!flat2&&c=='$') { flat2=true; temp=1; cnt=1; } else if(flat2&&c=='$') { temp*=cnt; ans*=temp; flat2=false; } else if(flat2&&c==' ') { cnt++; } else if(flat2&&c!=' ') { temp*=cnt; cnt=1; } } } } if(ans>maxn)puts("doge"); else printf("%I64d\n",ans); } return 0; }

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇HDU 4893 Wow! Such Sequence!(线.. 下一篇HDU 4891 The Great Pan

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: