![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
zoj
文章平均质量分 51
炸鱼条
大家好,我是蛋奶酥的炸鱼条!
展开
-
Fire Net-zoj-1002
此题大意是在一个最大4*4网格组成的城市里,每个网格可能为“墙壁”(用‘X’表示)和“街道”(用‘.’表示)。现在在街道放置碉堡,每个碉堡可以向上下左右四个方向开火,子弹射程无限远。墙壁可以阻挡子弹。问最多能放置多少个碉堡,使它们彼此不会互相摧毁。例如输入:.X......XX......则应输出最大个数为5。#include <iostream>#include <cstdi...原创 2018-04-30 18:47:37 · 130 阅读 · 0 评论 -
ZOJ1403 Safecracker
SafecrackerTime Limit: 2 Seconds Memory Limit: 65536 KB === Op tech briefing, 2002/11/02 06:42 CST ==="The item is locked in a Klein safe behind a painting in the second-floor library. Klein safe...原创 2018-04-30 14:57:12 · 92 阅读 · 0 评论 -
Crashing Balloon-zoj-10003
描述: 六一儿童节,小朋友们做踩气球游戏,气球的编号是1~100,两位小朋友各踩了一些气球,要求他们报出自己所踩气球的编号的乘积。现在需要你编一个程序来判断他们的胜负,判断的规则是这样的:如果两人都说了真话,数字大的人赢;如果两人都说了假话,数字大的人赢;如果报小数字的人说的是真话而报大数字的人说谎,则报小数字的人赢(注意:只要所报的小数字是有可能的,即认为此人说了真话)。输入:343 49359...原创 2018-04-30 19:26:16 · 120 阅读 · 0 评论 -
Anagrams by Stack-zoj-1004
How can anagrams result from sequences of stack operations? There are two sequences of stack operators which can convert TROT to TORT:[i i i i o o o oi o i i o o i o]where i stands for Push ando s...原创 2018-05-01 15:03:58 · 184 阅读 · 0 评论 -
Jugs-zoj-1005
JugsTime Limit: 2 Seconds Memory Limit: 65536 KB Special Judge In the movie "Die Hard 3", Bruce Willis and Samuel L. Jackson were confronted with the following puzzle. They were given a 3-ga...原创 2018-05-01 17:44:38 · 133 阅读 · 0 评论