![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU
文章平均质量分 87
xx_zzj
这个作者很懒,什么都没留下…
展开
-
A - Stones HDU - 1896
Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some games this time.Th...原创 2018-08-05 10:41:06 · 133 阅读 · 0 评论 -
E - number number number HDU - 6198
本题是为了求解n不能good的最小值,根据矩阵快速幂,求出Fn;通过规律求解Fn中的n为k*2+3;求得值为Fn-1; #include <iostream>#include <cstdlib>#include <cstdio>#define mod 998244353using namespace std;typedef long lon...原创 2018-08-29 22:03:06 · 125 阅读 · 0 评论 -
E - Evil Forest HDU - 6247
AC#include <cstdlib>#include <cstdio>#include <cmath>using namespace std;int main(){ int T; int N; int a; scanf("%d",&T); for(int k=1; k<=T; k++) ...原创 2018-09-07 19:18:53 · 469 阅读 · 0 评论 -
CTU Open Contest 2017 Pond Cascade
//从后面开始,看看最长的等差数列,然后返回第一个位置#include <iostream>#include <stdio.h>using namespace std;int main(){ int k;int t; int arr[1010]; while(scanf("%d", &k) != EOF &&...原创 2018-08-21 17:21:35 · 301 阅读 · 0 评论 -
D - array array array HDU - 6197
//求一下递增序列和递减序列就好了#include <bits/stdc++.h>using namespace std;const int maxn=100000+10;int num[maxn];int a[maxn];int n;int work(int m){ if(m==1) a[1]=num[1]; else a[1]=nu...原创 2018-08-31 13:24:14 · 176 阅读 · 0 评论 -
E - Equations HDU - 1496
#include <cstdio>#include <iostream>#include <cstring>#include <cmath>#include <algorithm>#include <stack>#include <queue>#include <vector&g转载 2018-08-05 20:01:49 · 166 阅读 · 0 评论 -
C - 最大报销额 HDU - 1864
//01背包公式f[j] = max{ f[j] , f[j-w(i)+v(i) }上面的代码就改下了下面这样:#include<iostream> using namespace std; #define V 1500 unsigned int f[V];//全局变量,自动初始化为0 unsigned int weight[10]; unsig...转载 2018-08-06 14:17:17 · 258 阅读 · 0 评论 -
A - 一个人的旅行 HDU - 2066
#include <stdio.h>#include <math.h>#include<algorithm>#include<string>#include<cstdlib>#include<cctype>#include<cstring>#include<iostream>原创 2018-08-14 15:23:31 · 118 阅读 · 0 评论 -
Magic Square
Magic SquareTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0 Problem DescriptionA magic square is a 3×3 ...原创 2018-08-15 15:51:51 · 260 阅读 · 0 评论