(C++代码) 简单的字符串-题解 递归函数解法 摘要:#include<iostream> #include<string> #include<string.h> using namespace std; int Count;//记录相同的项的个…… 题解列表 2022年03月26日 0 点赞 0 评论 675 浏览 评分:0.0
c语言解题目,yyds 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[10][10]; for(int i=0;i<…… 题解列表 2022年03月26日 0 点赞 0 评论 525 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置(原数组改变) #1030:[编程入门]二维数组的转置**https://www.dotcpp.com/oj/problem1030.html**##解题思路注意:1.**列必须要大于行才交换**,如果没有这个条件,就会全部交换一遍,等于没换。2.c语言二维数组作为函数参数传递。 题解列表 2022年03月26日 0 点赞 0 评论 547 浏览 评分:0.0
记忆化搜索-取球博弈 dfs搜索每种可能走法,vis数组存出现过的场面防止重复递归存在对手输则自己赢,不存在则查看是否可能出现平局,若两者情况都没有就必败注意每次递归交换操作对象```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;intn[5] 题解列表 2022年03月26日 0 点赞 0 评论 948 浏览 评分:8.0
编写题解 1029: [编程入门]自定义函数处理素数 #编写题解1029:[编程入门]自定义函数处理素数**https://www.dotcpp.com/oj/problem1029.html**##解题思路1.素数的定义是大于1的自然数中,只能被1和他本身整除,1不是素数.2.因此要判断一个数是否为素数.就要判断它能不能被比他小的所有素数整除, 题解列表 2022年03月26日 0 点赞 0 评论 673 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程 ##1028:[编程入门]自定义函数求一元二次方程https://www.dotcpp.com/oj/problem1028.html##解题思路ax*x+b*x+c=0这个二元一次方程式求解分析如下:-t=b*b-4*a*c;-当t>0时候, 题解列表 2022年03月26日 0 点赞 0 评论 539 浏览 评分:0.0
利用最大公因数来求解 摘要:解题思路:注意事项:参考代码:# 求最大公因数 def cal(temp_1, temp_2): if(temp_1 == temp_2): return(temp_1)…… 题解列表 2022年03月26日 0 点赞 0 评论 591 浏览 评分:0.0
C++代码简便 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int H = 0, M = 0, S = 0; int t; c…… 题解列表 2022年03月26日 0 点赞 0 评论 388 浏览 评分:0.0
矩形面积交 摘要:解题思路:注意事项:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2022年03月26日 0 点赞 0 评论 550 浏览 评分:0.0
1119水仙花数求解 摘要:解题思路:有点复杂,但比较基础,就是用每个位数的立方来写!注意事项:参考代码:#include<stdio.h>int main(){ int i,j; scanf("%d",&i); …… 题解列表 2022年03月26日 0 点赞 0 评论 519 浏览 评分:0.0