[水]ZOJ1099
来源:互联网 发布:天谕业刹捏脸数据 编辑:程序博客网 时间:2024/05/06 16:47
模拟1A,然后注意一下连着hr或者brhr这种情况就好
#include <bits/stdc++.h>using namespace std;char tem[100];int len;void Gao(){ bool pre=false; len=-1; while (scanf("%s",tem)!=EOF) { int l=strlen(tem); if (tem[0]=='<') { if (tem[1]=='b') { cout<<endl; len=-1; pre=true; continue; } else { if (!pre) cout<<endl; for (int i=0;i<80;i++) printf("-"); cout<<endl; len=-1; pre=true; continue; } } if (len+l+1>80) { cout<<endl; len=l; printf("%s",tem); pre=false; continue; } else { if (len!=-1) cout<<" "; len+=l+1; printf("%s",tem); pre=false; continue; } }}int main(){ // freopen("a.in","r",stdin); //freopen("a.out","w",stdout); Gao(); return 0;}
0 0
- [水]ZOJ1099
- ZOJ1099字符串水题
- zoj1099 HTML
- ZOJ1099-HTML
- zoj1099 HTML
- 杭电1088&zoj1099 Write a simple HTML Browser
- 水
- 水
- 水
- 水
- 水
- 水
- 水
- 水
- 水
- 水
- 水,,
- 水~
- js中将long日期类型的数据转换为标准的日期类型
- java 程序员应该掌握哪些技术?
- hihocoder第五周---#define问题
- 说说观止软件产品管理
- JAX-RS入门 一 :基础
- [水]ZOJ1099
- uva 10051 - Tower of Cubes
- hdu2610
- UGC简单学习与总结
- Android中处理Json的网络获取实例
- 广发聚瑞与汇添富价值阶段涨幅比较(截止2014-07-24)
- 使用storyboard实现页面跳转
- 说说Java中的TimeZone夏令时问题
- do {...} while (0) 在宏定义中的作用