Sizaif's 小屋

一个程序猿的小黑屋

Educational Codeforces Round 52 (Rated for Div. 2) C: Make It Equal(思维)

C. Make It Equal time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There is a to...

2018-10-12 10:13:38

阅读数:26

评论数:0

Codeforces Round #487 (Div. 2) @989-A,B,C

A题:http://codeforces.com/contest/989/problem/A满足ABC三个相邻就可以.#include <bits/stdc++.h> typedef long long ll; const int MAXN = 1e5 ...

2018-06-15 18:04:20

阅读数:42

评论数:0

Codeforces Educational Codeforces Round 45 A-D

A:http://codeforces.com/contest/990/problem/A让 n 是 m 的整数倍,  的最小 花费 是多少#include <bits/stdc++.h> typedef long long ll; const int...

2018-06-11 20:38:28

阅读数:52

评论数:0

Southeast USA ICPC 2017 | GYM -101617 J:Treasure Map (DP or BFS)

Treasure Map时间限制: 1 Sec  内存限制: 128 MB提交: 128  解决: 25[提交][状态][讨论版][命题人:admin]题目描述You have found a treasure map! The map leads you to several gold mine...

2018-04-29 13:11:00

阅读数:105

评论数:0

Codeforces 794C. Naming Company (博弈)

题目传送门:http://codeforces.com/problemset/problem/794/CC. Naming Companytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inpu...

2018-04-24 17:48:16

阅读数:55

评论数:0

ACM ICPC 2008–2009, NEERC, Northern Subregional Contest: B. Billboard

题目链接:点击打开链接B 题思路查询 暴力 一定是会超时的,  所以肯定用树状数组或者 线段树进行 logn 级别的查询。但是题目又想要求满足, 在满足的情况下尽可能的选择前面,  用线段树 维护, 得到的就是答案;【code】#include <iostream&a...

2018-04-10 12:55:29

阅读数:40

评论数:0

ACM ICPC 2008–2009, NEERC, Northern Subregional Contest :I题: Important Wires

题目链接:点击打开链接I  题题意输出为真的情况   :  A | B | C | ~C[code]#include <iostream> #include <bits/stdc++.h> typedef lo...

2018-04-10 12:49:55

阅读数:31

评论数:0

ACM ICPC NEERC, Northern Subregional Contest K:Key to Success

题目链接:https://odzkskevi.qnssl.com/bf224a6abe30b2581b0f33f6bc394c79?v=1523035391【K题思路;】    模拟凑数问题,如果前缀和 小于后面的数 -1  那么说明 中间某个数是凑不出来的,    就需要加上sum+1  这个数...

2018-04-10 12:46:20

阅读数:52

评论数:0

Codeforces 702 B Powers of Two

B. Powers of Twotime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given n integers a1, a2...

2018-02-28 20:00:52

阅读数:65

评论数:0

Codeforces Round #462 (Div. 2) D-A Twisty Movement (枚举)

C. A Twisty Movementtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA dragon symbolizes wisdom, ...

2018-02-22 19:29:11

阅读数:185

评论数:1

Codeforces Round #459 (Div. 2) C-The Monster (贪心)

C. The Monstertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs Will is stuck in the Upside Dow...

2018-02-17 21:30:09

阅读数:86

评论数:0

Codeforeces 626D Jerry's Protest (思维 +DP)

D. Jerry's Protesttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrew and Jerry are playing ...

2018-02-11 12:36:46

阅读数:80

评论数:0

Codeforces Round #460 (Div. 2) A-D 题解

A: A. Supermarket time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard...

2018-02-01 10:52:58

阅读数:172

评论数:0

Codeforces 689D -Friends and Subsequences (RMQ查询-> ST表+二分)

D. Friends and Subsequences time limit per test 2 seconds memory limit per test 512 megabytes input standard input output sta...

2018-01-31 14:48:45

阅读数:89

评论数:0

Codeforces 660C Hard Process (er)

C. Hard Process time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...

2018-01-28 20:19:31

阅读数:50

评论数:0

Codeforces 69E Subsegments (SET/线段树)

E. Subsegments time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...

2018-01-23 10:24:36

阅读数:167

评论数:0

Codeforces 25D-Roads not only in Berland(并查集)

D. Roads not only in Berland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output st...

2018-01-23 10:17:50

阅读数:124

评论数:0

Codeforces - 862B Mahmoud and Ehab and the bipartiteness (二分图)

B. Mahmoud and Ehab and the bipartiteness time limit per test 2 seconds memory limit per test 256 megabytes input standard input ...

2018-01-22 11:17:05

阅读数:87

评论数:0

CodeForces - 707C Pythagorean Triples (数学)

C. Pythagorean Triples time limit per test 1 second memory limit per test 256 megabytes input standard input output standard ...

2018-01-21 19:51:17

阅读数:87

评论数:0

CodeForces 761D Dasha and Very Difficult Problem (数学分析,思维)

D. Dasha and Very Difficult Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input out...

2018-01-21 11:34:04

阅读数:91

评论数:0

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