上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页
摘要: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文
posted @ 2018-03-11 10:02 yuxiaoba 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 <= i <= j <= K. The Maximu 阅读全文
posted @ 2018-03-11 09:35 yuxiaoba 阅读(146) 评论(0) 推荐(0) 编辑
摘要: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文
posted @ 2018-03-11 09:04 yuxiaoba 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2018-03-11 08:36 yuxiaoba 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 计算机科学概论 Abstract 抽象的 Algorithm 算法 Analog signal 模拟信号 Applets 小应用程序 Application programming interfaces 应用编程接口 Architecture 体系结构 Argument 实参 Arithmetic 阅读全文
posted @ 2018-03-11 08:35 yuxiaoba 阅读(3176) 评论(0) 推荐(2) 编辑
摘要: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Each input file contain 阅读全文
posted @ 2018-03-10 11:38 yuxiaoba 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连接两个城市的快速道路长度都标在地图上。当其他城市有紧急求助电话给你的时候,你的任务是带领你的救援队尽快赶往事发地,同时,一路上召集尽可能多的救援队。 输入格 阅读全文
posted @ 2018-03-10 11:01 yuxiaoba 阅读(304) 评论(0) 推荐(0) 编辑
摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2018-03-10 10:42 yuxiaoba 阅读(126) 评论(0) 推荐(0) 编辑
摘要: “单身狗”是中文对于单身人士的一种爱称。本题请你从上万人的大型派对中找出落单的客人,以便给予特殊关爱。 输入格式: 输入第一行给出一个正整数N(<=50000),是已知夫妻/伴侣的对数;随后N行,每行给出一对夫妻/伴侣——为方便起见,每人对应一个ID号,为5位数字(从00000到99999),ID间 阅读全文
posted @ 2018-03-09 11:47 yuxiaoba 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 如果两个整数各位数字的和是一样的,则被称为是“朋友数”,而那个公共的和就是它们的“朋友证号”。例如123和51就是朋友数,因为1+2+3 = 5+1 = 6,而6就是它们的朋友证号。给定一些整数,要求你统计一下它们中有多少个不同的朋友证号。注意:我们默认一个整数自己是自己的朋友。 输入格式: 输入第 阅读全文
posted @ 2018-03-09 11:05 yuxiaoba 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页