C++解决的算法题
已经通过的算法题含代码
LandHnny
应该是个勤奋的人
展开
-
A. String Task
A. String Tasktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputtime limit per test2 secondsmemory limit per test256 megabytesinputstandard i...原创 2018-12-07 21:45:16 · 127 阅读 · 0 评论 -
Queue at the School
Queue at the School== time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output==During the break the schoolchildren, boys and girls, formed a queue o...原创 2019-01-21 21:27:17 · 201 阅读 · 0 评论 -
A. New Year Candles
A. New Year Candlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily the Programmer loves romance, so this year he decided to illuminate ...原创 2019-01-21 21:37:28 · 198 阅读 · 0 评论 -
The Suspects
The SuspectsTime Limit: 1000MS Memory Limit: 20000KTotal Submissions: 52909 Accepted: 25191DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was re...原创 2019-01-21 21:44:22 · 211 阅读 · 0 评论 -
A. Presents
A. Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya very much likes gifts. Recently he has received a new laptop as a New...原创 2019-01-21 21:52:45 · 243 阅读 · 0 评论 -
A. Expression
A. Expressiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya studies in a school and he adores Maths. His class has been studying arithm...原创 2019-01-21 21:57:26 · 391 阅读 · 0 评论 -
A. Vasya and Socks
A. Vasya and Sockstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has n pairs of socks. In the morning of each day Vasya has to put on a...原创 2019-01-21 22:05:12 · 199 阅读 · 0 评论 -
A. Translation
A. Translationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe translation from the Berland language into the Birland language is not an e...原创 2019-01-21 22:11:57 · 399 阅读 · 0 评论 -
A. Beautiful Year
A. Beautiful Yeartime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt seems like the year of 2013 came only yesterday. Do you know a curious fa...原创 2019-01-21 22:17:00 · 318 阅读 · 0 评论 -
Rightmost Digit
Rightmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 73217 Accepted Submission(s): 26975Problem DescriptionGiven a positive int...原创 2019-01-21 22:28:02 · 125 阅读 · 0 评论 -
迷宫问题
迷宫问题定义一个二维数组:int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,...原创 2019-01-21 22:40:10 · 259 阅读 · 0 评论 -
A. Double Cola
A. Double ColaSheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other people in the queue. The first one in the queue (Sheldon) buys ...原创 2019-02-03 19:32:55 · 355 阅读 · 0 评论 -
Oil Deposits
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 46075 Accepted Submission(s): 26550Problem DescriptionThe GeoSurvComp geologi...原创 2018-12-18 00:23:02 · 116 阅读 · 0 评论 -
赛题分析
赛题分析Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 1186 Accepted Submission(s): 575Problem Description著名出题人小Q每次比赛后都会写一份《赛题分析》,包含比赛概况、每...原创 2018-12-11 17:35:26 · 487 阅读 · 0 评论 -
A. George and Accommodation
A. George and Accommodationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGeorge has recently entered the BSUCP (Berland State University for...原创 2018-12-07 21:54:28 · 157 阅读 · 0 评论 -
排序
排序Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 76744 Accepted Submission(s): 23387Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一...原创 2018-12-07 22:19:11 · 88 阅读 · 0 评论 -
ASCII码排序
ASCII码排序Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 237263 Accepted Submission(s): 93391Problem Description输入三个字符后,按各字符的ASCII码从小到大的顺序...原创 2018-12-07 22:23:32 · 186 阅读 · 0 评论 -
计算球体积
计算球体积Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 221529 Accepted Submission(s): 86459Problem Description根据输入的半径值,计算球的体积。Input输入数据有多...原创 2018-12-07 22:26:39 · 207 阅读 · 0 评论 -
A + B Problem Too
A + B Problem TooTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 21245 Accepted Submission(s): 15557Problem DescriptionThis problem is al...原创 2018-12-07 22:29:19 · 172 阅读 · 0 评论 -
空心三角形
空心三角形Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 60580 Accepted Submission(s): 16067Problem Description把一个字符三角形掏空,就能节省材料成本,减轻重量,但关键是为...原创 2018-12-14 11:31:27 · 2108 阅读 · 2 评论 -
2018.12.06
@2018.12.062018.12.06第一题:第一题这题主要是:1.找出非元音字母 2.大写换成小写但是我这里的方法有点费时费力,打的时候要数ASCII码,超级慢 #include "stdafx.h" #include<iostream> using namespace std; int main() {...原创 2018-12-07 00:36:06 · 124 阅读 · 0 评论 -
A. Watermelon
A. Watermelontime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputOne hot summer day Pete and his friend Billy decided to buy a watermelon. They cho...原创 2018-12-09 21:56:17 · 1170 阅读 · 0 评论 -
三角形
三角形Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 124636 Accepted Submission(s): 40054Problem Description给定三条边,请你判断一下能不能组成一个三角形。Input输...原创 2018-12-09 22:01:38 · 93 阅读 · 0 评论 -
A. Drazil and Date
A. Drazil and Datetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSomeday, Drazil wanted to go on date with Varda. Drazil and Varda live on Ca...原创 2018-12-09 22:16:15 · 111 阅读 · 0 评论 -
第几天?
第几天?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 207852 Accepted Submission(s): 72633Problem Description给定一个日期,输出这个日期是该年的第几天。Input输入...原创 2018-12-09 22:28:06 · 87 阅读 · 0 评论 -
汉诺塔V(大数计算)
汉诺塔VTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7496 Accepted Submission(s): 4644Problem Description用1,2,…,n表示n个盘子,称为1号盘,2号盘,…。号数大盘子就...原创 2019-02-03 20:49:41 · 501 阅读 · 0 评论