题目链接:【HDU】5426 Rikka with Game #include <bits/stdc++.h>using namespace std ;typedef long long LL ;#define clr( a , x ) memset ( a , x , sizeof a )const int MAXN = 100005 ;const int MAXE = 200005 ;
Rikka with string Accepts: 395 Submissions: 2281 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) 问题描述 众所周知,萌萌哒六花不擅长数学,所以勇太给了她一些数学问题做练习,其中有一道是这样的: 有一天勇太得
参考:http://blog.csdn.net/aaaaacmer/article/details/48093767 #include <stdio.h>#include <string.h>#include <algorithm>#define M 1005using namespace std;struct node{int to, next;}edge[M*100];int hea
This way 题意: 给你a,b两个数组,让他们两辆匹配,ai与bj是稳定的,当且仅当不存在ak与bl使得ai^bl>ai^bj&&ak^bj>ak^bl。问你所有稳定匹配中ai^bj之和最大的是多少 题解: 好像和6625是同一道题目(羞愧) 只需要将01,10的路劲选择放在前面即可,其它地方不变 This way #include<bits/stdc++.h>using nam
http://acm.hdu.edu.cn/showproblem.php?pid=6425 分0拍0球 0拍多球 1拍0球 1拍多球 4种情况加起来即可 #include<bits/stdc++.h>#define mod 998244353using namespace std;long long qpow(long long x,long long cs){lo
https://www.nowcoder.com/acm/contest/148/A 对于一个数, ()x+lowbit)/2+(x-lowbit)/2=x #include<bits/stdc++.h>#define mod 998244353using namespace std;long long qpow(long long x,long long cs){l
题目描述 Today, Rikka is going to learn how to use BIT to solve some simple data structure tasks. While studying, She finds there is a magic expression in the template of BIT. After searching for some
题目链接:点我啊╭(╯^╰)╮ 题目大意: 一棵无根树,定义 L ( a , b ) L(a,b) L(a,b) 为树上从 a a a 到 b b b 的路径点数 计算 p a i r s ( l 1 , l 2 ) pairs (l_1, l_2) pairs(l1,l2) , L ( a , b ) = l 1 , L ( c , d ) = l 2 L(a,