水题
文章平均质量分 76
wyg1997
恰如猛虎卧荒丘,潜伏爪牙忍受。
展开
-
【CodeForces】638A - Home Numbers(水)
题目链接:点击打开题目A. Home Numberstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe main street of Berland原创 2016-05-27 09:29:33 · 418 阅读 · 0 评论 -
【杭电oj】2043 - 密码(水)
题目链接:点击打开题目密码Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 46159 Accepted Submission(s): 18583Problem Description网上原创 2016-05-27 09:41:08 · 478 阅读 · 0 评论 -
【CodeForces】67A - Life Without Zeros(水)
A. Life Without Zerostime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCan you imagine our life if we remove原创 2016-05-17 18:00:54 · 588 阅读 · 0 评论 -
【CodeForces】Toy Army(数学)
Toy Armytime limit per test 2 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputThe hero of our story, Valera, and his best fr原创 2016-05-17 18:36:33 · 509 阅读 · 0 评论 -
【CodeForces】696A - Football(连续子串,水)
A. Footballtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya loves football very much. One day, as he原创 2016-05-17 18:53:31 · 408 阅读 · 0 评论 -
【CodeForces】554B - Ohana Cleans Up(思维)
B. Ohana Cleans Uptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOhana Matsumae is trying to clean a room原创 2016-04-22 08:39:44 · 291 阅读 · 0 评论 -
【CodeForces】557A - Ilya and Diplomas(水)
A. Ilya and Diplomastime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSoon a school Olympiad in Informatics w原创 2016-04-22 09:01:10 · 349 阅读 · 0 评论 -
【LightOJ】1294 - Positive Negative Sign
1294 - Positive Negative Sign PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBGiven two integers: n and m and n is原创 2016-06-13 17:33:39 · 310 阅读 · 0 评论 -
【杭电oj】2087 - 剪花布条
点击打开题目剪花布条Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14828 Accepted Submission(s): 9396Problem Description一块花布条,原创 2016-06-14 16:45:33 · 591 阅读 · 0 评论 -
【CodeForces】653A - Bear and Three Balls(计数)
点击打开题目A. Bear and Three Ballstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a little p原创 2016-06-14 18:49:21 · 385 阅读 · 0 评论 -
【CodeForces】667A - Pouring Rain(数学)
题目链接:点击打开链接A. Pouring Raintime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA lot of people in Berland原创 2016-05-26 19:49:40 · 406 阅读 · 0 评论 -
【CodeForces】669A - Little Artem and Presents(找规律)
题目链接:点击打开题目A. Little Artem and Presentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Artem原创 2016-05-26 13:22:13 · 525 阅读 · 0 评论 -
大数 a+b 和 a-b
问题 A: a+b和a-b时间限制: 1 Sec 内存限制: 128 MB提交: 27 解决: 10[提交][状态][讨论版]题目描述给你两个数a和b,让你计算a和b的和或者差。输入有t组数据,每组数据输入一个正数a,接着输入一个符号('+'或者'-'),再输入一个正数b。注意:a和b很大,用int或者long long 是不够存的。原创 2016-03-27 12:20:39 · 545 阅读 · 0 评论 -
【杭电oj】2544 - 最短路(dijkstra)
最短路Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 48934 Accepted Submission(s): 21547Problem Description在每年的校赛里,所有进入决赛的同学都会获原创 2016-03-28 21:51:03 · 480 阅读 · 0 评论 -
【杭电oj】1998 - 奇数阶幻方(幻方)
奇数阶魔方Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3773 Accepted Submission(s): 2062Problem Description一个 n 阶方阵的元素是1,2,...,原创 2016-04-10 12:40:45 · 1395 阅读 · 0 评论 -
【杭电oj】1220 - Cube(数学水题)
CubeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1768 Accepted Submission(s): 1402Problem DescriptionCowl is good at solvi原创 2016-04-10 12:46:49 · 823 阅读 · 0 评论 -
【CodeForces】#621A - Wet Shark and Odd and Even(水)
A. Wet Shark and Odd and Eventime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday, Wet Shark is given n i原创 2016-05-25 19:57:12 · 549 阅读 · 0 评论 -
【CodeForces】Round #345 (Div. 2) A. Joysticks(水)
A. Joysticks题目连接:http://www.codeforces.com/contest/651/problem/ADescriptionFriends are going to play console. They have two joysticks and only one charger for them. Initially first joy原创 2016-03-19 20:24:46 · 350 阅读 · 0 评论 -
【CodeForces】670A - Holidays(数学)
题目链接:点击打开题目A. Holidaystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn the planet Mars a year lasts原创 2016-05-25 23:22:00 · 510 阅读 · 0 评论 -
【Codeforces Round】351A - Bear and Game(水)
A. Bear and Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBear Limak likes watching sports on TV. He原创 2016-05-08 00:22:24 · 426 阅读 · 0 评论 -
【CodeForces】624A - Save Luke(数学小问题)
点击打开题目A. Save Luketime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLuke Skywalker got lock原创 2016-06-15 07:50:05 · 334 阅读 · 0 评论 -
【杭电oj】2081 - 手机短号(水)
点击打开题目手机短号Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 26005 Accepted Submission(s): 15881Problem Description大家都知道原创 2016-06-30 19:07:48 · 1085 阅读 · 0 评论 -
【CodeForces】660A - Co-prime Array(水)
点击打开题目A. Co-prime Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of n原创 2016-08-22 16:17:42 · 471 阅读 · 0 评论 -
【CodeForces】716A - Crazy Computer(水)
点击打开题目A. Crazy Computertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZS the Coder is coding on a原创 2016-09-18 11:53:28 · 701 阅读 · 0 评论 -
【51Nod】1344 - 走格子(水)
题目链接:点击打开链接1344 走格子基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注有编号1-n的n个格子,机器人从1号格子顺序向后走,一直走到n号格子,并需要从n号格子走出去。机器人有一个初始能量,每个格子对应一个整数A[i],表示这个格子的能量值。如果A[i] > 0,机器原创 2016-10-19 21:42:03 · 429 阅读 · 0 评论 -
【HihoCoder】1283 - hiho密码(水)
题目链接:点击打开链接1283 : hiho密码时间限制:10000ms单点时限:1000ms内存限制:256MB描述小Ho根据最近在密码学课上学习到的知识,开发出了一款hiho密码,这款密码的秘钥是这样生成的:对于一种有N个字母的语言,选择一个长度为M的单词;将组成这个单词的所有字母按照顺序不重复的写出(即遇到相同字母时原创 2016-11-01 22:03:49 · 451 阅读 · 0 评论 -
【51Nod】1283 - 最小周长(水)
题目链接:点击打开链接1283 最小周长题目来源: Codility基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注一个矩形的面积为S,已知该矩形的边长都是整数,求所有满足条件的矩形中,周长的最小值。例如:S = 24,那么有{1 24} {2 12} {3 8} {原创 2016-11-19 14:23:28 · 541 阅读 · 0 评论 -
【51Nod】1087 - 1 10 100 1000 问题(水)
题目链接:点击打开链接1087 1 10 100 1000题目来源: Ural 1209基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注1,10,100,1000...组成序列1101001000...,求这个序列的第N位是0还是1。Input原创 2016-11-19 16:26:19 · 472 阅读 · 0 评论 -
【51Nod】1080 - 两个数的平方和(数论)
题目链接:点击打开链接1080 两个数的平方和基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注给出一个整数N,将N表示为2个整数i j的平方和(i <= j),如果有多种表示,按照i的递增序输出。例如:N = 130,130 = 3^2 + 11^2 = 7^2原创 2016-11-19 17:40:19 · 458 阅读 · 0 评论 -
【UESTC】1422 - Sum Kind Of Problem(水)
题目链接:点击打开链接就是求等差数列的各种和。代码如下:#includetypedef long long LL;int main() { int T; scanf("%d",&T); while(T--) { LL k,n; scanf("%lld %lld",&k,&n); printf("%lld %lld %lld %lld\n",k,n*(n+1原创 2016-12-05 21:31:35 · 357 阅读 · 0 评论 -
【PAT】甲级1009 - Product of Polynomials(多项式乘法)
题目链接:点击打开题目还记得天梯赛中的多项式除法,应该马上就做到了。这道题直接用两个vector乘到数组里,然后输出就行了。代码如下:#include<queue>#include<cmath>#include<stack>#include<cstdio>#include<vector>#include<cstring>#include<iostream>#include<algori原创 2017-07-19 20:58:44 · 428 阅读 · 0 评论 -
【PAT】甲级1011 - World Cup Betting(水)
题目链接:点击打开题目这道题本来是没什么可贴博客的,就是读题那个65%那一点不知道什么意思,但是按照给的例子跑了一遍,并没有什么问题,还是水题。代码如下:#include<queue>#include<cmath>#include<stack>#include<cstdio>#include<vector>#include<cstring>#include<iostream>#incl原创 2017-07-20 15:42:18 · 285 阅读 · 0 评论 -
【51Nod】1182 - 完美字符串(贪心)
点击打开题目1182 完美字符串题目来源: Facebook Hacker Cup选拔基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注约翰认为字符串的完美度等于它里面所有字母的完美度之和。每个字母的完美度可以由你来分配,不同字母的完美度不同,分别对应一个1-26之间的原创 2016-08-16 20:14:10 · 419 阅读 · 0 评论 -
【CodeForces】612B - HDD is Outdated Technology(思维)
点击打开题目B. HDD is Outdated Technologytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputHDD hard drives原创 2016-07-21 20:37:38 · 378 阅读 · 0 评论 -
【杭电oj】5477 - A Sweet Journey(水)
点击打开题目A Sweet JourneyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 773 Accepted Submission(s): 405Problem Description原创 2016-07-07 11:00:32 · 388 阅读 · 0 评论 -
【杭电oj】2803 - The MAX(水)
点击打开题目The MAXTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2340 Accepted Submission(s): 1029Problem DescriptionGivi原创 2016-07-19 15:56:39 · 342 阅读 · 0 评论 -
【杭电oj】2078 - 复习效率(水)
点击打开题目复习时间Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6912 Accepted Submission(s): 5112Problem Description为了能过个好年原创 2016-06-26 13:41:27 · 1038 阅读 · 0 评论 -
【杭电oj】2085 - 核反应堆(数学)
点击打开题目核反应堆Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14588 Accepted Submission(s): 6567Problem Description某核反应堆有原创 2016-07-19 20:41:00 · 580 阅读 · 0 评论 -
【CodeForces】598A - Tricky Sum(计数)
点击打开题目A. Tricky Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem you are to calcu原创 2016-07-21 20:13:30 · 518 阅读 · 0 评论 -
【CodeForces】599A - Patrick and Shopping(枚举)
点击打开题目A. Patrick and Shoppingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday Patrick waits fo原创 2016-07-21 20:15:41 · 437 阅读 · 0 评论