
UVALive
KLFTESPACE
这个作者很懒,什么都没留下…
展开
-
POJ2943 UVALive3524 The Cow Doctor【bitset+枚举】
转自 海岛Blog 转这篇文章主要是对19行的代码有点不明白,因为本人调试的代码,bitset不赋初值则位上的数都为0, 但是,把该段删除后WA,不明白。 /* POJ2943 UVALive3524 The Cow Doctor */ #include <iostream> #include <bitset> #include <math.h> ...转载 2018-08-01 21:05:23 · 251 阅读 · 0 评论 -
Big Mod UVALive - 5346
Calculate R := B P mod M for large values of B, P, and M using an efficient algorithm. (That’s right, this problem has a time dependency !!!.) Input The input will contain several test cases, each of ...原创 2018-10-01 10:18:50 · 242 阅读 · 0 评论 -
A+B UVALive 4660
//这个题没有我写的那么麻烦,我这样写主要是想练习下快速幂和atoi, itoa函数(字符串转十进制整数,十进制整数转n进制字符串)。 #include <iostream> #include <cstdlib> #include <cstdio> #include <string> #include <cctype> usin...原创 2019-02-21 16:34:32 · 132 阅读 · 0 评论