mfcheer

已搬家至:www.mfcheer.com

排序:
默认
按更新时间
按访问量
RSS订阅

Codeforces Round #346 (Div. 2) ABCDE

题目:http://codeforces.com/contest/659/problems A:#include <iostream> #include <string>using namespace std;int n, a, b;int main() { wh...

2016-04-03 17:10:56

阅读数:263

评论数:0

Codeforces Round #340 (Div. 2) A B C D

http://codeforces.com/contest/617 A 尽量选择数值较大的#include <iostream> #include <stdio.h> #include <string> #include <string.h> #...

2016-01-24 15:22:25

阅读数:323

评论数:0

Codeforces Round #334 (Div. 2)

http://codeforces.com/contest/604A:#include <stdio.h> #include <iostream> #include <string.h> #include <algorithm> #include &...

2015-12-02 20:28:48

阅读数:233

评论数:0

Codeforces Round #333 (Div. 2) C. The Two Routes

题目链接:http://codeforces.com/contest/602/problem/C题意:给你一个完全图,edge是铁路或公路,火车只走铁路,汽车只公路。求使得火车汽车都从1到达n点所需的最短时间,并且两车途中不得同时到达同一点(除了n点)。解法:由于是完全图,一定有火车或汽车直接由1...

2015-11-28 19:58:03

阅读数:342

评论数:0

Codeforces Round #321 (Div. 2) ABC

题目链接:http://codeforces.com/contest/580A 求非递减区间的最大长度,递推即可B 按money值由大到小排序,求#include <iostream> #include <stdio.h> #include <string> #...

2015-09-24 10:06:12

阅读数:237

评论数:0

Codeforces Round #316 (Div. 2)

A http://codeforces.com/contest/570/problem/A 随便搞一下int n, m;long long cnt[1000];struct node { long long nb; long long sum; }res[1000],ans[1...

2015-08-20 00:55:59

阅读数:574

评论数:0

Codeforces Round #311 (Div. 2) C. Arthur and Table

C. Arthur and Table time limit per test 1 second memory limit per test 256 megabytes input standard input output standard out...

2015-08-04 10:49:57

阅读数:354

评论数:0

Codeforces Round #312 (Div. 2) C

题目链接:http://codeforces.com/contest/558/problem/C题意: 有n个瓶子,每个瓶子都有相应的水的数量,瓶子的水量可以乘2或者除2,求出最少多少步骤可以使瓶子中的所有水相等。思路: 将所有瓶子可以到达的毫升数及其步数记录起来,得到可以n个瓶子都能到达的毫...

2015-07-28 11:49:48

阅读数:410

评论数:0

Codeforces Round #312 (Div. 2) B. Amr and The Large Array

题目链接:http://codeforces.com/contest/558/problem/B题意:给你一组数字。选择一个尽量短的区间,使其包含 数组中出现次数最多的元素的全部元素,求区间起始位置代码:#include <stdio.h> #include <ctime>...

2015-07-26 21:21:25

阅读数:455

评论数:0

Codeforces Round #313 (Div. 2) ABC

A http://codeforces.com/contest/560/problem/A 判断给出的数是否能组成所有自然数。水题 int a[1010]; bool b[1000010];int main() { int n; while (scanf("%d&qu...

2015-07-23 01:19:38

阅读数:648

评论数:0

Codeforces Round #267 (Div. 2) A B C

题目链接:http://codeforces.com/contest/467 A 水 代码:#include <iostream> #include <cstdio> #include <cstring> #include <algorithm>...

2015-06-06 01:41:35

阅读数:368

评论数:0

Codeforces Round #301 C (Div. 2) 【dfs】

题目链接:http://codeforces.com/contest/540/problem/C(最近 unhappy!)题意:初始时候在一个破碎的冰块上,每次只能走到临近的四个未破碎冰块上。未破碎的冰块被踩后变为破碎。且不能在冰块上停留。踩上破碎的冰块就会掉入此坐标。问 是否可以在掉进给定的坐标...

2015-06-05 18:10:17

阅读数:337

评论数:0

Codeforces Round #296 (Div. 2) B. Error Correct System

题目链接:http://codeforces.com/contest/527/problem/B代码:#include<algorithm> #include<iostream> #include<string> #include<cstdio> #...

2015-06-05 17:16:02

阅读数:325

评论数:0

Codeforces Round #303 (Div. 2) A B C D

题目链接:http://codeforces.com/contest/545A:水 代码:#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #...

2015-06-05 17:09:33

阅读数:385

评论数:0

Codeforces Round #306 (Div. 2) A B C

题目链接:http://codeforces.com/contest/550 A 暴力一发。 代码:#include <iostream> #include <stdio.h> #include <math.h> #include <string&g...

2015-06-05 15:57:46

阅读数:626

评论数:0

Good Bye 2014 A B C

A. New Year Transportation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output stan...

2014-12-31 04:48:34

阅读数:1305

评论数:0

Codeforces Round #282 (Div. 2) A B

http://codeforces.com/contest/495 A. Digital Counter time limit per test 1 second memory limit per test 256 megabytes input standard input ...

2014-12-27 16:26:04

阅读数:829

评论数:0

Codeforces Round #284 (Div. 2)

http://codeforces.com/contest/499 A 水   A. Watching a movie time limit per test 1 second memory limit per test 256 megabytes ...

2014-12-26 19:37:27

阅读数:876

评论数:0

Codeforces Round #283 (Div. 2) A B

http://codeforces.com/contest/496 A: #include #include #include #include #include #include using namespace std; int n; int p[110]; int mai...

2014-12-24 11:46:54

阅读数:486

评论数:0

Codeforces Round #266 (Div. 2) C

http://codeforces.com/contest/466/problem/C C. Number of Ways time limit per test 2 seconds memory limit per test 256 megabytes ...

2014-12-14 21:18:06

阅读数:442

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭