摘要:
The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e 阅读全文
posted @ 2018-01-16 22:13
ZHUQW
阅读(110)
评论(0)
推荐(0)
摘要:
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins 阅读全文
posted @ 2018-01-16 21:01
ZHUQW
阅读(113)
评论(0)
推荐(0)
摘要:
大家应该都会玩“锤子剪刀布”的游戏:两人同时给出手势,胜负规则如图所示: 现给出两人的交锋记录,请统计双方的胜、平、负次数,并且给出双方分别出什么手势的胜算最大。 输入格式: 输入第1行给出正整数N(<=105),即双方交锋的次数。随后N行,每行给出一次交锋的信息,即甲、乙双方同时给出的的手势。C代 阅读全文
posted @ 2018-01-16 17:17
ZHUQW
阅读(133)
评论(0)
推荐(0)
摘要:
正整数A的“DA(为1位整数)部分”定义为由A中所有DA组成的新整数PA。例如:给定A = 3862767,DA = 6,则A的“6部分”PA是66,因为A中有2个6。 现给定A、DA、B、DB,请编写程序计算PA + PB。 输入格式: 输入在一行中依次给出A、DA、B、DB,中间以空格分隔,其中 阅读全文
posted @ 2018-01-16 16:19
ZHUQW
阅读(306)
评论(0)
推荐(0)

浙公网安备 33010602011771号