杭电题目
文章平均质量分 61
Hello、MrTree
Hello,树先生。
展开
-
a的n次方的高效算法
a^b的高效算法 LZ之所以要贴上这个算法,是因为LZ的一个朋友用这个小算法考过LZ,我当时想到了这个算法,思想有了,但是没有实现出来,但是我朋友用递归的方法写的,但是递归的LZ的理解不是很深刻,所以这里用自己理解的非递归的形式写出来。#include<stdio.h>int pow(int a,int b) //不用栈的方法{ int r=1; if(b==0)原创 2015-06-18 23:08:27 · 5007 阅读 · 0 评论 -
杭电acm 1072 Nightmare
杭电acm 1072 NightmareProblem DescriptionIgnatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth原创 2015-08-23 19:40:37 · 978 阅读 · 0 评论 -
HDU 1026 Ignatius and the Princess I
HDU 1026 Ignatius and the Princess I题目链接题目:Problem DescriptionThe Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty Princess. Now he gets into feng5166's原创 2015-07-27 21:20:30 · 573 阅读 · 0 评论 -
杭电acm 1085 Holding Bin-Laden Captive!
Holding Bin-Laden Captive!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16934 Accepted Submission(s): 7620Problem DescriptionWe all know th原创 2015-06-09 18:07:11 · 508 阅读 · 0 评论 -
杭电1171 Big Event in HDU
Big Event in HDU题目链接:Big Event in HDU —1171 这道题目直接用母函数做,大家如果不了解母函数的可以自己百度一下,由于题目比较简单,这里就直接贴代码哈.如果大家有什么问题,可以在下面回复,我会马上为你解答。 代码如下:#include <iostream>using namespace std;int extra[100],Res[300000]; s原创 2015-06-09 17:59:46 · 576 阅读 · 0 评论 -
杭电acm1257:最少拦截系统
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24585 Accepted Submission(s): 9636Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导原创 2015-06-05 16:12:56 · 1341 阅读 · 0 评论 -
杭电2024:C语言合法标识符
Problem Description输入一个字符串,判断其是否是C的合法标识符。Input输入数据包含多个测试实例,数据的第一行是一个整数n,表示测试实例的个数,然后是n行输入数据,每行是一个长度不超过50的字符串。Output对于每组输入数据,输出一行。如果输入数据是C的合法标识符,则输出"yes",否则,输出“no”。Sample Input312ajffi8x_aff原创 2015-06-05 15:56:16 · 1128 阅读 · 0 评论 -
杭电1212 Big Number (大数求模运算)
Big NumberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5846 Accepted Submission(s): 4086Problem DescriptionAs we know, Big Number is alwa原创 2015-06-20 17:54:25 · 641 阅读 · 0 评论 -
杭电5247找连续数 解题报告
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 914 Accepted Submission(s): 331Problem Description 小度熊拿到了一个无序的数组,对于这个数组,小度熊想知道是否能找到一个k 的区间,原创 2015-06-20 15:34:34 · 573 阅读 · 0 评论 -
杭电acm2037 今年暑假不AC
今年暑假不AC Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 34410 Accepted Submission(s): 18334 Problem Description “今年暑假不AC?” “是原创 2015-06-05 16:01:22 · 1060 阅读 · 0 评论