随笔分类 -  ACM/CF

摘要:C. Cardiogramtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem, your task is to use... 阅读全文
posted @ 2014-05-31 02:17 北岛知寒 阅读(194) 评论(0) 推荐(0) 编辑
摘要:B. Pasha Maximizestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPasha has a positive integer a ... 阅读全文
posted @ 2014-05-31 00:59 北岛知寒 阅读(231) 评论(0) 推荐(0) 编辑
摘要:【题目大意】在公交车站有n个旅游团,他们都在等公交车,第i组有ai个人。每一趟车最多坐m个人。要注意的是,每个组的人都要坐在一辆车上,否则他们会继续等下一辆车。问你最少需要多少辆车才能将这些人拉完?【题目分析】就是一个简单的纯模拟,不过最后要有一个特判。#include#include#includ... 阅读全文
posted @ 2014-05-31 00:52 北岛知寒 阅读(213) 评论(0) 推荐(0) 编辑
摘要:B. Kuriyama Mirai's StonesKuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n. The cost of the ... 阅读全文
posted @ 2014-05-24 14:18 北岛知寒 阅读(423) 评论(0) 推荐(0) 编辑
摘要:A. Kitahara Haruki's GiftKitahara Haruki has bought n apples for Touma Kazusa and Ogiso Setsuna. Now he wants to divide all the apples between the fri... 阅读全文
posted @ 2014-05-24 14:17 北岛知寒 阅读(366) 评论(0) 推荐(0) 编辑
摘要:B. Prison TransferThe prison of your city has n prisoners. As the prison can't accommodate all of them, the city mayor has decided to transfer c of th... 阅读全文
posted @ 2014-05-04 21:37 北岛知寒 阅读(305) 评论(1) 推荐(0) 编辑
摘要:A. Police RecruitsThe police department of your city has just started its journey. Initially, they don’t have any manpower. So, they started hiring ne... 阅读全文
posted @ 2014-05-03 21:36 北岛知寒 阅读(291) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩