原题: FZU 2169http://acm.fzu.edu.cn/problem.php?pid=2169这题貌似有两种解法,DFS和SPFA,但是DFS怎么都RE,SPFA也要用邻接表表示边,用向量表示的话会TLE,而且用SPFA有一个异或,就是题目说要沿最短路走到都城,但是SPFA是走最短路去...
分类:
其他好文 时间:
2014-07-09 15:37:19
阅读次数:
226
原题: FZU 2170http://acm.fzu.edu.cn/problem.php?pid=2170这题确实是当时没读懂题目,连样例都没想通,所以没做了,所以还是感觉这样散漫的做不好,有些题目明明很简单,却因为没看懂而放弃了,甚至去玩了,这样达不到太大的效果。解法:定义: dp[i][j]:...
分类:
其他好文 时间:
2014-07-09 15:19:53
阅读次数:
171
http://poj.org/problem?id=1129 1 import java.util.*; 2 import java.math.*; 3 public class Main { 4 public static boolean flag=false; 5 public ...
分类:
其他好文 时间:
2014-07-09 14:20:09
阅读次数:
169
原题: FZU 2173http://acm.fzu.edu.cn/problem.php?pid=2173一开始看到这个题毫无头绪,根本没想到是矩阵快速幂,其实看见k那么大,就应该想到用快速幂什么的,况且n#include #include #include #include #include #...
分类:
其他好文 时间:
2014-07-09 14:12:46
阅读次数:
243
excel 2007第一次打开时总是显示there was a problem sending command to the program.
关闭后打开一次就能打开了。
由于装的东西太多,初步怀疑是兼容性的问题.
在Excel option里面的add-in 和 trusted publisher 里面去掉非office的插件.
如下图:
...
分类:
其他好文 时间:
2014-07-09 12:31:38
阅读次数:
246
Problem Description
The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it: for each picture, he divides the picture into n x...
分类:
其他好文 时间:
2014-07-09 12:14:13
阅读次数:
433
Wow! Such Conquering!
Time Limit: 15000/8000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 0 Accepted Submission(s): 0
Problem Description
There ar...
分类:
其他好文 时间:
2014-07-09 12:05:42
阅读次数:
183
Balanced Number
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 1871 Accepted Submission(s): 836
Problem Description
A balanced...
分类:
其他好文 时间:
2014-07-09 11:54:01
阅读次数:
187
Just a Hook
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 15889 Accepted Submission(s): 7897
Problem Description
In the game o...
分类:
其他好文 时间:
2014-07-09 11:35:08
阅读次数:
215
http://202.121.199.212/JudgeOnline/problem.php?cid=1079&pid=23
分析:
,
k1,k2,k3为不同单词的个数。
代码:
#include
#include
#include
#include
#include
#include
#i...
分类:
其他好文 时间:
2014-07-09 09:19:40
阅读次数:
221