
怒刷水题找信心
蒟蒻的ACMer
2014界大学新生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj 3007 stl
各种stl应用 ACcode:#include #include #include #include #include using namespace std;#define pb(x) q.push_back(x) vectorq;int main(){ int loop; scanf("%d",&loop); string s; wh原创 2017-04-10 15:00:16 · 587 阅读 · 0 评论 -
POJ 2739 Sum of Consecutive Prime Numbers 水
Sum of Consecutive Prime NumbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 20955 Accepted: 11502DescriptionSome positive integers can be represented原创 2015-08-05 19:54:28 · 634 阅读 · 0 评论 -
POJ 3006 Dirichlet's Theorem on Arithmetic Progressions 水
Dirichlet's Theorem on Arithmetic ProgressionsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16868 Accepted: 8513DescriptionIf a and d are relatively p原创 2015-08-05 19:55:56 · 533 阅读 · 0 评论 -
POJ 3094 Quicksum 水
QuicksumTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15028 Accepted: 10494DescriptionA checksum is an algorithm that scans a packet of data and retur原创 2015-08-05 19:57:49 · 475 阅读 · 0 评论 -
POJ 2017 Speed Limit 简单模拟
Speed LimitTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 18170 Accepted: 12745DescriptionBill and Ted are taking a road trip. But the odometer in thei原创 2015-08-07 19:40:34 · 525 阅读 · 0 评论 -
POJ 1922 Ride to School 简单模拟
Ride to SchoolTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 20162 Accepted: 8138DescriptionMany graduate students of Peking University are living in W原创 2015-08-07 19:42:36 · 1027 阅读 · 0 评论 -
POJ 2000 Gold Coins 简单模拟
Gold CoinsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 21914 Accepted: 13732DescriptionThe king pays his loyal knight in gold coins. On the first day原创 2015-08-07 19:49:39 · 660 阅读 · 0 评论 -
POJ 1060 Modular multiplication of polynomials 逻辑运算
Modular multiplication of polynomialsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4289 Accepted: 1944DescriptionConsider polynomials whose coefficien原创 2015-08-11 10:59:53 · 1791 阅读 · 0 评论 -
POJ 1555 Polynomial Showdown
Polynomial ShowdownTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4494 Accepted: 1554DescriptionGiven the coefficients of a polynomial from degree 8 do原创 2015-08-11 11:16:24 · 1962 阅读 · 0 评论 -
POJ 3751 时间日期格式转换
时间日期格式转换Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7671 Accepted: 3585Description世界各地有多种格式来表示日期和时间。对于日期的常用格式,在中国常采用格式的是“年年年年/月月/日日”或写为英语缩略表示的”yyyy/原创 2015-08-11 13:34:15 · 753 阅读 · 0 评论 -
POJ 2126 Factoring a Polynomial 多项式运算 水
Factoring a PolynomialTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 2524 Accepted: 1301DescriptionRecently Georgie has learned about polynomials. A po原创 2015-08-13 11:06:52 · 1370 阅读 · 0 评论 -
POJ 2196 Specialized Four-Digit Numbers 水
Specialized Four-Digit NumbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7626 Accepted: 5549DescriptionFind and list all four-digit numbers in decima原创 2015-08-05 19:45:36 · 607 阅读 · 0 评论 -
POJ 1552 Doubles 水
DoublesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 20106 Accepted: 11667DescriptionAs part of an arithmetic competency program, your students will be give原创 2015-08-05 19:34:21 · 644 阅读 · 0 评论 -
POJ 1004 Financial Management 水
Financial ManagementTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 165700 Accepted: 61629DescriptionLarry graduated this year and finally has a job.原创 2015-08-05 19:26:50 · 798 阅读 · 0 评论 -
poj 3096 set 水题
判断一个字符串是否是surprisingset 瞎搞就好了ACcode:#include #include #include #include #include #include using namespace std;#define inf 0x3f3f3f3f#define maxn 105#define ll long longchar s[maxn];in原创 2017-04-10 13:17:32 · 466 阅读 · 0 评论 -
CodeForces 450B Jzzhu and Sequences 矩阵快速幂
注意取mod的细节ACcode:#include #define mod 1000000007#define ll long longusing namespace std;struct Matrix{ ll mat[2][2];};Matrix mul(Matrix a,Matrix b){ Matrix ret; for(int i=0;i<2;++原创 2016-09-22 21:47:26 · 789 阅读 · 0 评论 -
HDU 4737 A Bit Fun 水暴力
题意: 给出了一列数..定义f(i,j)为第i个数开始一次做或运算到最后一个数..问比给定的m小的f(i,j)有多少对...数据不是很大 暴力可以过ACcode:#include #define maxn 100005int a[maxn];int main(){ int loop,cnt=1,n,m,ans; scanf("原创 2016-09-14 20:55:10 · 402 阅读 · 0 评论 -
HDU {A} + {B}
{A} + {B} Time Limit : 10000/5000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 37 Accepted Submission(s) : 20Font: Times New Roman | Verdana | Georgia Fon原创 2015-05-26 13:32:13 · 881 阅读 · 0 评论 -
HDU sort
sort Time Limit : 6000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 161 Accepted Submission(s) : 31Font: Times New Roman | Verdana | Georgia Font Siz原创 2015-05-27 08:15:34 · 1216 阅读 · 0 评论 -
HDU 吃糖果
吃糖果 Time Limit : 6000/3000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 121 Accepted Submission(s) : 31Font: Times New Roman | Verdana | Georgia Font Size原创 2015-05-27 08:41:06 · 1567 阅读 · 0 评论 -
YTU 2748: 双向冒泡排序
2748: 双向冒泡排序Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 193 Solved: 100[Submit][Status][Web Board]Description注:本题只需要提交填写部分的代码,请按照C++语言方式提交。双向冒泡从小到大排序算法描述:(1)从当前序列的第1个元素开始,对相邻原创 2015-05-27 22:59:47 · 1457 阅读 · 0 评论 -
YTU 2754: C++习题-快速排序
2754: C++习题-快速排序Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 81 Solved: 46[Submit][Status][Web Board]Description以某个数为标准,把比这个数大的都移到它的后面,比这个数小的都移到它的前面,这样它后面的任意一个数都比它前面的任意一个数大,再将这前后两组数原创 2015-05-28 14:15:04 · 1164 阅读 · 0 评论 -
YTU 2419: C语言习题 等长字符串排序
2419: C语言习题 等长字符串排序Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 426 Solved: 169[Submit][Status][Web Board]Description在主函数中输入n(nInput n和n个等长字符串Output n个已排好序原创 2015-05-28 23:12:02 · 1106 阅读 · 1 评论 -
oj 小黑熊偷玉米
Description小黑熊的邻居bob 家里种了好多玉米,玉米是排成一条线 ,贪吃的小黑熊想去偷一个玉米,但是bob家的玉米实在是太多了,所以小黑熊决定选择一个区间[l,r]去偷,因为小黑熊的幸运数是k,所以它决定就去偷在它选择的区间里第k大的一个玉米。现在请你帮助小黑熊计算一下它将偷的玉米有多大吧Input第一行包含一个数n(n第二行包含n个正整数(每个数不超过原创 2015-06-10 12:49:51 · 1272 阅读 · 0 评论 -
POJ 2121 Inglish-Number Translator
Inglish-Number TranslatorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4840 Accepted: 1894DescriptionIn this problem, you will be given one or more in原创 2015-08-14 12:52:30 · 1726 阅读 · 0 评论 -
POJ 2141 Message Decowding 水
Message DecowdingTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12219 Accepted: 6830DescriptionThe cows are thrilled because they've just learned about原创 2015-08-14 13:27:53 · 1336 阅读 · 0 评论 -
Ytu 1009: University
Description在大学里,很多单词都是一词多义,偶尔在文章里还要用引申义。这困扰Redraiment很长的时间。他开始搜集那些单词的所有意义。他发现了一些规律,例如“a”能用“e”来代替, “c”能用“f”来代替……现在他给出了字母的替换规则,如下所示,A被E替换,B被C替换,依次类推。A B C D E F G H I J K L M N O P Q R S T U原创 2015-04-01 09:08:06 · 1005 阅读 · 1 评论 -
Ytu 1007: Redraiment猜想
Descriptionredraiment在家极度无聊,于是找了张纸开始统计素数的个数。 设函数f(n)返回从1->n之间素数的个数。 redraiment发现: f(1) = 0 f(10) = 4 f(100) = 25 ... 满足g(m) = 17 * m2 / 3 - 22 * m / 3 + 5 / 3 其中m为n的位数。 他很激动,是不是自己发现了素数分布的规律了! 请你设计原创 2015-04-01 09:04:05 · 1621 阅读 · 0 评论 -
Ytu 1005: 渊子赛马
Description赛马是一古老的游戏,早在公元前四世纪的中国,处在诸侯割据的状态,历史上称为“战国时期”。在魏国作官的孙膑,因为受到同僚庞涓的迫害,被齐国使臣救出后,到达齐国国都。 赛马是当时最受齐国贵族欢迎的娱乐项目。上至国王,下到大臣,常常以赛马取乐,并以重金赌输赢。田忌多次与国王及其他大臣赌输赢,屡赌屡输。一天他赛马又输了,回家后闷闷不乐。孙膑安慰他说:“下次有机会带我到马场看看原创 2015-04-01 08:57:51 · 1014 阅读 · 0 评论 -
Ytu 1004: 1、2、3、4、5...
Description 浙江工商大学校园里绿树成荫,环境非常舒适,因此也引来一批动物朋友来此居住。童心未泯的redraiment就经常带些碎面包什么的去广场喂鸽子和兔子,并和它们玩耍。一点也不像大学生,还是一副老不正经的样子,呵呵。随着鸽子和兔子数目的增多,redraiment带的那点食物已经不够它们瓜分了。为了能让自己的好朋友吃的饱饱的,redraiment决定统计一下有多少只鸽原创 2015-04-01 08:53:01 · 1150 阅读 · 0 评论 -
Ytu 1003: Redraiment的遭遇
DescriptionRedraiment的老家住在工业区,日耗电量非常大。是政府的眼中钉肉中刺,但又没办法,这里头住的可都是纳税大户呀。 今年7月,又传来了不幸的消息,政府要在7、8月对该区进行拉闸限电。但迫于压力,限电制度规则不会太抠门,政府决定从7月1日停电,然后隔一天到7月3日再停电,再隔两天到7月6日停电,一次下去,每次都比上一次晚一天。 Redraiment可是软件专业的学生,原创 2015-04-01 08:46:45 · 1793 阅读 · 0 评论 -
Hdu 10000的阶乘
Font Size: ← →Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N, output N! in one li原创 2015-03-31 22:03:52 · 829 阅读 · 0 评论 -
Hdu 蜗牛问题
Font Size: ← →Problem DescriptionA snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 foot at night while slee原创 2015-03-31 21:57:09 · 895 阅读 · 0 评论 -
Hdu Problem E
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified原创 2015-03-31 21:41:22 · 751 阅读 · 0 评论 -
Ytu 绝对值从大到小排序后输出
Problem Description输入n(nInput输入数据有多组,每组占一行,每行的第一个数字为n,接着是n个整数,n=0表示输入数据的结束,不做处理。 Output对于每个测试实例,输出排序后的结果,两个数之间用一个空格隔开。每个测试实例占一行。 Sample Input3 3 -4 24 0 1 2 -30Sample Output原创 2015-03-31 21:37:17 · 4167 阅读 · 1 评论 -
Ytu 成绩转换
Font Size: ← →Problem Description输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下:90~100为A;80~89为B;70~79为C;60~69为D;0~59为E;Input输入数据有多组,每组占一行,由一个整数组成。 Output对于每组输入数据,输出一行。如果输入数据不在0~100范围内,请输出一行:原创 2015-03-31 21:33:19 · 460 阅读 · 0 评论 -
Ytu 1010: 目标柏林
Description 1945年初,苏军和英美联军已从东西两面攻入德国国境。 4月初,在苏军和英美联军的夹击下,德军只能龟缩在以柏林为中心的德国东部的狭长地带,成了瓮中之鳖。但希特勒困兽犹斗,一方面发出摧毁一切设施,实行“焦土”政策的指令;另一方面下令把德国分为南北两个行政区,各自作战,他自己则固守柏林。在这一天,苏军结果一份传自柏林的加密电文。经初步破译,显示希特勒要调集100万兵力,在柏原创 2015-04-01 09:18:05 · 2307 阅读 · 2 评论 -
Contest1376 - "师创杯"烟台大学第二届ACM程序设计精英赛复现 A--A Repeating Characters
DescriptionFor this problem,you will write a program that takes a string of characters,S,and creates a new string of characters,T,with each character repeated R times.That is,R copies of the first原创 2015-04-08 08:36:48 · 567 阅读 · 0 评论 -
HDU 2952 Counting Sheep 简单dfs
Counting SheepTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2657 Accepted Submission(s): 1763Problem DescriptionA while ago I h原创 2015-10-31 13:09:59 · 571 阅读 · 0 评论 -
POJ 1591 M*A*S*H 水模拟
Language: M*A*S*HTime Limit: 1000MS Memory Limi原创 2015-08-18 20:33:31 · 1393 阅读 · 0 评论