水题,找误差范围之内9最多的时间,如果有多个,选择误差最小的一个,如果还有多个,选择字典序最小的一个。同一个时间可以有不同的表示方法,例如60:15也可以表示为59:75。#include#include#include#includeusing namespace std;int main(){ ...
分类:
其他好文 时间:
2015-04-22 18:00:56
阅读次数:
91
Ideal Gas
Time Limit: 500MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Many of you know the universal method of solving simple p...
分类:
其他好文 时间:
2015-04-22 09:36:59
阅读次数:
157
#include#include#include#includeusing namespace std;const int maxn = 100000 + 10;char s[maxn];int main(){ long long int n, m, k; while (~scanf("...
分类:
其他好文 时间:
2015-04-22 09:22:10
阅读次数:
134
Approximation by a Progression
Time Limit: 500MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Your are given a sequence of integer...
分类:
移动开发 时间:
2015-04-21 09:45:54
阅读次数:
196
Hamming Code
Time Limit: 1000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Let us consider four disks intersecting as in the fig...
分类:
其他好文 时间:
2015-04-21 09:45:52
阅读次数:
159
Minefield
Time Limit: 500MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
To fulfill an assignment, a reconnaissance group of n peo...
分类:
其他好文 时间:
2015-04-21 09:45:08
阅读次数:
129
Masterpieces of World Architecture
Time Limit: 1000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
Maria Ivanovna informed all of...
分类:
其他好文 时间:
2015-04-21 09:44:37
阅读次数:
105
Tray 2
Time Limit: 1000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
One of the organizers of the Ural Regional School Programmi...
分类:
其他好文 时间:
2015-04-21 09:44:26
阅读次数:
163
Amusement Park
Time Limit: 1000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit Status#include
using namespace std;
int a[10];
void init()
{
a[0] = 10;
a[1] =...
分类:
其他好文 时间:
2015-04-21 09:44:15
阅读次数:
130
题意:给一个长度为n数组{a[i]}。有m个操作Ti,Si,Li表示找以Ti值结束,以Si值开始,长度为Li的连续子串。找到后,将区间的答案值设为1。一开始答案值全部为0。最后输出n个答案值。好久没打题了算法:排序,乱搞。主要是要考虑到排序的时候,len大的放前边,这样可以break省掉不少时间。最...
分类:
编程语言 时间:
2015-04-20 16:25:14
阅读次数:
170