本文分类:news发布日期:2025/11/20 1:18:59
打赏

相关文章

广东工业新手赛 我不吃水果

点击查看代码 #include <iostream> using namespace std;const int N = 1005; int n, pre[N][N], ans;int main() {cin >> n;for (int i = 1; i <= n; i++) {for (int j = 1; j <= n; j++) {int x;c…

题解:CF2172N New Kingdom

题目大意 给定三个整数 \(n,k,b\)。构造一张有 \(m(0\le m\le 5n)\) 条边的连通简单无向图,满足有 \(k\) 个点的度数为奇数,有 \(b\) 条边是割边 。 解法 这道题思考起来并不困难,但是存在一定数量的 corner case,…

11.19 p1115最大字段和

点击查看代码 #include<bits/stdc++.h>using namespace std;int n;int main() {ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);cin>>n;int a,b;int ans=-1e4-1;for(int i=0;i<n;++i…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部