随笔分类 - 

摘要:package test; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOExcepti 阅读全文
posted @ 2016-09-05 22:59 Ramanujan 阅读(360) 评论(0) 推荐(0)
摘要:uva 1161 图论 无从下手。。。uva 10938 LCA && RMQ。。uva 10246 应该可以用变形floyd预处理,然后O(1)回答询问。WA代码:#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define LL long long#define UINT unsigned int#define MAX_INT 0x7fffffff#define cint const int#define 阅读全文
posted @ 2013-10-10 10:57 Ramanujan 阅读(195) 评论(0) 推荐(0)
摘要:Problem CMonkeys inthe Emei MountainInput: Standard InputOutput: Standard Output Xuexue is a prettymonkey living in the Emei mountain.She is extremely thirsty during time 2 and time 9 everyday, so she must drink 2units water during this period. She may drink water more than once, as long asthe total 阅读全文
posted @ 2013-10-06 23:30 Ramanujan 阅读(705) 评论(0) 推荐(0)
摘要:Problem CShogiTournamentInput: standard inputOutput: standard outputTime Limit: 25 secondsMemory Limit: 32 MBYou are to compute, given a partially playedShogi tournament (Japanese chess), whether or not a particular player can stilltheoretically win the tournament and if so, the maximum number of po 阅读全文
posted @ 2013-10-01 03:10 Ramanujan 阅读(446) 评论(0) 推荐(0)