筛选N以内的素数(C++) 摘要:解题思路:s判断是否是质数或合数,for (int j=2;j*j<=i;j++) if (i%j==0) s=false;的意思是2,3,4,5…… 题解列表 2022年05月11日 0 点赞 0 评论 690 浏览 评分:9.9
挺容易理解的程序 摘要:解题思路:先去空格(32) 再逆序 注意事项:字符串s限制80字符以内 可以自行修改参考代码:#include <stdio.h> #include <string.h> void qu32(ch…… 题解列表 2022年05月11日 0 点赞 0 评论 492 浏览 评分:9.9
编写题解 1200: 回文串 一起来练习吧!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[260],str2[260]; int i,…… 题解列表 2022年05月11日 0 点赞 0 评论 606 浏览 评分:9.9
1166: 求[X,Y]内被除3余1并且被除5余3的整数的和(简捷 易懂) 摘要: import java.util.Scanner; public class _1166_求_X_Y_内被除3余1并且被除5余3的整数的和 { public s…… 题解列表 2022年05月11日 0 点赞 0 评论 572 浏览 评分:9.9
生活总是充满令人期待的风光,所以不要失望请一直向前 摘要:解题思路:利用数学方程组写出注意事项:所有的鸡都是整数参考代码:#include<stdio.h>main(){ int x,y,z;//x为公鸡数量 y为母鸡数量 z为鸡雏数量 for(x=0;x<…… 题解列表 2022年05月11日 0 点赞 0 评论 531 浏览 评分:9.9
优质题解 题解 1602: 蓝桥杯算法训练VIP-乘积最大(JAVA) 摘要:解题思路:给出两种解题思路1. dfs暴力搜索即可2. 动态规划注意事项:dfs解题时思路就是不断向后枚举乘号出现的位置,注意边界条件和递归结束条件即可。动态规划解题: 定义:令dp[i][j]…… 题解列表 2022年05月11日 0 点赞 0 评论 923 浏览 评分:9.9
艰难的艰难 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int prime(int n){ for(int i=2;i<=sqrt(n);i++) { if(…… 题解列表 2022年05月11日 0 点赞 0 评论 366 浏览 评分:9.9
[编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[15],z;int main(){ for(int i=1…… 题解列表 2022年05月11日 0 点赞 0 评论 570 浏览 评分:9.9
破解简单密码 (Java代码) 摘要: import java.util.Scanner; public class Main{ public static void main(String[] args) …… 题解列表 2022年05月11日 0 点赞 0 评论 759 浏览 评分:9.9
编写题解 1184: 众数问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 50001typedef struct SNum{ int s; &nbs 题解列表 2022年05月11日 0 点赞 0 评论 460 浏览 评分:9.9