codeforces
文章平均质量分 82
xgogoforit
这个作者很懒,什么都没留下…
展开
-
cf337div2 B
题意解释来自卿神…….我大概写点自己的收获 题目链接:http://codeforces.com/contest/610/problem/B你有n种颜色,然后每种颜色有ai个,你需要依次涂色。 比如第一个你涂x,那么下一个就得涂x+1,然后x+2….. 问你最多能涂多少个格子。#include<bits/stdc++.h>using namespace std;int Min=1e9+5,原创 2015-12-29 13:05:43 · 447 阅读 · 0 评论 -
CF 346 B vector<pair> s[100]
题目连接http://codeforces.com/contest/659/problem/BDescriptionVery soon Berland will hold a School Team Programming Olympiad. From each of the m Berland regions a team of two people is invited to participa原创 2016-04-10 10:52:47 · 281 阅读 · 0 评论 -
CF IndiaHack B 深度优先搜索
题目连接http://codeforces.com/contest/653/problem/BDescriptionLimak is a little polar bear. Polar bears hate long strings and thus they like to compress them. You should also know that Limak is so young th原创 2016-03-22 20:26:01 · 315 阅读 · 0 评论 -
CF Edu 15 B 求和二的幂次
题目连接http://codeforces.com/contest/702/problem/BDescriptionYou are given n integers a1, a2, …, an. Find the number of pairs of indexes i, j (i < j) that ai + aj is a power of 2 (i. e. some integer x exi原创 2016-07-30 11:28:29 · 814 阅读 · 0 评论 -
Cf Edu 15 C 城市与信号塔[二分]
题目连接http://codeforces.com/contest/702/problem/CDescriptionYou are given n points on the straight line — the positions (x-coordinates) of the cities and m points on the same line — the positions (x-coor原创 2016-07-31 00:32:56 · 728 阅读 · 0 评论 -
Cf 364div2 D[数学公式推导]
题目连接http://codeforces.com/contest/701/problem/DDescriptionOn vacations n pupils decided to go on excursion and gather all together. They need to overcome the path with the length l meters. Each of the原创 2016-08-01 20:54:30 · 705 阅读 · 0 评论 -
Cf 364div2 [C.尺取法]
codeforces 364 Solutions For A B C原创 2016-08-01 14:11:33 · 220 阅读 · 0 评论 -
Cf 362div2 B[Java高精度,scanf数据读入]
题目连接http://codeforces.com/contest/697/problem/BSample Input8.549e2Sample Output854.9题意给出一个科学记数法表示的数,将其转换为一般的数并输出。题解输出没有前导0,没有后缀0,0.0e0这种数据输出是0。其实说了这么多Java分分钟搞定。。。。我特么也是服了,用c写了半天WA得都要哭了,c的代码就不上了。值得一提用c对原创 2016-08-05 16:33:59 · 461 阅读 · 0 评论 -
Cf 362div2 C [map暴力,思维能力]
题目连接http://codeforces.com/contest/697/problem/CDescriptionBarney lives in NYC. NYC has infinite number of intersections numbered with positive integers starting from 1. There exists a bidirectional roa原创 2016-08-06 10:34:36 · 339 阅读 · 0 评论 -
Cf 363div2 A B C
A题目链接http://codeforces.com/contest/699/problem/A题意有些粒子向左飞,有些粒子向右飞,问最先碰到一起的粒子的时间。题解虽然是水题,但还是考虑漏了一些东西,WA了两发…只有RL这种情况才可以碰到,R遇到R要更新,L遇到R要更新。[自己蠢了,只需要寻找相邻的RL组合即可,比较取最小值]代码#include<bits/stdc++.h>using names原创 2016-08-03 01:31:31 · 305 阅读 · 0 评论 -
Cf 361div2 C [二分]
题目连接http://codeforces.com/contest/689/problem/CDescriptionBad news came to Mike’s village, some thieves stole a bunch of chocolates from the local factory! Horrible!Aside from loving sweet things, thie原创 2016-08-30 23:49:48 · 446 阅读 · 0 评论 -
CF Edu10 A
题目连接http://codeforces.com/contest/652/problem/ADescriptionThe 9-th grade student Gabriel noticed a caterpillar on a tree when walking around in a forest after the classes. The caterpillar was on the he原创 2016-03-27 22:48:11 · 229 阅读 · 0 评论 -
CF 343div2 B 暴力
题目连接http://codeforces.com/contest/629/problem/BDescriptionFamil Door wants to celebrate his birthday with his friends from Far Far Away. He has n friends and each of them can come to the party in a spe原创 2016-03-22 22:21:40 · 360 阅读 · 0 评论 -
cf339div2B
题目连接:http://codeforces.com/contest/614/problem/BDescriptionIt’s the year 4527 and the tanks game that we all know and love still exists. There also exists Great Gena’s code, written in 2016. The proble原创 2016-01-18 15:47:40 · 402 阅读 · 0 评论 -
cf337div2 C
题目链接:http://codeforces.com/contest/610/problem/C 还是看的卿神的题解…照旧#include<bits/stdc++.h>using namespace std;int dp[1000][1000];int main(int argc, char const *argv[]){ dp[0][0]=1; int n; sca原创 2015-12-30 21:52:05 · 1312 阅读 · 0 评论 -
cfgoodbye2015 B
题目连接:http://codeforces.com/contest/611/problem/BDescription:B. New Year and Old Property time limit per test 2 seconds memory limit per test 256 megabytes input standard input原创 2016-01-03 19:25:38 · 363 阅读 · 0 评论 -
CF341A
题目连接http://codeforces.com/contest/621/problem/ADescriptionToday, Wet Shark is given n integers. Using any of these integers no more than once, Wet Shark wants to get maximum possible even (divisible by原创 2016-02-02 00:31:14 · 239 阅读 · 0 评论 -
CF322 C 优先队列+贪心
题目连接http://codeforces.com/contest/581/problem/CDescriptionPetya loves computer games. Finally a game that he’s been waiting for so long came out!The main character of this game has n different skills,原创 2016-03-17 21:19:25 · 338 阅读 · 0 评论 -
CF345div2B
题目连接http://codeforces.com/contest/651/problem/BDescriptionThere are n pictures delivered for the new exhibition. The i-th painting has beauty ai. We know that a visitor becomes happy every time he pass原创 2016-03-07 23:28:47 · 385 阅读 · 0 评论 -
CFdiv2C
题目连接http://codeforces.com/contest/651/problem/CDescriptionWatchmen are in a danger and Doctor Manhattan together with his friend Daniel Dreiberg should warn them as soon as possible. There are n watchm原创 2016-03-08 23:01:53 · 304 阅读 · 0 评论 -
CF IndiaHack A 水题
题目连接http://codeforces.com/contest/653/problem/ADescriptionLimak is a little polar bear. He has n balls, the i-th ball has size ti.Limak wants to give one ball to each of his three friends. Giving gifts原创 2016-03-22 20:20:36 · 264 阅读 · 0 评论 -
CF Edu9 A long long
题目连接http://codeforces.com/contest/632/problem/ADescriptionGrandma Laura came to the market to sell some apples. During the day she sold all the apples she had. But grandma is old, so she forgot how man原创 2016-03-22 20:33:31 · 243 阅读 · 0 评论 -
CF 342div2 C 贪心
题目连接http://codeforces.com/contest/625/problem/CDescriptionPeople do many crazy things to stand out in a crowd. Some of them dance, some learn by heart rules of Russian language, some try to become an o原创 2016-03-22 20:46:02 · 251 阅读 · 0 评论 -
Cf div2 338 D [费马小定理]
题目连接http://codeforces.com/contest/615/problem/DDescriptionAyrat has number n, represented as it’s prime factorization pi of size m, i.e. n = p1·p2·…·pm. Ayrat got secret information that that the produ原创 2016-09-08 13:17:57 · 406 阅读 · 0 评论