胡搞
_大太阳_
有梦想就去追
展开
-
light oj 1100 - Again Array Queries
http://lightoj.com/volume_showproblem.php?problem=11001100 - Again Array QueriesGiven an array with n integers, and you are given two indices i and j (i ≠ j) in the array. You have to find two原创 2015-10-26 21:22:50 · 344 阅读 · 0 评论 -
hdu 5671 Matrix(矩阵行列交换)
http://acm.hdu.edu.cn/showproblem.php?pid=56711 x y: 交换矩阵MM的第xx行和第yy行(1 \leq x,y \leq n)(1≤x,y≤n);2 x y: 交换矩阵MM的第xx列和第yy列(1 \leq x,y \leq m)(1≤x,y≤m);3 x y: 对矩阵MM的第xx行的每一个数加上y(1 \leq x \leq n,1原创 2016-04-23 09:00:21 · 1019 阅读 · 3 评论 -
CodeForces 641C Little Artem and Dance (模拟)
http://codeforces.com/problemset/problem/641/C题意:有n个男生和n个女生,各自形成一个环,刚开始时男女编号从1-n一一对应,之后有q次操作1:x,如果x为正数,将所有男生按顺时针移动x位,若x为负,将所有男生按逆时针移动abs(x)位;2:将1号2号男生调换....i号和i+1号男生调换,n-1号和n号男生调换思路:用两个变量odd,e原创 2016-05-06 10:07:57 · 651 阅读 · 0 评论 -
CodeForces 540B School Marks
http://codeforces.com/problemset/problem/540/B School MarksLittle Vova studies programming in an elite school. Vova and his classmates are supposed to write n progress tests, f原创 2015-11-18 21:33:20 · 367 阅读 · 0 评论 -
zzuli 1812: sort
http://acm.zzuli.edu.cn/problem.php?id=18121812: sortDescription想必大家对排序已经很熟悉了,但是spy好像对排序不太熟悉,有一天,他看到这样一个关于排序的题目:对于 k 个用空格分隔开的整数,依次为 n1, n2 … nk。请将所有下标不能被 3 但可以被 2 整除的数在这些数字原有的位置上进行升序排列原创 2015-12-08 17:43:59 · 470 阅读 · 0 评论 -
CodeForces 557B Pasha and Tea
http://codeforces.com/contest/557/problem/BB. Pasha and TeaPasha decided to invite his friends to a tea party. For that occasion, he has a large teapot with the capacity of w milliliters原创 2016-01-25 09:27:50 · 299 阅读 · 0 评论 -
gdutcode Stubird与他的女粉丝
http://gdutcode.sinaapp.com/problem.php?cid=1025&pid=3Stubird与他的女粉丝Description集训队里不仅学习氛围很好,大家相处也很融洽,有一天晚上,Cloud_x1、doubleegg、wingkou和Stubird在打锄大地,Stubird一边打牌一边在想隔天跟女粉丝见面,事情是这样的,那天有原创 2015-12-03 20:45:35 · 853 阅读 · 0 评论 -
hdu 校赛 玩骰子
http://acm.hdu.edu.cn/contests/contest_showproblem.php?cid=638&pid=1003玩骰子Problem Description Nias与Ains都特别喜欢玩骰子,而且都自以为比对方玩得更溜。 终于有一天,他们决定用骰子来一决高下! 一般的骰子玩法已经不足以体现他们的水平了,于是他们自创了一套玩法来PK:原创 2015-11-29 20:37:20 · 919 阅读 · 0 评论 -
CodeForces 548B Mike and Fun
http://codeforces.com/problemset/problem/548/B Mike and FunMike and some bears are playing a game just for fun. Mike is the judge. All bears except Mike are standing in an n ×原创 2015-11-30 21:07:32 · 532 阅读 · 0 评论 -
CodeForces 545B Equidistant String
http://codeforces.com/problemset/problem/545/BEquidistant StringLittle Susie loves strings. Today she calculates distances between them. As Susie is a small girl after all, her strings c原创 2015-11-25 21:15:08 · 568 阅读 · 2 评论 -
zzuli 1784: Camellia的难题 (暴力)
http://acm.zzuli.edu.cn/problem.php?id=17841784: Camellia的难题Description Camellia遇到了一个问题,她无法解决所以来求助豆子,以下是豆子所理解的问题:给定1000万个点,编号1-1000万。每个点都有一个值,初始的时候均为-1,有n个操作,操作有以下五种。1 x 代表将x点更新为i,i为第几原创 2015-11-25 15:21:15 · 447 阅读 · 0 评论 -
2015长春赛 Almost Sorted Array
http://acm.hdu.edu.cn/contests/contest_showproblem.php?cid=646&pid=1006Almost Sorted ArrayProblem DescriptionWe are all familiar with sorting algorithms: quick sort, merge sort, heap sor原创 2015-11-01 15:25:39 · 848 阅读 · 0 评论 -
CodeForces 544A Set of Strings
http://codeforces.com/problemset/problem/544/ASet of StringsYou are given a string q. A sequence of k strings s1, s2, ..., sk is called beautiful, if the concatenation of these strings原创 2015-11-24 13:00:51 · 458 阅读 · 0 评论 -
多校连萌 简单的求和
http://acm.zzuli.edu.cn/problem.php?id=1783简单的求和Description 定义f(i)代表i的所有因子和(包括1和i),给定一个l,r。求f(l)+f(l+1)+...+f(r)。Input 第一行输入一个t(tOutput 每行输出一个整数,代表和。Sample Input原创 2015-11-22 15:40:01 · 547 阅读 · 0 评论 -
2014 Regionals 2014 :: Asia - ShangHai World Cup
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=94610#problem/JWorld CupDescription题意:有n个队,任何两个队之间都要进行一场比赛,胜者得a分,输着得c分,平局每队各得b分,最分排名前m得晋级,求不能晋级得最高分和能晋原创 2015-10-12 09:54:46 · 477 阅读 · 0 评论 -
hdu 5500 Reorder the Books
http://acm.hdu.edu.cn/showproblem.php?pid=5500Reorder the BooksProblem Descriptiondxy has a collection of a series of books called "The Stories of SDOI",There are n(n≤19) books in this原创 2015-10-11 18:14:37 · 426 阅读 · 0 评论 -
UVALive 6609 Minimal Subarray Length(最大子段)
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4620区间左右更新#include #include #include #include #include #include #include #include usi原创 2016-05-09 13:58:50 · 581 阅读 · 0 评论