摘要:
https://www.luogu.com.cn/problem/P5143 涉及知识点:结构体、sort参数、函数(结构体参数)、排序 #include<bits/stdc++.h> using namespace std; struct p{ int x, y, z; void input(){ 阅读全文
posted @ 2020-06-17 16:31
TFLSNOI
阅读(225)
评论(0)
推荐(0)
摘要:
https://www.luogu.com.cn/problem/P1116 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, ans, a[10005]; 4 int main() 5 { 6 //冒泡排序 7 8 cin>>n; 阅读全文
posted @ 2020-06-17 15:53
TFLSNOI
阅读(300)
评论(0)
推荐(0)
摘要:
https://www.luogu.com.cn/problem/P1059 洛谷地址 http://ybt.ssoier.cn:8088/problem_show.php?pid=1184 一本通地址 方法一:排序+去重 1 #include<cstdio> 2 #include<iostream 阅读全文
posted @ 2020-06-17 10:59
TFLSNOI
阅读(305)
评论(0)
推荐(0)
摘要:
https://www.luogu.com.cn/problem/P1152 #include<bits/stdc++.h> using namespace std; int n, a[1005];//用于标记[1,n-1] 是否出现 int f1, f2;//用于存储两个连续元素 int main 阅读全文
posted @ 2020-06-17 10:55
TFLSNOI
阅读(295)
评论(0)
推荐(0)

浙公网安备 33010602011771号