摘要:
1 import java.math.BigInteger; 2 import java.util.Scanner; 3 4 public class Main { 5 6 public static void main(String[] args) { 7 int m; 8 String s; 9 阅读全文
摘要:
题目链接 Problem Description Given a positive integer N, you should output the most right digit of N^N. Input The input contains several test cases. The f 阅读全文
摘要:
题目链接 Description An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of 阅读全文
摘要:
题目链接 Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, . 阅读全文
摘要:
题目链接 Problem Description 下面是512汶川大地震部分受灾学校伤亡情况(惨痛!!)1、 四川省都江堰市 聚源中学伤亡情况:遇难学生人数(含失踪)320详细说明: 一栋教学楼被震垮,该楼18个班420多名学生被埋,截至目前仅有不到100名获救。2、 四川省绵阳市 北川县北川中学伤 阅读全文
摘要:
题目链接 Problem Description淄博某旅行社每天都要接待来自全国各地的游客,他们从各个城市来到张店区,游玩后又去淄博的其他旅游景点。从各个城市来张店的游客只是在网上报名,然后旅行社根据统计的人数,用大巴把他们从不同城市拉到张店。在张店玩一天后,这些游客又要到淄博其他景点玩,所以重新统 阅读全文
摘要:
前1个数 dp(1)=1 子序列为1; 前2个数 在7前面有1小于7 dp(2) = d(1) + 1 = 2 子序列为1 7 前3个数 在3前面1比3更小dp(3) = dp(1) + 1 = 2,子序列1 3 前4个数 在5前面有1和3比5更小 dp(4) = dp(3) + 1 = 3 子序列 阅读全文
摘要:
题目链接 Problem Descriptionsdut 大学生艺术中心每天都有n个活动申请举办,但是为了举办更多的活动,必须要放弃一些活动,求出每天最多能举办多少活动。 Input输入包括多组输入,每组输入第一行为申请的活动数n(n<100),从第2行到n+1行,每行两个数,是每个活动的开始时间b 阅读全文