codeforces
文章平均质量分 76
立華奏
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #240 (Div. 2)
C. Mashmokh and Numberstime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputIt's holiday. Mashmokh and his b原创 2014-04-08 21:03:32 · 497 阅读 · 0 评论 -
Codeforces Round #327 (Div. 2)
A. Wizards’ Duel 题意:一维坐标系,两个点以不同速度相向而行,其中一个点在原点,求相遇时相对于原点的距离。 思路:签到题。/**************************************************** >Created Date: 2015-10-25-16.56.50 >My Soul, Your Beats!***************原创 2015-10-31 10:39:15 · 407 阅读 · 0 评论 -
Codeforces Round #319 (Div. 2) B C D
这场题目挺水的。。感觉半小时能出3题。。可惜没有注册。。B. Modulo Sum题意:给100w个数,问是否存在子序列使得整个子序列的和能够整除m。思路:将所有数对m取模,然后问题就转化成了一个多重背包问题,数比较多需要优化一下。不知道为什么过的人这么少。。#include #include int nums[100000], mod[3010], cnt;bool d原创 2015-09-11 13:34:57 · 1058 阅读 · 0 评论 -
Codeforces Round #305 Mike and Feet(单调栈)
B. Mike and Feettime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike is the president of country What-The-F原创 2015-05-31 11:24:59 · 532 阅读 · 0 评论 -
Codeforces Round #305 C. Mike and Frog
C. Mike and Frogtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike has a frog and a flower. His frog is n原创 2015-05-27 19:45:25 · 630 阅读 · 0 评论 -
Codeforces Round #290 (Div. 2) C. Fox And Names 拓扑排序
C. Fox And Namestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel is going to publish a paper on FO原创 2015-02-13 20:28:46 · 578 阅读 · 0 评论 -
Codeforces Round #243 (Div. 2) B C
B. Sereja and Mirroringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's assume that we are given a mat原创 2014-04-28 19:40:43 · 532 阅读 · 0 评论 -
Coder-Strike 2014 - Round 1 D. Giving Awards
D. Giving Awardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe employees of the R1 company often spend原创 2014-04-19 21:57:07 · 561 阅读 · 0 评论 -
Codeforces Round #226 (Div. 2) B、C解题报告
作为一只菜鸡,现在只能慢慢刷abc才能把水平提上去啊。B题链接:http://codeforces.com/contest/385/problem/B思路:从起点到bear的b的字符数 * 最末到这个bear的r的字符数, 之后起点更新为这个bear的e的下标。纯数学题 ,没什么好讲的,只能自己去领悟。AC代码:#include#includemain(){ int原创 2014-01-26 16:51:04 · 817 阅读 · 0 评论 -
Codeforces Round #326 (Div. 1) B Duff in Beach
B.Duff in Beach 题意:有一个长为l的序列B是由一个长度为n的序列A循环得到的,即bi=ai mod nb_i = a_{i \ mod \ n},现在定义一个新的序列C,C的生成条件有三个: 1.C中每个元素都在B中,并且C中的每个元素都在不同的循环节里(即C中两个相邻的元素在B中的距离不会超过2n,不会低于n); 2.C的长度超过k; 3.C不递减。 问C有多少种,答案模原创 2015-11-08 18:19:53 · 553 阅读 · 0 评论
分享