Codeforces Round #387(div.2) 17-1-6
来源:互联网 发布:网络言情小说女作家 编辑:程序博客网 时间:2024/05/17 23:41
A - Display Size
暴力遍历从
Code
B - Mammoth’s Genome Decoding
四个字母的个数都是相同的,且必须是4的倍数.模拟一下即可
Code
C - Servers
每个服务器都有开始时间和结束时间.记录每个服务器结束的时间,先判断是否有足够的服务器,若有再遍历每个服务器更新服务器的结束时间,并且记录答案.
Code
D - Winter Is Coming
>假设冬天轮子也只能在零下的时候使用,那么需要交换 x 次.找出夹在两个负数段之间的正数段记录,按照先后顺序排.假设在温度零上的时候能使用冬天轮子的次数为 y 次,用 y 减去根据记录的正数段的长度,减去的同时 x 可以减 2 (即减少两次更换),直到 y 为 0 .还要注意一下开头结尾如果为正数的时候只能减少 1 次更换.
>时间复杂度:
Code
E - Comments
>用数组顺序记录字符串和数字.
>模拟一遍过程,类似深搜.用vector数组记录答案.
>时间复杂度:
Code
0 0
- Codeforces Round #387(div.2) 17-1-6
- Codeforces Round #387 (Div. 2)
- Codeforces Round #387 (Div. 2)
- Codeforces Round #387 (Div. 2)
- Codeforces Round #387 (Div. 2)
- Codeforces Round #387 (Div. 2)
- Codeforces Round #387 (Div. 2)
- Codeforces Round #167 (Div. 2 && Div.1)
- Codeforces Round #185 (Div. 1) && (Div. 2)
- Codeforces Round #166 (Div. 1) && (Div. 2)
- Codeforces Round #292 (Div. 2 Div. 1)
- Codeforces Round #413(Div. 1 + Div. 2)
- Codeforces Round #387 (Div. 2) A---D
- Codeforces Round #387 (Div. 2) E. Comments
- Codeforces Round #387 (Div. 2) C. Servers
- Codeforces Round #387 (Div. 2) Servers
- Codeforces Round #387 (Div. 2) E. Comments
- Codeforces Round #387 (Div. 2) C
- 欧拉计划 51
- android广播机制BroadCastReceiver解析
- CIFAR-10的Matlab可视化与转化
- 地址已经被使用——Address already in use(纠正《后台开发:核心技术于应用实践》书中的错误)
- 从Vim小白到Vim superstar
- Codeforces Round #387(div.2) 17-1-6
- plsql和oracle11g 关联
- 从BAT看你需要的技术栈
- 欧拉计划 52
- 【考研】东北大学二叉树相关算法(1)
- 技术人员的发展之路
- Java IO学习笔记
- 关于《啊哈算法》模拟链表的一些思考
- Linux发送结构体