2015年NEUACM一月月赛 J: Eliminate zero AC
摘要:问题 J: Eliminate zero AC时间限制:1 Sec内存限制:128 MB题目描述Lastnight,KidsubmittedaproblemformanytimesbuthegotmanyWA,soheissad.Outofsympathy,hiscoachgavehimaverys...
阅读全文
CDZSC_2015寒假新人(4)——搜索 - D
摘要:DescriptionYou're in space.You want to get home.There are asteroids.You don't want to hit them.InputInput to this problem will consist of a (non-empty...
阅读全文
CDZSC_2015寒假新人(4)——搜索 - P
摘要:DescriptionParentheses BalanceYou are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empt...
阅读全文
CDZSC_2015寒假新人(4)——搜索 - N
摘要:DescriptionStandard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features i...
阅读全文
FZU 1920
摘要:DescriptionMine sweeper is a very popular small game in Windows operating system. The object of the game is to find mines, and mark them out. You mark...
阅读全文
CDZSC_2015寒假新人(2)——数学 - G
摘要:DescriptionHOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。Input第一行...
阅读全文
CDZSC_2015寒假新人(2)——数学 - H
摘要:DescriptionSky从小喜欢奇特的东西,而且天生对数字特别敏感,一次偶然的机会,他发现了一个有趣的四位数2992,这个数,它的十进制数表示,其四位数字之和为2+9+9+2=22,它的十六进制数BB0,其四位数字之和也为22,同时它的十二进制数表示1894,其四位数字之和也为22,啊哈,真是巧...
阅读全文
CDZSC_2015寒假新人(2)——数学 - O
摘要:Description当寒月还在读大一的时候,他在一本武林秘籍中(据后来考证,估计是计算机基础,狂汗-ing),发现了神奇的二进制数。如果一个正整数m表示成二进制,它的位数为n(不包含前导0),寒月称它为一个n二进制数。所有的n二进制数中,1的总个数被称为n对应的月之数。例如,3二进制数总共有4个,...
阅读全文
CDZSC_2015寒假新人(2)——数学 - B
摘要:Description求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方”Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1 2 3 int main() 4 { 5 int a, b, sum; 6 while (scanf("%d%d"...
阅读全文
CDZSC_2015寒假新人(2)——数学 - A
摘要:DescriptionThe least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the...
阅读全文
CDZSC_2015寒假新人(2)- 数学 - C
摘要:DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line of the...
阅读全文
ZSC - 1306: 沼跃鱼早已看穿了一切 - 题解
摘要:Time Limit:1 SecMemory Limit:128 MB题目链接 :http://acm.two.moe:808/JudgeOnline/problem.php?id=1306Description沼跃鱼打开密码门后发现门后是一个像迷宫一样的房间,墙上的指示牌写着:房间内某处有一宝箱,...
阅读全文