摘要:
描述 Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now h 阅读全文
摘要:
描述 You're given a tree with weights of each node, you need to find the maximum subtree of specified size of this tree. Tree DefinitionA tree is a conn 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; #define INF 0x3f3f3f3f const int N=1e+5; int n,m,tot,sum,rt,ans; struct node{int v,w,next;}e[N<<1]; int 阅读全文
摘要:
描述 The cows have decided on a daring plan to escape from the clutches of Farmer John. They have managed to procure a small inflatable raft, and during 阅读全文
摘要:
描述 There is a matrix only contains uppercase letters. Try to find a word in this matrix. You can go toward four directions (top, bottom, left, right), 阅读全文
摘要:
描述 It was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacati 阅读全文