摘要:
The Two Routes CodeForces 602C In Absurdistan, there are n towns (numbered 1 through n) and m bidirectional railways. There is also an absurdly simple 阅读全文
摘要:
Problem Description Coach Pang is interested in Fibonacci numbers while Uncle Yang wants him to do some research on Spanning Tree. So Coach Pang decid 阅读全文
摘要:
A Minimum’s Revenge HDU 5922 There is a graph of n vertices which are indexed from 1 to n. For any pair of different vertices, the weight of the edge 阅读全文
摘要:
开始刷紫书... 1.水题,开灯问题,模拟即可,很好思维点是开关灯用0和1表示(每次只有两个变量都应该想到0和1) i 代表序号要求输出序号,a[i]代表属性 include using namespace std; const int maxn=1111; int a[maxn]; int mai 阅读全文
摘要:
A Meopass And ToRapture Problem Description meopass和ToRapture玩游戏,有n堆石子,每堆石子有ai的重量。 两人轮流行动,ToRapture先手。每次ToRapture会拿若干堆总重量为奇数的的石子,而meopass会拿若干堆总重量为偶数的的 阅读全文