题目连接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=9213913904156AnanagramsAcceptedC++0.0092014-07-20 ...
分类:
其他好文 时间:
2014-07-22 08:07:37
阅读次数:
225
The DecoderWrite a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a si...
分类:
其他好文 时间:
2014-07-22 00:38:34
阅读次数:
235
Kindergarten Counting GameEverybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how man...
分类:
其他好文 时间:
2014-07-22 00:37:36
阅读次数:
248
Description
I I
U P C
2 0
06
Problem G: Going in Cycle!!
Input: standard input
Output: standard output
You are given a weighted directed gra...
分类:
其他好文 时间:
2014-07-22 00:28:36
阅读次数:
217
UVA 684 - Integral Determinant
题目链接
题意:给定一个行列式,求出值
思路:利用线性代数中的列相减,然后不断降阶即可,就是要用分数去写
代码:
#include
#include
#include
using namespace std;
const int N = 35;
long long gcd(long long a...
分类:
其他好文 时间:
2014-07-22 00:26:37
阅读次数:
207
题目如下:
Problem D
Fill
There are three jugs with a volume of a, b and c liters. (a,b, and c are positive integers not greater than 200). The first and the secondjug are initially empty, wh...
分类:
其他好文 时间:
2014-07-21 11:32:15
阅读次数:
253
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=17561391360710815Andy's First DictionaryAcceptedC+...
分类:
其他好文 时间:
2014-07-21 08:26:16
阅读次数:
243
1 live in 居住 2 dish 盘,菜肴 e.g. Surprise a new neighbour with one of your favourite home-made dishes! 3 put away 收好,储存 e.g. Her bed was crisply made收拾的很...
分类:
其他好文 时间:
2014-07-21 08:11:02
阅读次数:
222
下了Fedora20,想放在U盘上做成启动盘。结果问题多多。做驱动在网上找了universalusbinstaller,大白菜等都不行。最后还是用了Fedora官方推荐的liveusbcreator才成功。进入u盘里把文件夹syslinux改成ioslinux把里面的cfg文件用记事本打开,修改一下原本是root=live:LABEL=Fedora-..
分类:
系统相关 时间:
2014-07-20 23:17:34
阅读次数:
336
UVA 1386 - Cellular Automaton
题目链接
题意:给定一个n格的环,现在有个距离d,每次变化把环和他周围距离d以内的格子相加,结果mod m,问经过k次变换之后,环上的各个数字
思路:矩阵很好想,每个位置对应周围几个位置为1,其余位置为0,但是这个矩阵有500,有点大,直接n^3去求矩阵不太合适,然后观察发现这个矩阵是个循环矩阵,循环矩阵相乘的话,只需要...
分类:
其他好文 时间:
2014-07-20 23:16:53
阅读次数:
247