码迷,mamicode.com
首页 >  
搜索关键字:hdu 1247 hats words    ( 33109个结果
Can you answer these queries? HDU - 4027 有点坑
#include<iostream> #include<cstring> #include<cstdio> #include<math.h> #include<algorithm> using namespace std; typedef long long ll; const int N=1e5+ ...
分类:其他好文   时间:2020-02-11 11:56:20    阅读次数:60
HDU - 1754 D - I Hate It
D - I Hate It HDU - 1754 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包 ...
分类:其他好文   时间:2020-02-11 10:06:15    阅读次数:78
Just a Hook HDU - 1698Just a Hook HDU - 1698 线段树区间替换
#include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; typedef long long ll; const int N=1e5+10; struct node{ ...
分类:其他好文   时间:2020-02-11 09:27:57    阅读次数:52
树状数组模板--Color the ball
Color the ball HDU - 1556 N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮 ...
分类:编程语言   时间:2020-02-10 22:29:36    阅读次数:98
带权并查集
例题一链接: http://acm.hdu.edu.cn/showproblem.php?pid=3038 题意: 数据范围: $1\leq n \leq 100$ 分析: AC代码: #include<bits/stdc++.h> #define ll long long #define pii ...
分类:其他好文   时间:2020-02-10 13:47:14    阅读次数:82
[LC] 273. Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " ...
分类:其他好文   时间:2020-02-10 10:16:33    阅读次数:75
假期编程
1.A/B?() 题目链接: Problem Description 正整数A是否能被正整数B整除,不知道为什么xhd会研究这个问题,来帮帮他吧。 Input 输入数据的第一行是一个数据T,表示有T组数据。每组数据有两个正整数A和B(A,B<10^9)。 Output 对于每组输入数据,输出"YES ...
分类:其他好文   时间:2020-02-09 22:09:42    阅读次数:64
Swaps and Inversions HDU - 6318 树状数组+离散化
#include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; typedef long long ll; const int N=1e5+10; int a[N]; int ...
分类:编程语言   时间:2020-02-09 20:45:45    阅读次数:68
Bubble Sort HDU - 5775 树状数组
//每个数字只会被它后面的比它小的数字影响,且会向右移动相应个数的位置 //比如:6 4 3 5 2 1 。4后面比它小的有 三个,因此它的最右边位置就是当前位置 +3,即5 //如果该数字本身在标准位置左边,那无须考虑,初始位置就是最左端 //如果它在标准位置右边,我们可以知道,它最终肯定要回到标 ...
分类:编程语言   时间:2020-02-09 20:17:01    阅读次数:69
HDU-1002 A + B Problem II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 515227 Accepted Submission(s): 98635 Problem Desc ...
分类:其他好文   时间:2020-02-09 16:43:31    阅读次数:61
33109条   上一页 1 ... 59 60 61 62 63 ... 3311 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!