c语言新手想哥德巴赫致敬 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,i=2,j=2,x=1,y=1,k,sum=0; scanf("%d",&a); for(i=2;i…… 题解列表 2023年11月08日 0 点赞 0 评论 364 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:b[i] = a[len - i - 1]注意事项:strlen()函数(统计字符串长度)要有头文件#include <string.h>参考代码:#include <stdio.h>#in…… 题解列表 2023年11月08日 0 点赞 0 评论 288 浏览 评分:9.9
暴力枚举+重写sort排序思路简单 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cmath>using namespace std;const int N =…… 题解列表 2023年11月08日 0 点赞 0 评论 415 浏览 评分:9.9
救援(java代码) 摘要:解题思路:注意事项: Math.sqrt()方法用于求算术平方根 Math.ceil()向上取整 扩展: Math.round()四舍五人的整数 Math.floor()向下取整参考代码:impo…… 题解列表 2023年11月08日 0 点赞 0 评论 401 浏览 评分:9.9
鸡尾酒疗法(java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年11月08日 0 点赞 0 评论 318 浏览 评分:9.9
与圆相关的计算 摘要:解题思路:注意事项:不能用“cin”和“cout”,用了就会报错。参考代码:#include<iostream>using namespace std;int main(){ double r; …… 题解列表 2023年11月08日 0 点赞 0 评论 578 浏览 评分:9.9
C++ |1017完数的判断| 不用数组、自定义函数的“笨方法” 摘要:### 根本不用数组、函数! ### 极其明了、通俗易懂! ###### 之所以叫笨方法,N值大了之后会明显变慢 ###### 而且该代码用了两次重复的遍历来寻找因子以便按格式输出 #####…… 题解列表 2023年11月08日 0 点赞 0 评论 441 浏览 评分:9.9
题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0,d; cin>>a>>b; if(a…… 题解列表 2023年11月08日 0 点赞 0 评论 260 浏览 评分:9.9
题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int z,f=0,b,c=0; cin>>b>>z; f=…… 题解列表 2023年11月08日 0 点赞 0 评论 363 浏览 评分:9.9
3077: 信息学奥赛一本通T1332-周末舞会 摘要:``` #include using namespace std; int main(){ int m,w,a; cin>>m>>w>>a; int b=0,c=0; for(…… 题解列表 2023年11月08日 0 点赞 0 评论 431 浏览 评分:9.9