好长时间没有打Codeforces了,今天被ysf拉过去打了一场.
lrd也来参(nian)加(ya)比(zhong)赛(sheng)

Problem A:

我去,这不SB题吗。。
用桶统计一下每个数出现的数目。
对位相减然后除二加起来
最后除二输出就行了。
具体为什么我也没想,直觉告诉我这么做就可以了。
然后他就pretest passed

Problem B:

for循环到k扫一遍就行了吧。
立马写了个上去
Wrong answer on pretest 2
没开long long !!!!
换了long long交上去
Wrong answer on pretest 4
我去、、、、、、、、、、、、、、、、、、、
突然发现ans是int却用I64d输出。。。
改成I64d后pretest passed

Problem C:

额... ...
读了半天题没读懂在说什么...
后来才明白是discount前至少买k个,要求买到所有的东西并最小化代价。
然后用priority_queue把序列做了个差扔了进去
pretest passed

Problem D:

恩。。。
二分+O(n)判定!
裸上!
Wrong answer on pretest 7
我去.............................
我不会写错啊。。。。
赶紧回去看程序,快速查错...!!!!!!!
二分的左边界应该是0 !!!!!!!
把1改成了0,提交
pretest passed

Problem E:

。。。
这明显是考码力啊。
枚举'?'的每个二进制位分别计算出为0为1的时候最终二进制位的值
然后分别更新两个答案就行了
码了半天,样例,过了,提交
Wrong answer on pretest 9
。。。 、、、 ××× ¥¥¥ &&&
哎呀。。。数组忘开大了。。。
开大数组
pretest passed

Problem F:

删掉一颗Trie树的一层,,,,求最少的剩余点数???
贪心啊,dfs了一发去贪心
Wrong answer on pretest 3
最后一直到比赛结束都没有写出F题
... ...
---------------------------------------------------------------

system test

Problem A : Accepted.
Problem B : Wrong answer on test 12.
Problem C : Accepted.
Problem D : Accepted.
Problem E : Accepted.
Problem F : Wrong answer on pretest 3.

在第二题阵亡了。。。
lrd第二题A了,拿了四千五百多分,Rank73
实在是%%%,%%%.
我第二题挂掉了一下低了八九百分,掉到了Rank一百多
ysf有点惨,第二题也爆炸了,E题看错题了..

总之涨了100多Rating还是挺高兴的.
题解明天下午再补上,明天上午还要考试.

Codeforces Round #402 (Div. 2) 阵亡记的更多相关文章

  1. Codeforces Round #402 (Div. 2)

    Codeforces Round #402 (Div. 2) A. 日常沙比提 #include<iostream> #include<cstdio> #include< ...

  2. Codeforces Round #402 (Div. 2) A+B+C+D

    Codeforces Round #402 (Div. 2) A. Pupils Redistribution 模拟大法好.两个数列分别含有n个数x(1<=x<=5) .现在要求交换一些数 ...

  3. Codeforces Round#402(Div.1)掉分记+题解

    哎,今天第一次打div1 感觉头脑很不清醒... 看到第一题就蒙了,想了好久,怎么乱dp,倒过来插之类的...突然发现不就是一道sb二分吗.....sb二分看了二十分钟........ 然后第二题看了 ...

  4. Codeforces Round #402 (Div. 2) A,B,C,D,E

    A. Pupils Redistribution time limit per test 1 second memory limit per test 256 megabytes input stan ...

  5. Codeforces Round #394 (Div. 2) 颓废记

    昨天晚上(今天凌晨),又忍不住去打CF.(本蒟弱到只能打Div.2)... 我觉得我可以用一个词概括我这次的CF: 呵呵 刚一开赛,我就codeforces访问失败.. 后来好不容易能上了,两三分钟才 ...

  6. Codeforces Round #402 (Div. 2) D. String Game

    D. String Game time limit per test 2 seconds memory limit per test 512 megabytes input standard inpu ...

  7. Codeforces Round#500 Div.2 翻车记

    A:签到 #include<iostream> #include<cstdio> #include<cmath> #include<cstdlib> # ...

  8. Codeforces Round #402 (Div. 2) A B C sort D二分 (水)

    A. Pupils Redistribution time limit per test 1 second memory limit per test 256 megabytes input stan ...

  9. 【推导】【贪心】Codeforces Round #402 (Div. 2) E. Bitwise Formula

    按位考虑,每个变量最终的赋值要么是必为0,要么必为1,要么和所选定的数相同,记为2,要么和所选定的数相反,记为3,一共就这四种情况. 可以预处理出来一个真值表,然后从前往后推导出每个变量的赋值. 然后 ...

随机推荐

  1. redis 集群 搭建

    环境: centos6.5 192.168.16.11 centos6.5 192.168.16.12 centos6.5 192.168.16.13 三台虚拟机模拟9个节点,一台机器3个节点,创建出 ...

  2. z-index随笔

    z-index这个css属性是用来控制层级的,但是它的表现有点奇怪,这里做下记录. 假如有ABC三层,都没设置z-index时,是按dom节点顺序来控制层级. 此时如果B元素下有个元素D,设置了z-i ...

  3. 【HTML5开发系列】CSS3

    选择器 属性 背景和边框 盒模型 布局 文本 动画 其他

  4. php自定义函数: amr转mp3格式

    <?php function amr2mp3($file){ if (file_exists($file . '.mp3') == true) { return; } else { $param ...

  5. linux c编程:文件夹操作

    创建目录: 用mkdir函数创建目录: mkdir(const char *pathname, mode_t mode) 参数mode有下列的组合: S_ISUID 04000 文件的执行时设置用户I ...

  6. 在Nginx/Openresty中启用http2支持

    转自个人博客 chinazt.cc 以下摘自http2的介绍: HTTP/2 源自 SPDY/2 SPDY 系列协议由谷歌开发,于 2009 年公开.它的设计目标是降低 50% 的页面加载时间.当下很 ...

  7. linux删除文件夹的命令

    使用rm -rf 目录名字 命令即可 -r 就是向下递归,不管有多少级目录,一并删除-f 就是直接强行删除,不作任何提示的意思 eg 删除文件夹实例:rm -rf /var/log/httpd/acc ...

  8. 全自动安装mongoDB数据库的shell脚本

    最近在研究mongoDB数据库,写了个全自动安装mongoDB数据库的shell脚本,仅供参考,欢迎拍砖,内容如下: #!/bin/bash # shell的执行选项: # -n 只读取shell脚本 ...

  9. simple -- abstract

    <?php abstract class Operation { protected $_NumberA = 0; protected $_NumberB = 0; protected $_Re ...

  10. 【leetcode刷题笔记】Length of Last Word

    Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the l ...