#include <cstdio> int main(){ long long a,b,f,k,i,tot,s[11000],cnt; scanf("%lld%lld%lld%lld",&a,&b,&f,&k); tot=0,s[tot]=0,cnt=0; while(cnt<k*a){ tot++ ...
分类:
其他好文 时间:
2017-10-02 20:17:16
阅读次数:
134
1.UVA10891 Game of Sum 2.LA4254 Processor 。 3.UVA10905 Children's Game 4.UVA11389 The Bus Driver Problem 5.LA4094 WonderTeam ...
分类:
其他好文 时间:
2017-09-30 00:31:26
阅读次数:
134
Codeforces Round #436 (Div. 2) C. Bus A bus moves along the coordinate line Ox from the point x?=?0 to the point x?=?a. After starting from the point ...
分类:
其他好文 时间:
2017-09-29 22:55:33
阅读次数:
202
题意:有司机,下午路线,晚上路线各n个。给每个司机恰好分配一个下午路线和晚上路线。给出行驶每条路线的时间,如果司机开车时间超过d,则要付加班费d*r。问如何分配路线才能使加班费最少。 贪心,其实就是让司机在d时间内空闲时间最小最好。 直接把下午路线时间和晚上路线时间分别排序,然后最小的下午路线时间对 ...
分类:
其他好文 时间:
2017-09-29 22:51:30
阅读次数:
134
Description A bus moves along the coordinate line Ox from the point x?=?0 to the point x?=?a. After starting from the point x?=?0, it reaches the poin ...
分类:
其他好文 时间:
2017-09-29 12:46:15
阅读次数:
227
CanTool APP功能需求 在现代汽车控制技术中,汽车中会使用多个电子控制装置(ECU:Electronic Control Unit)对整车进行控制。而ECU之间的信息交换更多地依赖于CAN(Controller Area Network)总线的网络连接方式来完成。为了检测和控制CAN bus ...
分类:
移动开发 时间:
2017-09-29 11:37:11
阅读次数:
247
题目链接: http://codeforces.com/problemset/problem/864/C 题目描述: 输入a, b, f, k , 一段长度为a的路来回走, 中间f的地方有一个加油站, 油罐的容量为b, 问想要走b次这条路至少需要加多少次油 解题思路: 由于K <= 1e4, 所以将 ...
分类:
其他好文 时间:
2017-09-26 23:41:14
阅读次数:
174
2004: [Hnoi2010]Bus 公交线路 Description 小Z所在的城市有N个公交车站,排列在一条长(N-1)km的直线上,从左到右依次编号为1到N,相邻公交车站间的距 离均为1km。 作为公交车线路的规划者,小Z调查了市民的需求,决定按下述规则设计线路: 1.设共K辆公交车,则1到 ...
分类:
其他好文 时间:
2017-09-25 22:04:07
阅读次数:
110
1537: [POI2005]Aut- The Bus Description Byte City 的街道形成了一个标准的棋盘网络 – 他们要么是北南走向要么就是西东走向. 北南走向的路口从 1 到 n编号, 西东走向的路从1 到 m编号. 每个路口用两个数(i, j) 表示(1 <= i <= n ...
分类:
其他好文 时间:
2017-09-24 20:59:26
阅读次数:
217
vue 2 使用Bus.js进行兄弟(非父子)组件通信 简单案例 ...
分类:
Web程序 时间:
2017-09-24 13:43:24
阅读次数:
329