摘要: A. Nearest Interesting Number 题目链接:http://codeforces.com/contest/1183/problem/A 题目: Polycarp knows that if the sum of the digits of a number is divisi 阅读全文
posted @ 2019-07-07 23:37 branna 阅读(227) 评论(0) 推荐(0) 编辑
摘要: POJ - 3984 迷宫问题 题目链接:https://vjudge.net/problem/POJ-3984 题目: 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 阅读全文
posted @ 2019-07-07 22:20 branna 阅读(117) 评论(0) 推荐(0) 编辑
摘要: C - Catch That Cow 题目链接:https://vjudge.net/contest/65959#problem/C 题目: Farmer John has been informed of the location of a fugitive cow and wants to ca 阅读全文
posted @ 2019-07-06 16:35 branna 阅读(294) 评论(0) 推荐(0) 编辑
摘要: H 数字游戏 题目链接:https://ac.nowcoder.com/acm/contest/984/H 题目描述 奶牛们又在玩一种无聊的数字游戏。输得很郁闷的贝茜想请你写个程序来帮她在开局时预测结果。在游戏的开始,每头牛都会得到一个数N(1<=N<=1,000,000)。此时奶牛们的分数均为0。 阅读全文
posted @ 2019-07-06 16:09 branna 阅读(315) 评论(0) 推荐(0) 编辑
摘要: B. Number Circle 题目链接:http://codeforces.com/contest/1189/problem/B 题目: You are given n numbers a1,a2,…,an. Is it possible to arrange them in a circle  阅读全文
posted @ 2019-07-06 12:02 branna 阅读(428) 评论(0) 推荐(0) 编辑