python 2.7,用来熟悉Python 由于都是智障题,所以我也不讲述题意和题解,直接贴代码了…… A import sys h,m = map(int,raw_input().split(":")) ans = 0…
分类:Online Judge
HDU 4407 Sum 第37届ACM/ICPC 金华赛区 第1008题 (容斥原理)
Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tot…
IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) A. Bear and Three Balls 水题
A. Bear and Three Balls 题目连接: http://www.codeforces.com/contest/653/problem/A Description Limak is a little po…
BZOJ 1070: [SCOI2007]修车 费用流
1070: [SCOI2007]修车 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=1070 Description 同一时刻有N位车主带着他们的爱车来到了汽…
HDU 4498 Function Curve (自适应simpson)
Function Curve Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java…
HDU 4710 Balls Rearrangement
Balls Rearrangement Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K …
HDU 4669 Mutiples on a circle (2013多校7 1004题)
Mutiples on a circle Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K…
POJ 1330 Nearest Common Ancestors (LCA,dfs+ST在线算法)
Nearest Common Ancestors Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 1490…
POJ 1087 A Plug for UNIX(最大流)
A Plug for UNIX Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11636 Accepted: 3834 …
ACM/ICPC 之 DP-基因相似度(POJ1080-ZOJ1027)
题意:两端基因片段,各有明确的碱基序列,现有一个碱基匹配的相似度数组,设计程序使得该相似度最大。 1 //POJ1080-ZOJ1027 2 //题解:将s1碱基和s2碱基看做等…
HDU 3555 Bomb(数位DP)
Bomb Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)T…
HDU 2197 本原串 (数学)
本原串 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tot…