ACM_HDU
Tovi-A
用勇气改变可以改变的事情,用胸怀接受不能改变的事情,用智慧分辨两者的不同。
展开
-
HDU2973(威尔逊定理)
YAPTCHATime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 875 Accepted Submission(s): 458Problem DescriptionThe math department has原创 2016-12-18 16:00:54 · 686 阅读 · 0 评论 -
简单的快速幂取模
HDU1097本题为快速幂取模运算,直接套用模板即可//题目描述:给你数a,b,让你输出a^b的最后一位#include #include using namespace std;#define LL long long LL pow_mod(LL a, LL b){ LL ans = 1; a = a % 10; while (b > 0) { i原创 2015-08-26 16:21:02 · 561 阅读 · 0 评论 -
HDU--1061
Rightmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39389 Accepted Submission(s): 14863Problem DescriptionGiven a原创 2015-07-27 20:56:41 · 584 阅读 · 0 评论 -
HDU--1164
Eddy's research ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7402 Accepted Submission(s): 4479Problem DescriptionEddy's i原创 2015-06-13 09:20:45 · 761 阅读 · 0 评论 -
HDU题目分类
注:网上搜的第一篇 1001 这个就不用说了吧1002 简单的大数1003 DP经典问题,最大连续子段和1004 简单题1005 找规律(循环点)1006 感觉有点BT的题,我到现在还没过1007 经典问题,最近点对问题,用分治1008 简单题1009 贪心1010原创 2015-06-11 14:03:08 · 966 阅读 · 0 评论 -
HDU--2018
母牛的故事Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51707 Accepted Submission(s): 25922Problem Description有一头母牛,它每年年初生一头小母牛。每头小母原创 2015-05-25 20:07:04 · 673 阅读 · 0 评论 -
HDU--2016
数据的交换输出Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 67624 Accepted Submission(s): 25718Problem Description输入n(n Input原创 2015-05-25 17:09:46 · 759 阅读 · 0 评论 -
HDU--2019
数列有序!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57448 Accepted Submission(s): 24759Problem Description有n(n Input输入数据原创 2015-05-25 21:02:20 · 722 阅读 · 0 评论 -
HDU--2056
RectanglesTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17131 Accepted Submission(s): 5522Problem DescriptionGiven two rect原创 2015-06-11 10:43:35 · 564 阅读 · 0 评论 -
HDU--1060
Leftmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14696 Accepted Submission(s): 5660Problem DescriptionGiven a po原创 2015-07-24 19:48:32 · 651 阅读 · 0 评论 -
HDU--1232畅通工程
//简单入门的并查集 #include using namespace std;int pre[1010];int find(int x){ int r = x; while (pre[r] != r) r = pre[r]; int i = x, j; while (i != r) { j = pre[i]; pre[i] = r; i = j;原创 2015-09-14 17:11:40 · 379 阅读 · 0 评论 -
HDU-1013九余数定理
题目传送门:HDU1013 九余数定理//题目描述:给定一个数,要求你求出它的每位上的数字之和,并且直到每位上的数字之和为个位时候输出它//输入:一个整数//输出:题目描述的结果//算法分析: 此题要用到9余数定理。 九余数定理 // 一个数对九取余后的结果称为九余数。 // 一个数的各位数字之和相加后得到的<10的数字称为这个数的九余数(如果相原创 2015-09-17 09:01:58 · 715 阅读 · 1 评论 -
HDU1039 Easier Done Than Said?
题目链接:HDU1039/* 题目大意:验证所设密码可否接受,要求满足以下三个条件: 1、必须包含元音 2、三个连续的字母不能同时为元音或者辅音 3、两个连续的字母不能相同,其中"ee"."o原创 2016-11-26 13:06:42 · 368 阅读 · 0 评论 -
HDU1114Piggy-Bank(完全背包)
Piggy-BankTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19735 Accepted Submission(s): 10020Problem DescriptionBefore ACM can do原创 2016-06-02 14:51:08 · 1217 阅读 · 0 评论 -
HDU1102(最小生成树Kruskal算法)
Constructing RoadsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19847 Accepted Submission(s): 7594Problem DescriptionThere are原创 2016-06-01 19:29:38 · 1056 阅读 · 1 评论 -
HDU_5523Game
GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 159 Accepted Submission(s): 74Problem DescriptionXY is playing a game:t原创 2015-11-01 00:02:45 · 779 阅读 · 0 评论 -
HDU_5563Clarke and five-pointed star
Clarke and five-pointed starTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 156 Accepted Submission(s): 88Problem Description原创 2015-11-14 22:45:51 · 573 阅读 · 0 评论 -
HDU_5504 GT and sequence
GT and sequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1392 Accepted Submission(s): 322Problem DescriptionYou are given a原创 2015-10-22 15:58:25 · 533 阅读 · 0 评论 -
HDU--1212大数取模
大数取模问题。题目传送门:HDU1212#include using namespace std;char a[1010];int main(){ int b; while (cin >> a>> b) { int flag = 0; for (int i = 0; a[i] != '\0'; i++)原创 2015-09-18 21:57:35 · 427 阅读 · 0 评论 -
HDU_4883
TIANKENG’s restaurantTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1760 Accepted Submission(s): 635Problem DescriptionTIANKENG原创 2015-10-07 15:19:52 · 437 阅读 · 0 评论 -
HDU--2017
字符串统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51785 Accepted Submission(s): 28416Problem Description对于给定的一个字符串,统计其中数字字符出现的原创 2015-05-25 18:32:25 · 552 阅读 · 0 评论 -
HDU--2087
剪花布条Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10712 Accepted Submission(s): 6900Problem Description一块花布条,里面有些图案,另有一块直接可原创 2015-06-11 13:58:06 · 729 阅读 · 0 评论 -
HDU--2015
偶数求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 56836 Accepted Submission(s): 24787Problem Description有一个长度为n(n Input原创 2015-05-25 13:26:17 · 646 阅读 · 0 评论 -
HDU2099
整除的尾数Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27646 Accepted Submission(s): 11717Problem Description一个整数,只知道前几位,不知道末二位,被另一原创 2015-05-23 12:20:45 · 1140 阅读 · 0 评论 -
HDU--2040
亲和数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 26392 Accepted Submission(s): 15871Problem Description古希腊数学家毕达哥拉斯在自然数研究中发现,2原创 2015-06-04 10:55:06 · 604 阅读 · 0 评论 -
HDU--2032
杨辉三角Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 43360 Accepted Submission(s): 18223Problem Description还记得中学时候学过的杨辉三角吗?具体的定义这里原创 2015-06-02 19:02:51 · 662 阅读 · 0 评论 -
HDU--2030
汉字统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29856 Accepted Submission(s): 16378Problem Description统计给定文本文件中汉字的个数。 I原创 2015-06-01 21:21:38 · 737 阅读 · 0 评论 -
HDU--2027
统计元音Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 45967 Accepted Submission(s): 18746Problem Description统计每个元音字母在字符串中出现的次数。原创 2015-05-29 19:21:37 · 584 阅读 · 0 评论 -
HDU--2028
Lowest Common Multiple PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 40223 Accepted Submission(s): 16669Problem Description原创 2015-05-29 20:07:42 · 876 阅读 · 0 评论 -
HDU--2024
C语言合法标识符Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 45522 Accepted Submission(s): 18355Problem Description输入一个字符串,判断其是否是C的合法标原创 2015-05-28 09:36:44 · 610 阅读 · 0 评论 -
HDU--2020
绝对值排序 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51632 Accepted Submission(s): 24938Problem Description输入n(n Input输入原创 2015-05-26 20:51:03 · 706 阅读 · 0 评论 -
HDU2009
求数列的和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 54427 Accepted Submission(s): 33499Problem Description数列的定义如下:数列的第一项为n,以后各原创 2015-05-23 15:58:16 · 618 阅读 · 0 评论 -
水题
平方和与立方和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 111547 Accepted Submission(s): 36101Problem Description给定一段连续的整数,求出他们中所有偶数原创 2015-05-23 11:31:38 · 408 阅读 · 0 评论 -
HDU2008
数值统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 68704 Accepted Submission(s): 34511Problem Description统计给定的n个数中,负数、零和正数的个数。原创 2015-05-23 11:39:22 · 570 阅读 · 0 评论 -
HDU--2013
蟠桃记Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41742 Accepted Submission(s): 31408Problem Description喜欢西游记的同学肯定都知道悟空偷吃蟠桃的故事,你原创 2015-05-24 10:28:25 · 469 阅读 · 0 评论 -
HDU--2115
I Love This GameTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6357 Accepted Submission(s): 2175Problem DescriptionDo you li原创 2015-06-09 11:53:46 · 498 阅读 · 0 评论 -
HDU--2060
SnookerTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7935 Accepted Submission(s): 3397Problem Descriptionbackground:Phili原创 2015-06-09 11:50:36 · 633 阅读 · 0 评论 -
HDU--2014
青年歌手大奖赛_评委会打分Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57800 Accepted Submission(s): 28862Problem Description青年歌手大奖赛中,评委会给参原创 2015-05-24 12:01:02 · 534 阅读 · 0 评论 -
HDU--2114
Calculate S(n)Time Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8905 Accepted Submission(s): 3257Problem DescriptionCalculate原创 2015-06-08 17:04:13 · 888 阅读 · 3 评论 -
HDU--2053
Switch GameTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12748 Accepted Submission(s): 7753Problem DescriptionThere are many la原创 2015-06-06 10:05:37 · 959 阅读 · 0 评论