
UVa
BoilTask
www.BoilTask.com
展开
-
【UVa】[455]Periodic Strings
我已经感受到了 紫书习题满满的恶意原创 2016-01-10 20:56:19 · 297 阅读 · 0 评论 -
【UVa】[1524]Hot or Cold?
多项式的积分问题 算出积分后除以所用时间原创 2016-07-19 10:53:56 · 297 阅读 · 0 评论 -
【UVa】[10006]Carmichael Numbers
一个数是Carmichael Numbers的条件为 1.不是素数(这个数是合数) 2.区间[2,n-1]中没有全部满足xn≡x(mod n)求素数可用筛法 求幂可用快速幂取模原创 2016-07-25 17:17:37 · 233 阅读 · 0 评论 -
【UVa】[11582]Colossal Fibonacci Numbers!
涉及 快速幂取模 根据斐波那契数列取模之后的规律性 可解得原创 2016-04-24 18:26:50 · 304 阅读 · 0 评论 -
【UVa】[156]Ananagrams
记录每个string出现次数 然后只出现一次的即是结果可以用map做String到int的映射原创 2016-05-19 07:46:21 · 325 阅读 · 0 评论 -
【UVa】[1225]Digit Counting
/*用字符的形式保存整数然后再判断就好了*/刚开始想的是上面这种给一串数让找结果发现是找 1~N 的所有数字出现的次数……于是被坑了 -.-原创 2016-01-09 20:24:27 · 450 阅读 · 0 评论 -
【UVa】[1586]Molar mass
题目英文说的很复杂 其实就是给一个分子式求它的分子量读取字母判断原子量 需要注意CO、H2O等原子量为1的情况 (话说在下终于会用markdown写下标了)在这里也是给自己加了点难度 用了递归的函数来查找原子个数写的过程中也是遇到了点状况 好在最后还是一次AC了原创 2016-01-09 20:19:45 · 264 阅读 · 0 评论 -
【UVa】[1585]Score
ScoreTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluDescriptionThere is an objective test result such as ``OOXXOXXOOO". An `O' means a cor原创 2016-01-04 21:59:59 · 343 阅读 · 0 评论 -
【UVa】[401]Palindromes
PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string原创 2015-12-28 21:44:09 · 534 阅读 · 0 评论 -
【UVa】[10082]WERTYU
有一点细节就是 涉及到转义字符 ‘\’ 所以在建立s字符串时要写 \ 来代表单个的 \ 其它的就是直接输出它的前一个字符就好了原创 2015-12-28 19:15:25 · 467 阅读 · 2 评论 -
【UVa】[272]TeX中的引号
思路很明了 算是测试一下UVaOJ怎么用 不过…… 确实好难用啊……原创 2015-12-28 18:51:20 · 450 阅读 · 0 评论 -
【UVa】[11624]Fire!
Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help Joe escape the maze. Given Joe’s location in the ma原创 2016-07-30 11:03:55 · 425 阅读 · 0 评论