- 博客(8)
- 收藏
- 关注
原创 Codeforces Round #232 (Div. 2) B. On Corruption and Numbers
Alexey, a merry Berland entrant, got sick of the gray reality and he zealously wants to go to university. There are a lot of universities nowadays, so Alexey is getting lost in the diversity — he has
2014-02-27 13:41:40 915
原创 Codeforces Round #232 (Div. 2) A. On Segment's Own Points
Our old friend Alexey has finally entered the University of City N — the Berland capital. Alexey expected his father to get him a place to live in but his father said it was high time for Alexey to pr
2014-02-27 13:36:59 864
原创 BUPT OJ89 时间间隔
题目描述 给出两个时间(24小时制),求第一个时间至少要经过多久才能到达第二个时间。给出的时间一定满足的形式,其中x和y分别代表小时和分钟。0≤x24,0≤y60。 输入格式 第一行为数据组数T(1≤T≤50000)。 每组数据包括两行,分别代表两个时间 输出格式 每组数据输出一行,表示最少经过的分钟数。 输入样例 2 7:00 7:0
2014-02-26 10:56:25 1197 3
原创 BUPT OJ88 最值问题
题目描述 给出N个数,求出这N个数中最大值和次大值。注意这里的次大值必须严格小于最大值。输入保证N个数中至少存在两个不同的数。 输入格式 第一行为测试数据的组数T(T≤20)。请注意,任意两组测试数据之间是相互独立的。 每组数据包括两行: 第一行为一个整数N(1≤N≤1000)。 第二行为N个正整数,每个整数均不大于106。 输出格式 每组数据输出两个数
2014-02-26 10:51:56 1220
原创 BUPT OJ87 日期
题目描述 请你计算出第X年Y月Z日是第X年的第几天。其中,1月1日是第一天,1月2日是第二天,以此类推。 计算时请注意闰年的影响。对于非整百年,年数能整除4是闰年,否则不是闰年;对于整百年,年数能整除400是闰年,否则不是闰年。如1900年和1901年不是闰年,而2000年和2004年是闰年。 输入格式 第一行有一个整数T (T≤100),表示一共有T组数据需要你处理。
2014-02-26 10:49:25 1317
原创 好题 BUPT OJ84 SINGLE NUMBER
题目描述 Given an array with N integers where all elements appear three times except for one. Find out the one which appears only once. 输入格式 Several test cases are given, terminated by EOF. Ea
2014-02-26 10:44:36 3050 5
原创 BUPT OJ83 A+B
题目描述 Calculate the sum of two given integers A and B. 输入格式 The input consists of a line with A and B. (−104≤A,B≤104). 输出格式 Output the only answer. 输入样例 2 3 输出样例 5
2014-02-26 10:30:05 1152
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人