太难了我不想打代码[STL训练]{A} + {B} 摘要:解题思路:set容器可以排序、去重、所以用它太几把合适了,先这样,在那样,最后那样,然后他妈的发现错了注意事项: 注意进厂时机!!!参考代码:#includeusing namespace s…… 题解列表 2023年06月07日 0 点赞 0 评论 323 浏览 评分:0.0
动态规划,两个背包同时算 摘要:#### 动态规划 ``` void solve() { int N = in.nextInt(), M = in.nextInt(), K = in.nextInt(); …… 题解列表 2023年06月07日 0 点赞 0 评论 694 浏览 评分:0.0
与圆形相关的计算C++ 摘要:解题思路:定义 半径,圆周率,直径,周长,面积。注意事项: 引入#include <iomanip>参考代码:#include <iostream>#include <iomanip>using na…… 题解列表 2023年06月07日 0 点赞 0 评论 670 浏览 评分:9.9
C++字符串连接 摘要:# string ```c++ #include using namespace std; int main() { string a,b; while(cin>…… 题解列表 2023年06月08日 0 点赞 0 评论 435 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101]; int n,i; scanf…… 题解列表 2023年06月08日 0 点赞 0 评论 333 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; scanf("%d",&n); for(int i=2;i<=n;i++) { int…… 题解列表 2023年06月08日 0 点赞 0 评论 361 浏览 评分:9.9
纯规律,不使用循环 摘要:解题思路:找到规律,不能被平分差的数的是 (x-2)%4 == 0, 然后判断 L,R中有多少个这样的数注意事项:参考代码:#include<bits/stdc++.h>#define ikun co…… 题解列表 2023年06月08日 0 点赞 1 评论 961 浏览 评分:4.0
并查集,时间复杂度O(n^2),数据量达到5000应该也可行 摘要:解题思路: 先合并两座岛各自的,然后在合并组合的 注意事项: 因为有多种组合,因此不要修改原并查集的数据 参考代码: import java.io.BufferedReader; impo…… 题解列表 2023年06月08日 0 点赞 0 评论 1002 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100] = { 0 }, i, j, n, m,sum=0; scanf("…… 题解列表 2023年06月08日 0 点赞 0 评论 464 浏览 评分:0.0