
ACM HDU
luxxxxxxx_
这个作者很懒,什么都没留下…
展开
-
HDU 2044
阿里2018实习生校招直播!看直播,投简历....一只小蜜蜂...Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 87538 Accepted Submission(s): 31267Problem Description有一只经过训...原创 2018-03-11 14:20:52 · 324 阅读 · 0 评论 -
hdu 2045
不容易系列之(3)—— LELE的RPG难题 人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即”可乐”),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题:有排成一行的n个方格,用红(Red)、粉(Pink)、绿(Green)三色涂每个格子,每格涂一色,要求任何相邻的方格不能同色,且首尾两格也不同色.求全...原创 2018-03-11 15:04:15 · 239 阅读 · 0 评论 -
HDU1029 水题
题意就是给你一个奇数个的数列,里面有一个元素一定会出现超过(n+1)/2次,让你输出这个数 由题目知道,要是这个数一定出现超过一半的话,那么只要排一次序,然后直接输出中间那个数即可了,是不是很有道理?不明白为什么网上的题解做的这么复杂…Description“OK, you are not too bad, em… But you can never pass the next test.” fe...原创 2018-03-19 21:25:59 · 170 阅读 · 0 评论 -
hdu5878 I Count Two Three(水题)
hdu5878 I Count Two Three(水题)I will show you the most popular board game in the Shanghai Ingress Resistance Team.It all started several months ago.We found out the home address of the enlightened agen...原创 2018-03-20 20:22:05 · 254 阅读 · 0 评论 -
hdu5879 Cure(水)
18实习生校招直播!看直播,投简历....CureTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3614 Accepted Submission(s): 908Problem DescriptionGiven an integer ...原创 2018-03-20 21:07:06 · 207 阅读 · 0 评论 -
hdoj 1087(递推)
点击打开链接#include <iostream> #include <cstdio> #include <cstring> using namespace std; int num[1010],dp[1010]; int main () { int n,Max; while (~scanf("%d",&n)) { ...原创 2018-04-04 15:45:11 · 261 阅读 · 0 评论 -
HDU 1176(状态递推)dp
点击打开链接类似三角型递推连续数字三角形整条小路长0-10 每次在不定位置落馅饼 先统计那一时刻落下几块馅饼依次递推即可代码#include <iostream> #include <bits/stdc++.h> using namespace std; int n; int a[100001][12]; int maxn(int a,int b,int c) { ...原创 2018-04-04 19:45:48 · 222 阅读 · 0 评论 -
入门dp hdu sum
点击打开链接#include<stdio.h> int main(){ int t, n, caseNum, maxSum, maxHere, beginMax, endMax, beginHere, endHere; int a[100002]; scanf("%d", &t); caseNum = 0; while(t--){ caseNum++; sca...原创 2018-04-04 21:07:33 · 207 阅读 · 0 评论