05 2025 档案

摘要:蓝桥杯国赛 from math import sqrt inf = float('inf') n, mx = map(int,input().split()) dot=[] for i in range(n): x,y=map(int,input().split()) dot.append((x,y 阅读全文
posted @ 2025-05-25 15:45 邓佑孤 阅读(12) 评论(0) 推荐(0)
摘要:#include<bits/stdc++.h> using namespace std; int main() { int a[6]={1,2,2,3,4,5}; //方法一 vector<int>b(a,a+6);//使用unique需保证已经排好序 b.erase(unique(b.begin( 阅读全文
posted @ 2025-05-18 16:44 邓佑孤 阅读(10) 评论(0) 推荐(0)
摘要:两种自定义优先级方式 struct node { int ind;double l; bool operator<(const node& other) const { return l < other.l; } }; priority_queue<node>pq; struct cmp { boo 阅读全文
posted @ 2025-05-10 19:42 邓佑孤 阅读(12) 评论(0) 推荐(0)