god_lip
god_lip
全部文章
分类
题解(7)
归档
标签
去牛客网
登录
/
注册
god_lip的博客
全部文章
(共4篇)
题解 | #Laptop#
简单的使用一下,queue队列 虽然我感觉这样写的有点多余,但是还是挺好理解的 就是先sort排序然后就比较方便了 ">using namespace std; pair<int,int>a[1001000]; int main() { int n; cin>>...
C
C++
数组
贪心
2022-06-17
0
314
题解 | #栗酱的文明2#
这个题目就是简单的找规律 可以先用sort给他排序一下,然后你发现从大到小,那个所剩余的土地,是需要大于,你可以建交的国家的 数量的,答案就出来了 #include<bits/stdc++.h> using namespace std; const int MAX=100010; int...
C++
数组
数学
2022-06-15
0
577
题解 | #B-珠宝店#
基础题 ">using namespace std; int main() { int n; string st[1001]; int res[1001]={0}; cin>>n; for(int i=0;i<n;i++){ ...
C++
数组
2022-06-14
0
353
题解 | #遇见#
这个题目我用的数组排序写的 找出最大最小速度 主要单位换算 ceil向上取整函数用math库 #include<iostream> #include<algorithm> #include<cmath> using namespace std; const int...
C
C++
数组
2022-06-14
0
420