![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
进入504后的比赛
ZZ --瑞 hopeACMer
WA就完事了
展开
-
G - Apple Tree POJ - 2486
Wshxzt is a lovely girl. She likes apple very much. One day HX takes her to an apple tree. There are N nodes in the tree. Each node has an amount of apples. Wshxzt starts her happy trip at one node. S...原创 2019-03-06 19:25:56 · 133 阅读 · 0 评论 -
A - Berzerk CodeForces - 786A
Rick and Morty are playing their own version of Berzerk (which has nothing in common with the famous Berzerk game). This game needs a huge space, so they play it with a computer.In this game there a...原创 2019-03-09 15:14:56 · 269 阅读 · 0 评论 -
D - 过山车
RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partner,Grass只愿意和linle或LL做partner,PrincessSnow愿意和水域浪子或伪酷儿做partner。考虑...原创 2019-03-09 16:40:32 · 369 阅读 · 0 评论 -
A - A Very Hard Question Gym - 101502A
Husam was preparing himself for the Graduate Record Examinations (GRE). Yesterday, he read a very hard question, but he could not find a solution for it, so he did not sleep all the night.Husam deci...原创 2019-03-04 20:03:23 · 253 阅读 · 0 评论 -
B - Linear Algebra Test Gym - 101502B
Dr. Wail is preparing for today's test in linear algebra course. The test's subject is Matrices Multiplication.Dr. Wail has n matrices, such that the size of the ith matrix is (ai × bi), where ai is...原创 2019-03-04 20:07:58 · 129 阅读 · 0 评论 -
D - Dice Game Gym - 101502D
#include <iostream>#include <queue>#include <bits/stdc++.h>#include <string.h>using namespace std;struct node{ int x,y,z;};node n,m;int flag[100010];void bfs(i...原创 2019-03-04 20:11:55 · 181 阅读 · 0 评论 -
E - The Architect Omar Gym - 101502E
Architect Omar is responsible for furnishing the new apartments after completion of its construction. Omar has a set of living room furniture, a set of kitchen furniture, and a set of bedroom furnitur...原创 2019-03-04 20:15:10 · 145 阅读 · 0 评论 -
F - Building Numbers Gym - 101502F
In this problem, you can build a new number starting from 1, by performing the following operations as much as you need:Add 1 to the current number. Add the current number to itself (i.e. multiply ...原创 2019-03-04 20:16:52 · 151 阅读 · 0 评论 -
H - Eyad and Math Gym - 101502H
Eyad was given a simple math problem, but since he is very bad at math he asked you to help him.Given 4 numbers, a, b, c, and d. Your task is to find whether ab is less than cd or not.It is guaran...原创 2019-03-04 20:19:13 · 88 阅读 · 0 评论 -
D - Courses HDU - 1083
Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that sa...原创 2019-03-09 15:08:17 · 90 阅读 · 0 评论 -
G - Bear and Friendship Condition CodeForces - 791B
Bear Limak examines a social network. Its main functionality is that two members can become friends (then they can talk with each other and share funny pictures).There are n members, numbered 1 thro...原创 2019-03-09 15:03:10 · 205 阅读 · 0 评论 -
B - Decode the Mad man UVA - 10222
此题暴力打表#include <iostream>#include <bits/stdc++.h>#include <string.h>using namespace std;int main(){ char s[100010]; int len,i; gets(s); len=strlen(s); fo...原创 2019-03-06 19:31:28 · 125 阅读 · 0 评论 -
D - Fourth Point !! UVA - 10242
题意:给出两条边的起止点,注意顺序可不同,给出的4个点占据了3个点,即4个点有2个是一样的,根据信息求出第4个点的坐标。题解:由于起止点不知,所以可考虑所有情况,找出一种情况的解决办法,再将其他情况通过交换点的坐标来得到一般情况的解。#include <iostream>#include <bits/stdc++.h>using namespace std;...原创 2019-03-06 19:34:48 · 152 阅读 · 0 评论 -
F - Candle Box UVA - 13161
题意:姐姐从4岁开始放蜡烛,并且每年放的个数为岁数大小,而弟弟从3岁开始。给出姐姐和弟弟的年龄差距,姐姐的蜡烛个数,弟弟的蜡烛个数。由于弟弟把一些蜡烛放入了姐姐的盒子里,要求输出姐姐需要拿走多少蜡烛才能获得正确的蜡烛个数。感受:打比赛时思维不清晰,导致思维定势,只认为一年只放1个,怎么想也想不对。所以以后思维要更加活跃。#include <iostream>using...原创 2019-03-06 19:35:52 · 123 阅读 · 0 评论 -
Gym-101502J Boxes Game (dp)
Ibraheem and Husam are playing a game with group of boxes, lined next to each other on a straight line, such that each box contains a card with some value written on it. Ibraheem and Husam already kn...转载 2019-03-06 20:15:10 · 143 阅读 · 0 评论 -
F - Divisibility POJ - 1745
Consider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithmetical expressions that evaluate to different values. Let us,...原创 2019-03-09 14:59:06 · 94 阅读 · 0 评论 -
C - A mid-summer night's dream. UVA - 10057
此题找中位数#include <iostream>#include <bits/stdc++.h>using namespace std;int main(){ int a,i,k,n1,n2; int n[1000010]; while(cin >> a) { for(i=1; i<=a; ...原创 2019-03-07 21:53:07 · 123 阅读 · 0 评论 -
E - Bribing Eve UVA - 13160
Bribing EveEve works at a magazine that does product reviews and publishesrecommendations to consumers. They are working on anew mobile phones review and have decided on two reproducibletests that...转载 2019-03-07 21:53:22 · 213 阅读 · 0 评论 -
E - Alignment POJ - 1836
In the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of the captain. The captain is not satisfied with the way his sold...原创 2019-03-09 15:01:40 · 151 阅读 · 0 评论 -
K - Malek and Summer Semester Gym - 101502K
Malek registered n courses for the summer semester. Malek has a success rate m, which means he has to succeed at least in ceil(n × m) courses out of the n courses, in order to consider the summer seme...原创 2019-03-04 20:20:10 · 235 阅读 · 0 评论