摘要: java 大数计算 这几天做了几道用大数的题,发现java来做大数运算十分方便。对acmer来说是十分实用的 1.valueOf(parament); 将参数转换为制定的类型 比如 int a=3; BigInteger b=BigInteger.valueOf(a); 则b=3; String s 阅读全文
posted @ 2016-05-29 17:15 超级学渣渣 阅读(515) 评论(0) 推荐(0) 编辑
摘要: long long gcd(long long x,long long y) { long long a; if(x<y) a=x,x=y,y=a; while(y!=0) { a=x%y; x=y; y=a; } return x; 阅读全文
posted @ 2016-05-29 17:12 超级学渣渣 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Encoding Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39047 Accepted Submission(s): 17279 Prob 阅读全文
posted @ 2016-05-29 17:09 超级学渣渣 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Least Common Multiple Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 44922 Accepted Submission(s 阅读全文
posted @ 2016-05-29 16:55 超级学渣渣 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Big Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34084 Accepted Submission(s): 16111 Pr 阅读全文
posted @ 2016-05-29 14:55 超级学渣渣 阅读(174) 评论(0) 推荐(0) 编辑