您当前的位置: 首页 > 

*DDL_GzmBlog

暂无认证

  • 0浏览

    0关注

    605博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[Acwing] 第22场周赛

*DDL_GzmBlog 发布时间:2022-05-30 18:11:33 ,浏览量:0

前言

传送门 :

t a g : tag : tag: 模拟 vector 题意 : 题意不说了,看一遍基本都懂

思路 : 不考虑用数组开多余的空间,我们采用 v e c t o r vector vector

然后使用自己写的 c m p cmp cmp进行排序,每次弹出队尾即可

第一次写这种函数,记录一下 code :

// Problem: 习题册
// Contest: AcWing
// URL: https://www.acwing.com/problem/content/4075/
// Memory Limit: 256 MB
// Time Limit: 3000 ms
// 
// Powered by CP Editor (https://cpeditor.org)

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;
#define IOS  ios::sync_with_stdio(false);
#define CIT  cin.tie(0);
#define COT  cout.tie(0);

#define ll long long
#define x first
#define y second
#define pb push_back
#define endl '\n'
#define all(x) (x).begin(),x.end()
#define Fup(i,a,b) for(int i=a;i=b;i--)
#define cer(a) cerr            
关注
打赏
1657615554
查看更多评论
0.0384s