- 博客(28)
- 资源 (4)
- 收藏
- 关注
原创 Hero
There's a hero 有一位英雄 If you look inside your heart 如果你探寻你的内心 You don't have to be afraid 你不必担心害怕 Of what you are 自己是谁 There's an answer 有一种答案 If you reach into your soul
2014-06-08 21:47:48 1016 2
原创 uva 11538 组合数学
直接推公式AC代码如下:#include #include #include #include using namespace std;unsigned long long ans, n, m;int main(){ while( cin >> n >> m && !( n == 0 && m == 0 ) ){ if( n > m ){
2014-06-12 01:19:35 509
原创 lightoj 1158 状态压缩+数位DP
题意: dp[statu][premod]表示已经使用statu中的位置的数,且之前的余为premod的个数
2014-06-11 12:17:10 663
原创 lightoj 1056
水题说好的二分的呢AC代码如下:#include #include #include #include #include using namespace std;double a, b;int main(){ int T, Case = 1; cin >> T; while( T-- ){ scanf( "%lf : %lf"
2014-06-10 10:48:14 690
原创 lightoj 1060 数位DP
DFS( int pos, int id, long long num )表示计算到第pos位,遍历到字母id,要求剩下的第num
2014-06-08 22:27:38 720
原创 zoj 3789 并查集
浙大月赛的B题,搞了一天,终于搞懂了,第一次敲并查集注意 #include #include #include #include using namespace std;const int MAXN = 600000;int dis[MAXN], hash[MAXN], ft[MAXN], sz[MAXN];int N, M, top;int find( int
2014-06-03 20:50:11 933
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人