AC代码: 题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=596 ...
分类:
其他好文 时间:
2016-08-27 15:35:12
阅读次数:
185
需要注意的地方就是n的绝对值不大于10000,表示n有可能是负数。 AC代码: 题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=436 ...
分类:
其他好文 时间:
2016-08-27 15:34:07
阅读次数:
302
AC代码如下: 题目来源:http://acm.nyist.net/JudgeOnline/problem.php?pid=273 ...
分类:
其他好文 时间:
2016-08-27 15:21:37
阅读次数:
237
AC代码: 题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=457 ...
分类:
其他好文 时间:
2016-08-27 15:19:34
阅读次数:
149
吝啬的国度
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述在一个吝啬的国度里有N个城市,这N个城市间只有N-1条路把这个N个城市连接起来。现在,Tom在第S号城市,他有张该国地图,他想知道如果自己要去参观第T号城市,必须经过的前一个城市是几号城市(假设你不走重复的路)。
输入第一行输入一个整数M表示测试数据共有M(1
每组测试数据...
分类:
其他好文 时间:
2016-08-24 17:33:07
阅读次数:
219
#!/usr/bin/env python#encoding=utf-8"""bdx"""def bdx_agent(x=500,y=100,lost=0,i=0): i=i+1 print "第%s轮:压%s,压triple:%s,赢1:%s 赢2:%s,lost:%s"%(i,x,y,x*2-y... ...
分类:
其他好文 时间:
2016-08-23 09:06:45
阅读次数:
318
>>> dox()第1轮:压500,压triple:100,赢1:400 赢2:1800,lost:-600lost: -600第2轮:压1000,压triple:200,赢1:200 赢2:3000,lost:-1800lost: -1800第3轮:压2000,压triple:300,赢1:-10... ...
分类:
其他好文 时间:
2016-08-23 09:04:52
阅读次数:
185
Turing equation
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
The fight goes on, whether to store numbers starting with their most significant digit or their least significant digit. Sometime...
分类:
其他好文 时间:
2016-08-22 12:39:48
阅读次数:
150
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as ...
分类:
其他好文 时间:
2016-08-20 16:26:26
阅读次数:
150
信道安全
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述Alpha 机构有自己的一套网络系统进行信息传送。情报员 A 位于节点 1,他准备将一份情报 发送给位于节点 n 的情报部门。可是由于最近国际纷争,战事不断,很多信道都有可能被遭到监 视或破坏。 经过测试分析,Alpha 情报系统获得了网络中每段信道安全可靠性的概率,情报员 A 决定选 ...
分类:
其他好文 时间:
2016-08-20 13:20:26
阅读次数:
168