2991:2011 2991:2011 查看 提交 统计 提问 查看 提交 统计 提问 总时间限制: 1000ms 内存限制: 65536kB描述已知长度最大为200位的正整数n,请求出2011^n的后四位。输入第一行为一个正整数k,代表有k组数据,k<=200接下来的k行,每行都有一个正整数n,n ...
分类:
其他好文 时间:
2017-03-24 22:02:05
阅读次数:
435
mutex = threading.Lock() mutex.acquire()--锁住 mutex.release() --解锁 # coding:utf-8 import threading import time mutex = threading.Lock() def write(scan_... ...
分类:
编程语言 时间:
2017-03-24 17:31:41
阅读次数:
208
list_to_term(String)->
{ok,T,_}=string(String++"."),%%String加上一个英文句号(或者点号)
caseparse_term(T)of
{ok,Term}->
Term{error,Error}->
Error
end.EshellV5.8.2(abortwith^G)1>{ok,Scan1,_}=erl_scan:string("[a,b,c].").{ok,[{‘[‘,1},{atom,1,a},{‘..
分类:
其他好文 时间:
2017-03-24 16:09:57
阅读次数:
724
1 /* 2 HDU5979 Convex 3 http://acm.hdu.edu.cn/showproblem.php?pid=5979 4 计算几何 三角形面积公式 5 * 6 * 7 */ 8 #include 9 #include 10 #include 11 using namespac... ...
分类:
其他好文 时间:
2017-03-24 14:08:47
阅读次数:
145
题目链接:http://poj.org/problem?id=2912 题意:多个人玩石头剪刀布分成3组和一个裁判,每一组提前选定了自己出哪个手势,裁判可以随意出什么手势,问是否能够从给出的一系列石头剪刀布游戏中判断出哪个是裁判的,可以从第几局游戏中判断出来。 由于这题的数据量比较小可以枚举一下,枚 ...
分类:
其他好文 时间:
2017-03-24 00:38:47
阅读次数:
218
题目描述 凡是考智商的题里面总会有这么一种消除游戏。不过现在面对的这关连连看可不是QQ游戏里那种考眼力的游戏。我们的规则是,给出一个闭区间[a,b]中的全部整数,如果其中某两个数x,y(设x>y)的平方差x2-y2是一个完全平方数z2,并且y与z互质,那么就可以将x和y连起来并且将它们一起消除,同时 ...
分类:
其他好文 时间:
2017-03-23 21:53:24
阅读次数:
223
#include<iostream>#include<cstdio>using namespace std;int main(){ int i=2,n; scanf("%d",&n); printf("%d=",n); if(n<=3){ printf("%d",n); return 0; } wh ...
分类:
其他好文 时间:
2017-03-23 21:51:29
阅读次数:
186
#include<iostream>#include<cstdio>#include<cmath>using namespace std;int a[2];int main(){ int p,b=0,flag=1; scanf("%d",&p); for(int i=2;i<=p/2;i++) { ...
分类:
其他好文 时间:
2017-03-23 21:48:15
阅读次数:
159
odd-even number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description For a number,if the length of con ...
分类:
其他好文 时间:
2017-03-23 20:45:32
阅读次数:
179