随笔分类 - ACM/CF
摘要:C. Cardiogramtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem, your task is to use...
阅读全文
摘要:B. Pasha Maximizestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPasha has a positive integer a ...
阅读全文
摘要:【题目大意】在公交车站有n个旅游团,他们都在等公交车,第i组有ai个人。每一趟车最多坐m个人。要注意的是,每个组的人都要坐在一辆车上,否则他们会继续等下一辆车。问你最少需要多少辆车才能将这些人拉完?【题目分析】就是一个简单的纯模拟,不过最后要有一个特判。#include#include#includ...
阅读全文
摘要: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 ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
