上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
  2017年9月26日
摘要: 现有一笔经费可以报销一定额度的发票。允许报销的发票类型包括买图书(A类)、文具(B类)、差旅(C类),要求每张发票的总额不得超过1000元,每张发票上,单项物品的价值不得超过600元。现请你编写程序,在给出的一堆发票中找出可以报销的、不超过给定额度的最大报销额。 In... 阅读全文
posted @ 2017-09-26 21:02 zitian246 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Bob wants to put a new bargaining table in his office. To do so he measured the office room thoroughly and drew its plan: Bob's office... 阅读全文
posted @ 2017-09-26 20:52 zitian246 阅读(116) 评论(0) 推荐(0) 编辑
摘要: You play a computer game. Your character stands on some level of a multilevel ice cave. In order to move on forward, you need to desce... 阅读全文
posted @ 2017-09-26 20:44 zitian246 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Dima liked the present he got from Inna very much. He liked the present he got from Seryozha even more.Dima felt so grateful to Inna a... 阅读全文
posted @ 2017-09-26 20:29 zitian246 阅读(131) 评论(0) 推荐(0) 编辑
  2017年9月17日
摘要: Problem Description这是一个简单的生存游戏,你控制一个机器人从一个棋盘的起始点(1,1)走到棋盘的终点(n,m)。游戏的规则描述如下:1.机器人一开始在棋盘的起始点并有起始点所标有的能量。2.机器人只能向右或者向下走,并且每走一步消耗一单位能量。3.... 阅读全文
posted @ 2017-09-17 08:28 zitian246 阅读(130) 评论(0) 推荐(0) 编辑
摘要: FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled ... 阅读全文
posted @ 2017-09-17 08:09 zitian246 阅读(118) 评论(0) 推荐(0) 编辑
  2017年9月7日
摘要: 描述现在有"abcdefghijkl”12个字符,将其所有的排列中按字典序排列,给出任意一种排列,说出这个排列在所有的排列中是第几小的?输入第一行有一个整数n(0char s[15];int n;int main(){ int f[15]; //... 阅读全文
posted @ 2017-09-07 21:21 zitian246 阅读(108) 评论(0) 推荐(0) 编辑
  2017年8月16日
摘要: You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk.... 阅读全文
posted @ 2017-08-16 15:03 zitian246 阅读(105) 评论(0) 推荐(0) 编辑
  2017年8月14日
摘要: 营业额统计 Tiger最近被公司升任为营业部经理,他上任后接受公司交给的第一项任务便是统计并分析公司成立以来的营业情况。 Tiger拿出了公司的账本,账本上记录了公司成立以来每天的营业额。分析营业情况是一项相当复杂的工作。由于节假日,大减价或者是其他情况的时候,营业额... 阅读全文
posted @ 2017-08-14 10:29 zitian246 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Mr. Kitayuta has just bought an undirected graph consisting of n vertices and medges. The vertices of the graph are numbered from 1 to... 阅读全文
posted @ 2017-08-14 09:34 zitian246 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页