因子分解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.ArrayList; import java.util.List; import java.util.Scanner; pub…… 题解列表 2022年10月07日 0 点赞 0 评论 437 浏览 评分:6.0
萌新也能轻松AC之链表合并 摘要:#不用字典,仅用列表操作完成 ```python N,M = map(int,input().split()) numbers = [] 学号列表1 numbers1 = [] 排序后的学号列…… 题解列表 2022年10月08日 0 点赞 0 评论 392 浏览 评分:6.0
引入第三个一维字符数组 摘要:解题思路: 引入第三个一维字符数组,把两个字符数组的值依次赋值给第三个数组。参考代码:#include<stdio.h> #include<string.h> voi…… 题解列表 2022年10月13日 0 点赞 1 评论 282 浏览 评分:6.0
三目运算求解 摘要:解题思路:这三个数直接用一个语句判断,不需要if,代码简洁。注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a…… 题解列表 2022年10月13日 0 点赞 0 评论 257 浏览 评分:6.0
百钱百鸡问题(C++语言) 摘要:参考代码: #include using namespace std; int main(){ cout…… 题解列表 2022年10月15日 0 点赞 0 评论 444 浏览 评分:6.0
宏定义与指针区别 摘要:解题思路:注意事项:参考代码:指针是访问 而宏定义是机械替换#include<stdio.h>#define swap(a,b){int temp;temp=a;a=b;b=temp}int main…… 题解列表 2022年10月16日 0 点赞 0 评论 478 浏览 评分:6.0
宏定义三角简化 摘要:解题思路:宏定义函数求解注意事项:注意不要超出界限参考代码:#include<stdio.h>#include<math.h>#define a_1(a,b,c) (a+b+c)/2#define s…… 题解列表 2022年10月16日 0 点赞 0 评论 575 浏览 评分:6.0
递归标准题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void f(int i,int x);int s[100]={0}; int s1[100]={0}; //s1[-1]=0; int…… 题解列表 2022年10月19日 0 点赞 0 评论 393 浏览 评分:6.0
定义一个一维数组即可解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n=10; int shuzu[10]; for(i=0;i<n;i++) …… 题解列表 2022年10月20日 0 点赞 0 评论 272 浏览 评分:6.0
2763: 计算(a+b)/c的值 摘要:解题思路:直接带入!注意事项:无参考代码:#include<iostream> using namespace std; int main() { int a,b,c; ci…… 题解列表 2022年10月22日 0 点赞 0 评论 458 浏览 评分:6.0