随笔分类 -  思维

摘要:链接:https://www.nowcoder.com/acm/contest/142/G来源:牛客网 题目描述 The mode of an integer sequence is the value that appears most often. Chiaki has n integers a 阅读全文
posted @ 2018-07-28 21:41 岩扉 阅读(341) 评论(0) 推荐(0)
摘要:链接:https://www.nowcoder.com/acm/contest/140/I来源:牛客网 题目描述 White Cloud has a square of n*n from (1,1) to (n,n). White Rabbit wants to put in several car 阅读全文
posted @ 2018-07-21 22:42 岩扉 阅读(253) 评论(0) 推荐(0)
摘要:Seating ArrangementMr. Teacher老师班上一共有n个同学,编号为1到n。 在上课的时候Mr. Teacher要求同学们从左至右按1, 2, …, n的顺序坐成一排,这样每个同学的位置是固定的,谁没来上课就一目了然了。但是时间长了之后,Mr. ... 阅读全文
posted @ 2018-04-26 21:54 岩扉 阅读(248) 评论(0) 推荐(0)
摘要:Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both rows and columns of the grid are numbered from 1 to 1000. Rows are nu... 阅读全文
posted @ 2017-07-21 16:35 岩扉 阅读(327) 评论(0) 推荐(0)