模拟题。

#include<map>
#include<set>
#include<ctime>
#include<cmath>
#include<queue>
#include<string>
#include<vector>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<functional>
using namespace std;
#define ms(x,y) memset(x,y,sizeof(x))
#define rep(i,j,k) for(int i=j;i<=k;i++)
#define per(i,j,k) for(int i=j;i>=k;i--)
#define loop(i,j,k) for (int i=j;i!=-1;i=k[i])
#define inone(x) scanf("%d",&x)
#define intwo(x,y) scanf("%d%d",&x,&y)
#define inthr(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define infou(x,y,z,p) scanf("%d%d%d%d",&x,&y,&z,&p)
#define lson x<<1,l,mid
#define rson x<<1|1,mid+1,r
#define mp(i,j) make_pair(i,j)
#define ft first
#define sd second
typedef long long LL;
typedef pair<int, int> pii;
const int low(int x) { return x&-x; }
const int INF = 0x7FFFFFFF;
const int mod = 1e9 + ;
const int N = 4e5 + ;
const double eps = 1e-; int n;
char t[];
int p1,p2,ans;
int f; void G()
{
for(int i=;t[i];i++)
{
if(t[i]!=' ')
{
if(f==)
{
if(1LL*(p1+)*ans<=) ans=(p1+)*ans;
else ans=;
}
p1=;
} if(t[i]=='{') p2=;
else if(t[i]=='}')
{
if(1LL*(p2+)*ans<=) ans=(p2+)*ans;
else ans=;
}
else if(t[i]=='|') p2++;
else if(t[i]==' ') p1++;
else if(t[i]=='$')
{
f=f^;
}
}
} int main()
{
while(~scanf("%d",&n))
{
getchar(); ans=; f=p1=p2=;
while(n--)
{
gets(t); G();
} if(ans>) printf("doge\n");
else printf("%d\n",ans); }
return ;
}

最新文章

  1. VMware Workstation and Hyper-V are not compatible. 解决方案
  2. redux middleware 的理解
  3. Memcached vs Redis
  4. paper 127:机器学习中的范数规则化之(二)核范数与规则项参数选择
  5. POJ 3714 Raid
  6. shell中&amp;&amp;和||的使用方法
  7. 移动手机专题rem布局实践+主要代码
  8. DoTween小结
  9. Template_5模板拾遗1
  10. i++与++i的区别
  11. Web---JS-返回上一页并刷新代码整理
  12. Delphi中用Webbrowser加载百度地图滚轮失效(ApplicationEvents里使用IsChild提前判断是哪个控件的消息)
  13. Spark SQL Catalyst源代码分析Optimizer
  14. jdbc.properties+web.xml
  15. vmware 挂起后不能恢复
  16. win10 64位 安装scrapy
  17. Eclipse创建SpringMVC,Spring, Hibernate项目
  18. vi/vim 光标移动命令(转载)
  19. iOS获取本地ip和端口
  20. Python数据类型-01.数字和布尔值

热门文章

  1. 51Nod 1087 1 10 100 1000 | 数学
  2. 动态规划:LIS
  3. MyBatis 系列五 之 延迟加载、一级缓存、二级缓存设置
  4. (转)梯度方向直方图HOG(Histograms of Oriented Gradients )
  5. mybatis 插入语句name no find
  6. Fiddler抓取HTTPS协议
  7. 【转】使用SQL语句创建和删除约束
  8. 算法题之找出数组里第K大的数
  9. Centos7 IP地址配置方法
  10. windows下使用github