摘要: Pots 小明给你两个容器,分别能装下A升水和B升水,并且可以进行以下操作 FILL(i) 将第i个容器从水龙头里装满(1 ≤ i ≤ 2); DROP(i) 将第i个容器抽干 POUR(i,j) 将第i个容器里的水倒入第j个容器(这次操作结束后产生两种结果,一是第j个容器倒满并且第i个容器依旧有剩 阅读全文
posted @ 2020-08-07 09:57 lihaji 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Who Gets the Most Candies? N children are sitting in a circle to play a game. The children are numbered from 1 to N in clockwise order. Each of them h 阅读全文
posted @ 2020-08-03 10:39 lihaji 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 题目链接:Happy Necklace HDU - 6030 华师男想为他的女朋友买一条项链。项链是由多个红色和蓝色珠子组成的单串。身为华师男他体贴地想要更加打动他的女朋友,他知道,只要这段珠子中任意取出长度为质数的一段,都满足红珠数不少于蓝珠数,她就会喜欢这条项链。现在,他想买一串纯正的有n个珠子 阅读全文
posted @ 2020-07-29 19:30 lihaji 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Bi-shoe and Phi-shoe Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for his success. He needs 阅读全文
posted @ 2020-07-29 16:06 lihaji 阅读(109) 评论(0) 推荐(0) 编辑
摘要: The Embarrassed Cryptographer The young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands 阅读全文
posted @ 2020-07-29 15:48 lihaji 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Big Number Problem Description As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a 阅读全文
posted @ 2020-07-29 14:15 lihaji 阅读(194) 评论(0) 推荐(0) 编辑