其它类型ACM题
文章平均质量分 70
mocun_yzm
生命不息,奋斗不止
展开
-
hust-Ski Race解题报告
hust-Ski Race解题报告 Description Now you are asked for help by the organizers of the Winter Olympic Games 2014, which, as you know, will be held in Yekaterinozavodsk. And although there原创 2013-07-15 22:54:05 · 1050 阅读 · 0 评论 -
Codeforces Round #235 (Div. 2) C Team 构造法
题目链接:http://codeforces.com/contest/401/problem/C 题目大意:输入两个整数n,m。n代表0的个数,m代表1的个数。要求输出一串数字(只包含0与1),且0不能相邻,三个1不能连续。如果无解则输出-1. 解题思路: 先判断无解的状态,当这串数字是这样的时候:11011011.....011 此时的0的个数是最少的,即2*n+2==m,化简得到:2*原创 2014-03-12 22:33:23 · 642 阅读 · 0 评论 -
hdu 1722cake
Cake Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1746 Accepted Submission(s): 875 Problem Description 一次生日Party可能有p人或者q人参加,现原创 2013-12-19 21:50:20 · 584 阅读 · 0 评论 -
hdu-1106排序
字符串处理(对于sscanf / strtok / atoi 的运用) 排序 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 29807 Accepted Submission(s): 8258 Prob原创 2013-12-13 19:12:46 · 636 阅读 · 0 评论 -
hdu-1563 Find your present!
关于寻找数组中的特别数字的小技巧 Find your present! Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2335 Accepted Submission(s): 1524 Problem原创 2013-12-08 23:09:30 · 726 阅读 · 0 评论 -
hdu—1005 Number Sequence
找规律 Number Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 87139 Accepted Submission(s): 20721 Problem Description原创 2013-11-04 23:33:46 · 583 阅读 · 0 评论 -
关于strstr的用法
strstr 函数的用法如下: 包含文件:string.h 函数名: strstr 函数原型:extern char *strstr(char *str1, char *str2); 功能:从字符串str1中查找是否有字符串str2,如果有,从str1中的str2位置起,返回str1中str2起始位置的指针,如果没有,返回null。 返回值:返回该位置的指针,如找不到原创 2013-10-26 11:46:52 · 1502 阅读 · 0 评论 -
hdu-Tick and Tick
hdu-Tick and Tick解题报告 Problem Description The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and each of them wo原创 2013-08-20 11:17:24 · 1068 阅读 · 0 评论 -
joj-Before 2012
joj-Before 2012 Description As we know, in 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every e原创 2013-07-16 20:00:52 · 815 阅读 · 0 评论 -
hdu-七夕节
hdu-七夕节解题报告 Problem Description 七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!" 人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下: 数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2,3,4,原创 2013-07-22 14:25:03 · 763 阅读 · 0 评论 -
hdu-汉字统计
hdu-汉字统计解题报告 Problem Description 统计给定文本文件中汉字的个数。 Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。 Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。 [Hint:]从汉字机内码的特点考虑~ S原创 2013-07-27 11:10:39 · 731 阅读 · 0 评论 -
hdu-Balloon Comes!
hdu-Balloon Comes!一道水题的报告 今天闲来无事,想刷几道水题来增加自信心。但是在刷这道水题时,我发现了自己的一个知识漏洞!!!! Problem Description The contest starts now! How excited it is to see balloons floating around. You, one of th原创 2013-07-19 22:18:38 · 731 阅读 · 0 评论 -
hust-A Whole Lot of Walnuts解题报告
hust-A Whole Lot of Walnuts解题报告 Description Ten big walnuts is a whole lot of walnuts, that's for sure! Two walnuts is too little for anybody. How about six walnuts? Is it a small nu原创 2013-07-15 22:09:08 · 935 阅读 · 0 评论 -
hdu 2057A + B Again(十六进制或者八进制的A+B)
A + B Again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 14001 Accepted Submission(s): 6129 Problem Description There must be原创 2014-04-02 21:34:35 · 758 阅读 · 0 评论