
思路
Annmike
ACM
展开
-
Okabe and Banana Trees 思路题
Okabe needs bananas for one of his experiments for some strange reason. So he decides to go to the forest and cut banana trees.Consider the point (x, y) in the 2D plane such that x and y are integer...原创 2017-12-08 16:18:56 · 387 阅读 · 0 评论 -
赋值问题
在很多程序设计语言中,忘记给变量赋初值的错误常令人头疼。请编程求出含N(0≤N≤100)行的程序段运行以后有哪些变量中有确定的值。 在下面的问题中,最开始仅有变量a中有确定的值。变量为单个小写字母,每行恰好有三个字符,中间一个是赋值运算符'='。 Input输入有多组数据,每组数据的第一行有一个整数N,表示程序段的行数。以下N行,每行3个字符,为一条语句。最后一组数据N=-1表示输入结...原创 2017-12-08 20:31:36 · 935 阅读 · 0 评论 -
Registration system
A new e-mail service "Berlandesk" is going to be opened in Berland in the near future. The site administration wants to launch their project as soon as possible, that's why they ask you to help. You'r...原创 2018-01-17 20:45:39 · 800 阅读 · 0 评论 -
Boxes
题目描述There are N boxes arranged in a circle. The i-th box contains Ai stones.Determine whether it is possible to remove all the stones from the boxes by repeatedly performing the following operation:Se...原创 2018-04-23 16:59:21 · 490 阅读 · 0 评论