摘要: 断断续续的把排序和检索专题刷完了,感觉英语还是不够,题目太长以后看起来就会很吃力。还有一点感触就是STL的广泛应用。学到了很多新东西。当然,不能忍受的就是答案最后多输出一行空行,UVaOJ会判WA。UVaOJ 340简单模拟题,一开始没有看懂题目。百度以后才明白的题意。朴素模拟以后即可得到答案。#i... 阅读全文
posted @ 2015-02-11 17:18 Ivy_End 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 今天刷了高精度专题,本来准备写一个高精度类,然后直接套模版,后来发现根据每题的要求分开写高精度反而效率高。主要涉及了高精度加法、乘法、除法、取余(其中后两项为高精度和低精度进行运算)。终于打过一遍高精度除以低精度了,高精度专题也算圆满了。UVaOJ 424高精度加法,水题。#include #inc... 阅读全文
posted @ 2015-02-08 14:02 Ivy_End 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 今天刷了小白书的字符串专题,各种WA以及PE。UVaOJ中有时候会把PE判成WA,这样会导致很难查错。UVa 401这道题目有个坑,只有表格中列出的才是镜像字母,没有列出了的表示没有镜像字母,在这上WA了一次。#include #include using namespace std;const c... 阅读全文
posted @ 2015-02-07 19:29 Ivy_End 阅读(223) 评论(2) 推荐(0) 编辑
摘要: 这一系列的练习主要在Virtual Judge上进行,题目为小白书上的题目推荐。UVa 10055求两方军队人数的差值,直接相减即可。不过要注意两个数的大小关系。#include using namespace std;int main(){ long long x, y; while(cin >>... 阅读全文
posted @ 2015-02-06 17:33 Ivy_End 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Description描述CIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory contain the name of the direct... 阅读全文
posted @ 2015-02-05 21:30 Ivy_End 阅读(364) 评论(0) 推荐(0) 编辑
摘要: Description描述You are given natural numbers a and b. Find ab-ba.给定自然数a、b,求ab-ba。Input输入Input contains numbers a and b (1≤a,b≤100).输入文件包含a和b(0#include u... 阅读全文
posted @ 2015-02-05 14:52 Ivy_End 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Description描述Nearly prime number is an integer positive number for which it is possible to find such primesP1andP2that given number is equal toP1*P2. ... 阅读全文
posted @ 2015-02-05 14:46 Ivy_End 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Description描述For given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.对于任意给定的数N,你需要输... 阅读全文
posted @ 2015-02-05 14:33 Ivy_End 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Description描述Petya is well-known with his famous cabbage patties. Petya's birthday will come very soon, and he wants to invite as many guests as possi... 阅读全文
posted @ 2015-01-30 17:49 Ivy_End 阅读(351) 评论(2) 推荐(0) 编辑
摘要: Description描述Little Johnny likes to draw a lot. A few days ago he painted lots of straight lines on his sheet of paper. Then he counted in how many zo... 阅读全文
posted @ 2015-01-29 21:33 Ivy_End 阅读(283) 评论(0) 推荐(0) 编辑