1357: 母舰-c++题解 摘要:解题思路:1.从小到大排序2.对于每一个防御系统,都用大于它的进攻系统3.没有任何攻击系统能打败的防御系统,直接输出0,无法伤害4.遍历累计没有用过的进攻系统注意事项:数组开大一点,否则会运行错误 …… 题解列表 2024年03月24日 0 点赞 0 评论 462 浏览 评分:8.0
2481: 信息学奥赛一本通T1576-选课 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct node { int to; int w; in…… 题解列表 2024年03月24日 0 点赞 0 评论 419 浏览 评分:0.0
1286: 最大配对-c++ 摘要:解题思路:1.升序排序 2.a从头b从尾拼凑 头尾拼凑过程:1: 2 7 52: 3 6 83: 5 4 94: 6 1 14注意事项:数组一定要开大一点!! 参考代…… 题解列表 2024年03月24日 0 点赞 0 评论 415 浏览 评分:9.0
1114: C语言考试练习题_排列c++代码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int a[10],op[10],box[10]; bool vis[1…… 题解列表 2024年03月24日 0 点赞 0 评论 458 浏览 评分:8.0
买不到的数目-8行代码!!!就8行!! 摘要:只要8行代码不知为什么都没人想到!!解题思路:举例a:2 b:2 ans = 0a:2 b:3 ans = 1a:2 b:4 ans = 2a:2 b…… 题解列表 2024年03月24日 4 点赞 3 评论 999 浏览 评分:10.0
1212: 年会(树形dp) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; struct node { int to; int next; }mp[100005…… 题解列表 2024年03月24日 0 点赞 0 评论 439 浏览 评分:0.0
信息学奥赛一本通T1426-智力大冲浪(题型) 摘要:解题思路:首先,从输入中获取任务截止日期m和任务数量n。然后,使用一个循环,依次获取每个任务的截止日期和罚款金额,并将其存储在结构体数组a中。接下来,使用sort函数对结构体数组a进行排序,排序的依据…… 题解列表 2024年03月24日 0 点赞 0 评论 694 浏览 评分:9.9
3163: 蓝桥杯2023年第十四届省赛真题-异或和之差(C++) 摘要:##暴力求解(40%): ```cpp #include using namespace std; typedef long long LL; const int N = 1e5 + 1…… 题解列表 2024年03月24日 1 点赞 0 评论 957 浏览 评分:9.9
考虑进去0和1 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ //判断一个数是否是素数 …… 题解列表 2024年03月24日 0 点赞 0 评论 444 浏览 评分:0.0
使用递归,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;string t;int ans=0; bool dfs(int x,int y){ if(x…… 题解列表 2024年03月24日 0 点赞 0 评论 487 浏览 评分:0.0