
/*各类网络赛2公开赛*/
BEconfidence
坚持才是胜利之道
展开
-
qduoj10月赛
#includeusing namespace std;int F[1100];int find_(int x){ return (F[x]==x)?x:find_(F[x]);}int main(){ int n,m; while(scanf("%d",&n),n!=0){ scanf("%d",&m); for(int i=1原创 2015-10-10 21:11:25 · 406 阅读 · 0 评论 -
qduoj-xor
Xor发布时间 : 2015年10月10日 18:05 时间限制 : 1000ms 内存限制 : 32M描述给定一个数组A, 长度为n,求下面这段程序的值ans = 0;for (int i = 1; i for (int j = 1; j ans ^= A[i] + A[j];输入多组测试数据,第一行一个整数T,T原创 2015-10-11 08:48:13 · 938 阅读 · 0 评论 -
ZOJ10,11月赛
AntTime Limit: 1 Second Memory Limit: 32768 KBThere is an ant named Alice. Alice likes going hiking very much. Today, she wants to climb a cuboid. The length of cuboid's longest edge is n原创 2015-10-11 15:58:05 · 602 阅读 · 0 评论 -
ZOJ月赛10,11,第二个
CakeTime Limit: 4 Seconds Memory Limit: 65536 KBAlice and Bob like eating cake very much. One day, Alice and Bob went to a bakery and bought many cakes.Now we know that they have bought原创 2015-10-11 17:05:48 · 419 阅读 · 0 评论