随笔分类 - codeforces 题目集
摘要:题目传送门 C. Masha and two friends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Masha a
阅读全文
摘要:题目网址:http://codeforces.com/contest/1015 1、D题 题意:给一个n,k,sn,k,s代表现在有nn个房子,你需要搬家kk次,搬家的总的距离为ss。每次搬家的距离定义为|x−y||x−y|(x,y为第几个房子),让你构造一个转移序列,满足正好为kk次,总距离为ss
阅读全文

浙公网安备 33010602011771号