上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 41 下一页
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1058 #include<stdio.h> #include<string.h> int dp[6000]={0,1}; char str[5][5]={"th","st","nd","rd"}; int 阅读全文
posted @ 2015-07-13 10:11 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1023 卡特兰数问题 import java.io.*; import java.util.*; import java.util.Scanner; import java.math.BigInteger; cla 阅读全文
posted @ 2015-07-12 08:14 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1022 #include<iostream> #include<cstring> #include<stack> using namespace std; int main(){ int n,i,j,k; bool 阅读全文
posted @ 2015-07-08 00:08 wojiaohuangyu 阅读(13) 评论(0) 推荐(0)
摘要: 1. 敏感词汇分析(难) 要求:任意选择一个文本文件,分析该文件,如果存在敏感词汇(这些词汇保存在sentive.txt文件中,每个词占一行),报告每个词出现的次数。 import java.io.FileInputStream; import java.io.FileOutputStream; i 阅读全文
posted @ 2015-07-07 15:58 wojiaohuangyu 阅读(39) 评论(0) 推荐(0)
摘要: 1. 小游戏(一般) 要求:程序随机产生20—50根火柴,由人与计算机轮流拿,每次拿的数量不超过3根,拿到最后一根为胜。 public class Match { int number_Of_Match; public void random_Number(){ number_Of_Match=(i 阅读全文
posted @ 2015-07-07 15:55 wojiaohuangyu 阅读(14) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdio.h> #include<string.h> using namespace std; typedef struct BiNide{ char data; struct BiNide *lchild,*rchild; }BiTNode 阅读全文
posted @ 2015-06-24 18:16 wojiaohuangyu 阅读(13) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdio.h> #include<string.h> #define OK 1 #define OVERFLOW -2 #define ERROR 0 #define MAXSIZE 255 using namespace std; type 阅读全文
posted @ 2015-06-23 23:32 wojiaohuangyu 阅读(14) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdio.h> #include<string.h> #define MAXSIZE 255 #define ERROR 0 #define OVERFLOW -1 #define OK 1 using namespace std; type 阅读全文
posted @ 2015-06-23 23:29 wojiaohuangyu 阅读(15) 评论(0) 推荐(0)
摘要: 题意:编写一个方法,检测两个单词是否互为变位词。如果在不记顺序的情况下两个单词包含完全相同的字母,则称这两个单词互为变位词(anagram)。 import java.util.Arrays; import java.util.Scanner; public class E9_11{ // publ 阅读全文
posted @ 2015-06-03 23:01 wojiaohuangyu 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int Status; typedef int QElemType; typedef struct QNo 阅读全文
posted @ 2015-05-23 22:41 wojiaohuangyu 阅读(18) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 41 下一页