新手解题:1087丨使用do while循环 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a, b; cin >> a >> b; do{ …… 题解列表 2023年02月03日 0 点赞 0 评论 554 浏览 评分:9.9
循环链表解决报数--简单解法 摘要:解题思路:// 若要循环链表删除数据直至一个时,则只需一个int pos记录位置// 定义俩个结构指针,一个指当前的,一个指前一个的 // 定义一个i,初始化为0,从head开始++i,每当i==3/…… 题解列表 2023年02月03日 0 点赞 0 评论 400 浏览 评分:9.9
1260: 逆反的01串 摘要:```cpp #include #include using namespace std; int main() { char n[200]; while(cin>>n)…… 题解列表 2023年02月03日 0 点赞 0 评论 457 浏览 评分:9.9
1261: 速算24点 摘要:```cpp #include #include using namespace std; int sign(int a,int b,int i) { switch(i) …… 题解列表 2023年02月03日 0 点赞 0 评论 629 浏览 评分:9.9
1262: 邮局选址问题 摘要:```cpp #include #include using namespace std; int main() { int a[10000],b[10000],n; c…… 题解列表 2023年02月03日 0 点赞 0 评论 492 浏览 评分:9.9
1263: 金明的预算方案 摘要:```cpp #include #include #define pb push_back using namespace std; int feesum,n,ans,f[32000],cn…… 题解列表 2023年02月03日 0 点赞 0 评论 456 浏览 评分:9.9
1264: 防御导弹 摘要:```cpp #include using namespace std; int main() { int a,num[20],cnt=0,dp[20],ans=-1; w…… 题解列表 2023年02月03日 0 点赞 0 评论 535 浏览 评分:9.9
奇数求和,差值版本 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int m,n,sum=0,i; int sum1=0,sum2=0; 0<=m<=n<=300;…… 题解列表 2023年02月03日 0 点赞 0 评论 519 浏览 评分:9.9
输出全排列(C++超详细版本,可当dfs模板!!) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a[11],visit[11];//a[i]为存放结果的数组,最后输出的答…… 题解列表 2023年02月03日 0 点赞 0 评论 503 浏览 评分:9.9
1390————大神老白 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2023年02月04日 0 点赞 0 评论 404 浏览 评分:9.9