Codeforces
语海与冰
好久不见
展开
-
CodeForces 864
Akatsuki原创 2017-09-29 12:29:57 · 349 阅读 · 0 评论 -
CodeForces 1016C-Vasya And The Mushrooms(前后缀+dp)
Vasya's house is situated in a forest, and there is a mushroom glade near it. The glade consists of two rows, each of which can be divided into n consecutive cells. For each cell Vasya knows how fast ...原创 2018-08-20 14:44:53 · 244 阅读 · 0 评论 -
CodeForces - 1027(div2)
A. Palindromic Twist题意:每个字母都会变成它的ASCII值+1或者-1的情况(不可能不变化),问有没有一种可能的变化使得最后的串为回文串?思路:从中间向两边遍历+判断#include<iostream>#include<cstdio>#include<cstring>#include<stack>#inclu...原创 2018-08-23 10:38:43 · 238 阅读 · 0 评论 -
CodeForces - 960B- Minimize the error(思维--优先队列)
You are given two arrays A and B, each of size n. The error, E, between these two arrays is defined . You have to perform exactly k1 operations on array A and exactly k2 operations on array B. In one ...原创 2018-04-13 16:49:07 · 334 阅读 · 0 评论 -
CodeForces - 961B- Lecture Sleep(思维)
Your friend Mishka and you attend a calculus lecture. Lecture lasts n minutes. Lecturer tells ai theorems during the i-th minute.Mishka is really interested in calculus, though it is so hard to stay...原创 2018-04-13 16:35:03 · 545 阅读 · 0 评论 -
CodeForces 919
CodeForces 919A Supermarket 题目链接题意:一个苹果a/b元,要买m个,问花费的最小钱数(结果保留8位小数)思路:找a/b最小的即可。#include<iostream>#include<cstdio>#include<cstdlib>#include<cstring>#include<s...原创 2018-02-08 14:29:37 · 439 阅读 · 0 评论 -
CodeForces 429B Working out(四角递推)
DescriptionSummer is coming! It’s time for Iahub and Iahubina to work out, as they both want to look hot at the beach. The gym where they go is a matrix a with n lines and m columns. Let number a[i]原创 2018-01-30 11:50:59 · 335 阅读 · 0 评论 -
Codeforces 899
Akatsuki原创 2017-12-19 08:26:45 · 409 阅读 · 0 评论 -
Codeforces 898
Akatsuki原创 2017-12-18 11:20:01 · 556 阅读 · 0 评论 -
Codeforces 897
Akatsuki原创 2017-12-03 00:34:44 · 377 阅读 · 0 评论 -
CodeForces - 893
Akatsuki原创 2017-12-01 10:26:07 · 456 阅读 · 0 评论 -
CodeForces 868
Akatsuki原创 2017-10-21 13:30:35 · 349 阅读 · 0 评论 -
Codeforces 870
Akatsuki原创 2017-10-17 16:55:28 · 465 阅读 · 0 评论 -
codeforces 1029(A-D)
div3的题比div2都要难了吗......比赛那天是晚上11点,困的不行,做了几分钟A题没A掉一怒之下就去睡觉了,昨晚又抓过来重新做了下,div3体验极差。。A Many Equal Substrings 题意:给一个串t,构造一个尽可能长度小字符串,使得这个字符串里有k个子串t一开始WA在6组,后来想了想,有一种情况忘了考虑4 3aaaaput:aaaaaa...原创 2018-08-29 09:29:55 · 865 阅读 · 0 评论