03 2021 档案

摘要:1.摆放垃圾桶 题目描述 滨海公园旁边新铺了一条路,把这条路分成n段,依次编号为1…n。为了防止游客把垃圾扔到海里,war要在路上放一些垃圾桶🚮。政府提出了m个要求,每个要求包含三个整数l,r,k,表示路段l到r之间至少有k个垃圾桶 。垃圾桶放太多不仅浪费资源,也影响风景,所以每个路段至多可以放一 阅读全文
posted @ 2021-03-25 17:07 Echo宝贝儿 阅读(81) 评论(0) 推荐(0)
摘要:CSP 202009-1 #include <iostream> #include <cstdio> #include <algorithm> using namespace std; int n,X,Y,x,y; struct node{ int dis,id; bool operator < ( 阅读全文
posted @ 2021-03-07 14:37 Echo宝贝儿 阅读(104) 评论(0) 推荐(0)
摘要:CSP202012-1 #include<iostream> #include<cstdio> using namespace std; int main(){ int n,ans=0,w,s; scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d%d", 阅读全文
posted @ 2021-03-02 17:38 Echo宝贝儿 阅读(161) 评论(0) 推荐(0)