Time Limit: 1000MS Memory Limit: 165888KB 64bit IO Format: %lld & %llu Description 现在给出了一个简单无向加权图。你不满足于求出这个图的最小生成树,而希望知道这个图中有多少个不同的最小生成树。(如果两颗最小生成树中至少 ...
分类:
其他好文 时间:
2016-07-12 23:26:56
阅读次数:
197
Aladdin and the Flying Carpet Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status Practice LightOJ 1341 Aladdin and the F ...
分类:
其他好文 时间:
2016-07-11 17:08:19
阅读次数:
181
Time Limit: 10000MS Memory Limit: 131072KB 64bit IO Format: %lld & %llu Description 小 X 自幼就很喜欢数。但奇怪的是,他十分讨厌完全平方数。他觉得这些数看起来很令人难受。由此,他也讨厌所有是完全平方数的正整数倍的数 ...
分类:
其他好文 时间:
2016-07-09 23:44:32
阅读次数:
223
Time Limit: 3000MS Memory Limit: 131072KB 64bit IO Format: %lld & %llu Description Longge的数学成绩非常好,并且他非常乐于挑战高难度的数学问题。现在问题来了:给定一个整数N,你需要求出∑gcd(i, N)(1<= ...
分类:
其他好文 时间:
2016-07-09 23:33:05
阅读次数:
148
2.1 输入输出进阶 %f:读入输出float/输出double。 %lf:读入double。 %lld:读入输出long long。 %s:读入输出字符串,不需要加“&”。 %u:以无符号整数形式输出整数。 %x:以十六进制形式读入或输出整数。 2.2 算术运算符和算术表达式 精度:double ...
分类:
其他好文 时间:
2016-07-08 15:02:18
阅读次数:
276
Harmonic Number Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status Practice LightOJ 1234 Harmonic Number Submit Status P ...
分类:
其他好文 时间:
2016-07-03 11:48:46
阅读次数:
200
Alice and Bob Time Limit:3000MS Memory Limit:128000KB 64bit IO Format:%lld & %llu Submit Status Practice ACdream 1112 Alice and Bob Submit Status Prac ...
分类:
其他好文 时间:
2016-07-02 13:03:55
阅读次数:
189
Rectangular Polygon Time Limit: 1000MS Memory Limit: 256000KB 64bit IO Format: %lld & %llu Description A rectangular polygon is a polygon whose edges ...
分类:
其他好文 时间:
2016-07-01 22:53:10
阅读次数:
234
2.4.3 64位整数输入输出long long除了cin,cout,也可以借助于printf和scanf语句,但对应的占位符缺是和平台与编译器相关的:在Linux中,gcc很同意的用%lld;在Windows中,MinGW的gcc和VC6都需要用%I64d;但VS2008却是用%lld。2.4.4 ...
分类:
编程语言 时间:
2016-06-25 10:47:54
阅读次数:
192
#!/usr/bin/python
importrequests,json
ip_list=[]
data_json={}
url=‘http://cmdb.cheyaoshicorp.com/api/ecs‘
r=requests.get(url)
ecss=json.loads(r.text)
forIinecss:
ip_dic={}
host_ip=I.get(‘ip‘)
ip_dic["{#IP}"]=host_ip
ip_list.append(ip_dic)
data_json[‘data‘]..
分类:
编程语言 时间:
2016-06-20 22:30:20
阅读次数:
422