0%

题意:在前100000个Fibonacci(以下简称F)数字里,能否在这100000个F里找出以某些数字作为开头的F。要求找出下标最小的。没找到输出-1。 代码:(Accepted,0.250s) 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475//UVa12333 - Revenge of Fibonacci//Accep...

题意:模拟买卖,当出售价bid等于或低于出售价ask,则交易。 代码:(Accepted,0.330s) 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102//UVa1598 - Exchange//Accepte...

题意:模拟客服MM,一共有N种话题,每个客服MM支持处理其中的i个(i < N),处理的话题还有优先级。为了简化流程方便出题,设每个话题都是每隔m分钟来咨询一次。现知道每个话题前来咨询的时间、间隔、处理此话题所需的时长与一共有多少次咨询。问多少时间后全部话题处理完成。 代码:(Accepted,0.010s) 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465...

题意:N张地图,查找某地点在不在某些地图上,若在,使用细节多的地图。使用哪个地图的破要求挺多,细心一点就好。 代码:(Accepted,0.000s) 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104...

题意:对比新老字典的区别:内容多了、少了还是修改了。 代码:(Accepted,0.000s) 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374//UVa12504 - Updating a Dictionary//#define _XieNaoban_#include<iostream>#include<ss...

第一次玩ACM。。。有点小紧张小兴奋。这题目好难啊,只是网赛就这么难。。。只把最简单的两题做出来了。 题目1: 代码: 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859//#define _ACM_#include<iostream>#include<cstring>#include<string>#include<vector>#incl...

题意:不难理解,照搬题意的解法。 代码:(Accepted,0.190s) 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611...

//开学了,好烦啊啊啊啊啊!怎么开个学那么多破事情!!都俩星期了,终于有时间写出来一道题 题意:不难理解,不写了。这几天忙的心累。 代码:(Accepted, 0.010s) 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071//UVa1596 - Bug Hunt#include<iostream>#include<sst...

//又开学啦,不知不觉成为大二的老人了。。。时间过得好快啊,感觉好颓废。。。 题意:建立一个借书/归还系统。有借、还、把还的书插到书架上这三个指令。 代码:(Accepted, 0ms) 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263//UVa230 - Borrowers#include<iostream>#include<string>#in...

题意:一堆文件但只有一个打印机,按优先级与排队顺序进行打印。也就是在一个可以插队的的队列里,问你何时可以打印到。至于这个插队啊,题目说”Of course, those annoying term papers that others are printing may have to wait for quite some time to get printed, but that's life.“嗯,这就是生活。 代码:(Accepted, 0ms) 123456789101112131415161718192021222324252627282930...

题意:平面上给若干点,问它们是不是关于某垂直于x轴的直线对称。 代码:(Wrong Answer, --ms) 1234567891011121314151617181920212223242526272829303132333435363738394041424344//UVa1595 - Symmetry#include<iostream>#include<vector>#include<algorithm>using namespace std;struct point { int x, y; bool...

题意:问在一个词典里,那些单词是复合词,即哪些单词是由两个单词拼出来的。 渣渣代码:(Accepted, 30ms) 12345678910111213141516171819202122//UVa10391 - Compound Words#include<iostream>#include<string>#include<set>using namespace std;set<string> dic;int main(){ //freopen("in.txt", "r", stdin); st...

题意:有若干交换生、若干学校,有人希望从A校到B校,有的想从B到C、C到A等等等等。如果有人想从A到B也刚好有人想从B到A,那么可以交换(不允许一对多、多对一)。看作后如果有人找不到人交换,那么整个交换计划失败。 代码:(Accepted, 50ms) 12345678910111213141516171819//UVa10763 - Foreign Exchange#include<cstdio>#include<cstring>int N, a, b,all[1003][1003];int main() { //fr...

书上具体所有题目:http://pan.baidu.com/s/1hssH0KO 代码:(Accepted,0 ms) 12345678910111213141516171819202122//UVa10935 - Throwing cards away I#include<iostream>#include<queue>int N;int main(){ //freopen("in.txt", "r", stdin); while (scanf("%d", &N) != -1 && N != 0...

书上具体所有题目:http://pan.baidu.com/s/1hssH0KO 代码:(Accepted,20 ms) 123456789101112131415161718192021222324252627282930313233//UVa1594 - Ducci Sequence#include<iostream>#include<algorithm>#include<cmath>#include<vector>using namespace std;int T,N;bool is_zero(vec...