2945: 素数对(C++题解) 摘要:###定义一个bool型函数isPrime,接下来for循环即可 # 上代码! ```cpp //School// #include #include//调用sqrt函数需要写数学库头文件c…… 题解列表 2023年08月01日 0 点赞 0 评论 508 浏览 评分:9.9
1465: 蓝桥杯基础练习VIP-回形取数(C++) 摘要:AC代码: ```cpp #include #include using namespace std; vector spiralOrder(const vector& matr…… 题解列表 2023年08月01日 0 点赞 0 评论 483 浏览 评分:9.9
2954: 大整数乘法(C++简单解) 摘要:代码解析: multiply函数:该函数接受两个字符串num1和num2,返回它们相乘的结果。首先创建一个大小为n1 + n2的结果数组result,用于存储乘积的每一位数值。 使用两层嵌套的循环…… 题解列表 2023年08月01日 0 点赞 0 评论 474 浏览 评分:9.9
C语言编写HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("*…… 题解列表 2023年08月02日 0 点赞 0 评论 326 浏览 评分:9.9
1025: [编程入门]数组插入处理——题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr1[9] = { 0 }; int arr2[10] = { 0 }; …… 题解列表 2023年08月02日 0 点赞 1 评论 254 浏览 评分:9.9
2950: 素数回文数的个数(C++简单解) 摘要:代码解析: isPrime函数:该函数用于判断一个数是否为素数。首先判断如果n小于2,则直接返回false,因为小于2的数不是素数。然后使用一个循环从2开始到sqrt(n)判断是否存在一个数能整除n…… 题解列表 2023年08月02日 0 点赞 0 评论 691 浏览 评分:9.9
2945: 素数对(简单解) 摘要:AC代码 代码解析: is_prime函数:该函数用来判断一个数字是否为素数。如果数字小于2,直接返回false。然后从2开始,依次遍历到sqrt(num),如果存在某个数能整除num,则返回…… 题解列表 2023年08月02日 0 点赞 0 评论 564 浏览 评分:9.9
c语言的简单尝试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m; scanf("%d",&m); int n; scanf("%d",&n); int i=0; i…… 题解列表 2023年08月03日 0 点赞 0 评论 426 浏览 评分:9.9
用java进行的尝试 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args){ S…… 题解列表 2023年08月03日 0 点赞 0 评论 375 浏览 评分:9.9
杨辉三角(暴力) 摘要:解题思路:双重循环直接写就行注意事项:参考代码:#include<iostream> using namespace std; const int N=100; int n,a[N][N]; …… 题解列表 2023年08月03日 1 点赞 0 评论 594 浏览 评分:9.9