![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
coderforce
ACpartner
风雨湖水深千尺,不及AC送我情。
展开
-
coderforce#382div2
由于水平有限,只做出了三道题。第一题:A. Ostap and Grasshopper水题,简单搜索,甚至算不上搜索,直接上代码:#include #include #include using namespace std;char s[105];int n,k;int main(){ while(scanf("%d%d",&n,&k)!=EOF){原创 2016-11-28 20:53:41 · 657 阅读 · 0 评论 -
coderforces--418div2--A.An abandoned sentiment from past
昨晚coderforces爆零。。零了,不可思议,,原因是第一题没考虑边界情况。。直接认为所有0都在最中间,被hack哭了。。第二题。。没看清题意,直接按照最简单的思路来,结果,hack。。第三题,在最后七分钟敲出来了,日哦,为什么全输出0,找了七分钟。。。一个地方下标k写成i了,,结果。。过了时间了,过后一交,218ms过,题目给了2000ms??我感觉石乐志。第一题,水。。唉#incl原创 2017-06-08 09:52:18 · 443 阅读 · 0 评论 -
coderforces--418div2 B. An express train to reveries
简单题这里被我弄复杂了,因为确实不想改我原先被hack的代码的原型了。。。最开始没看清题意,a[i]与b[i],至少有一个不同?然后,p数组只要有一个不同于a并且恰好另一个地方不同于b就行了,代码太复杂了,调试了很久。。日#include #include #include //#include <>#define siz 1005using namespace std;i原创 2017-06-08 09:57:47 · 462 阅读 · 0 评论 -
coderforces--418 div2 C. An impassioned circulation of affection
26个小写英文字母,1500的数组,询问输入的m#include #include#include#include #define maxn 300005using namespace std;int n;char ss[1505];int qu[26][1505];int dp[1505],p[1505];int tx[1505];void solve(){ f原创 2017-06-08 10:05:39 · 369 阅读 · 0 评论 -
coderforces round#420-C Okabe and Boxes
C. Okabe and Boxestime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOkabe and Super Hacker Daru are stacking原创 2017-06-26 13:40:11 · 384 阅读 · 0 评论 -
coderforces-#428三道水题
A - Arya and Bran:水题,wa了一发。题意:A给B糖果,每天可以给a[i]个,最多给8个,剩下的可以存下下来之后给。求:A给Bk个糖果最少的天数(1-n)天以内才能给。所以直接求解就好了。#include #include #include #include #define siz 100005using namespace std;int n,k;原创 2017-08-13 11:29:40 · 354 阅读 · 0 评论