- 博客(18)
- 收藏
- 关注
原创 ACM基础题(共23道)
题目目录:CodeForces - 486ACodeForces 208ACodeForces 451ACodeForces 472ACodeForces 144ACodeForces 82ACodeForces 469ACodeForces 460ACodeForces 318ACodeForces 379AHDU 1576CodeForces 617ACodeFor...
2019-01-28 22:31:37
7532
1
原创 二周:骨牌铺方格——HDU - 2046
骨牌铺方格Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 68695 Accepted Submission(s): 33029Problem Description在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输...
2018-12-17 13:20:05
162
原创 二周:一只小蜜蜂...——HDU - 2044
一只小蜜蜂…Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 101838 Accepted Submission(s): 36021Problem Description有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行...
2018-12-17 12:57:15
210
原创 二周:HDU 2032——杨辉三角
杨辉三角Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 95721 Accepted Submission(s): 38562Problem Description还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以...
2018-12-16 10:23:38
221
原创 二周:CodeForces - 1A——A. Theatre Square
A. Theatre Squaretime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTheatre Square in the capital city of Berland has a rectangular shape wit...
2018-12-16 10:14:52
254
原创 HDU-2030——汉字统计
汉字统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 62459 Accepted Submission(s): 33621Problem Description统计给定文本文件中汉字的个数。Input输入文件首先包含一...
2018-12-14 16:47:21
334
原创 HDU - 2055——An easy problem
An easy problemTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 33073 Accepted Submission(s): 21354Problem Descriptionwe define f(A) = 1, ...
2018-12-13 23:11:56
285
原创 HDU - 2027——统计元音
统计元音Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 100796 Accepted Submission(s): 38651Problem Description统计每个元音字母在字符串中出现的次数。Input输入数据...
2018-12-13 18:51:43
221
原创 CodeForces - 131A——cAPS lOCK
A. cAPS lOCKtime limit per test0.5 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputwHAT DO WE NEED cAPS LOCK FOR?Caps lock is a computer keyboard key. Pressin...
2018-12-12 23:24:02
335
原创 CodeForces - 110A——Nearly Lucky Number
A. Nearly Lucky NumberPetya loves lucky numbers. We all know that lucky numbers are thepositive integers whose decimal representations contain only the luckydigits 4 and 7. For example, numbers 47...
2018-12-11 20:57:27
268
原创 一周:CodeForces - 4A——A.Watermelon
CodeForces - 4AOne hot summer day Pete and his friend Billy decided to buy awatermelon. They chose the biggest and the ripest one, in theiropinion. After that the watermelon was weighed, and the s...
2018-12-09 11:28:21
187
转载 转载!!ACM Tips #1
ACM Tips #1为什么是#1呢?因为之后可能会有第二篇第三篇啥的。。不过至于到时候会不会有,就看心情了。。以及万一之后经常加班的话那估计也会断更,总之就是一个想起来就写的系列内容也会时多时少什么的不过如果有发出来的话,还是建议诸位腾个时间出来看一下吧为什么不能有输入提示以上次讲过的a+b problem为例,可能会有同学会想给一些人性化设计,于是就添加了输入提示:#inclu...
2018-12-07 23:13:44
112
原创 CodeForces - 266A——Stones on the Table
Stones on the TableThere are n stones on the table in a row, each of them can be red,green or blue. Count the minimum number of stones to take from thetable so that any two neighboring stones had ...
2018-12-07 22:16:15
155
原创 HDU-2000——ASCII码排序
ASCII码排序输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output对于每组输入数据,输出一行,字符中间用一个空格分开。Sample Inputqweasdzxc程序分析: 本题可以用冒泡算法,但这个题目中,一组数组仅有三个,故采用更简便的两两对比的方法来排顺序。本题...
2018-12-07 10:24:07
174
原创 hdu-2002——计算球体积
HDU - 2002根据输入的半径值,计算球的体积。Input输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。Output输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。Sample Input11.5Sample Output4.18914.137Hint#define PI 3.1415927程序分析:利用m...
2018-12-07 09:13:31
191
原创 hdu2101——A + B Problem Too
A + B Problem TooThis problem is also a A + B problem,but it has a littledifference,you should determine does (a+b) could be divided with86.For example ,if (A+B)=98,you should output no for result...
2018-12-06 23:16:39
174
原创 HDU-1000——A+B problem
A+B problemCalculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2程序分析:...
2018-12-06 22:45:36
155
原创 CodeForces-118A——Vjudge String Task
String Task CodeForces118A:Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given stri...
2018-12-06 22:08:53
173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人