1025: [编程入门]数组插入处理——题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr1[9] = { 0 }; int arr2[10] = { 0 }; …… 题解列表 2023年08月02日 0 点赞 1 评论 286 浏览 评分:9.9
双向链表删除练习 摘要:解题思路:双向链表实现链表删除;在添加操作时比单链表多了一个指向前面的元素的操作;删除比单链表方便,这时的删除是直接指向当前要删除的元素,多了temp.pre.next=tem.next;temp.n…… 题解列表 2023年08月02日 0 点赞 0 评论 415 浏览 评分:0.0
2950: 素数回文数的个数(C++简单解) 摘要:代码解析: isPrime函数:该函数用于判断一个数是否为素数。首先判断如果n小于2,则直接返回false,因为小于2的数不是素数。然后使用一个循环从2开始到sqrt(n)判断是否存在一个数能整除n…… 题解列表 2023年08月02日 0 点赞 0 评论 786 浏览 评分:9.9
2947(C++简单解) 摘要:AC代码: ```cpp #include using namespace std; void findUnluckyMonths(int w) { int daysInM…… 题解列表 2023年08月02日 0 点赞 0 评论 467 浏览 评分:0.0
2945: 素数对(简单解) 摘要:AC代码 代码解析: is_prime函数:该函数用来判断一个数字是否为素数。如果数字小于2,直接返回false。然后从2开始,依次遍历到sqrt(num),如果存在某个数能整除num,则返回…… 题解列表 2023年08月02日 0 点赞 0 评论 637 浏览 评分:9.9
陶陶摘苹果 摘要:解题思路:注意事项:一定要记得数组下标从0开始!!!参考代码:#include<stdio.h>int main(){ int a[10],n,count=0; for(int i=0;i…… 题解列表 2023年08月02日 0 点赞 0 评论 338 浏览 评分:0.0
JAVA完数的判断 摘要:package com.iflytek.helloworld;/** * "Tools": "Created with IntelliJ IDEA", * "Company": "Copyright …… 题解列表 2023年08月02日 0 点赞 0 评论 352 浏览 评分:0.0
数组逆序重放 摘要:解题思路:注意事项:逆序打印时,从n-1开始,因为最后要回到0参考代码:#include<stdio.h>int main(){ int a[1000],n; scanf("%d",&n)…… 题解列表 2023年08月03日 0 点赞 0 评论 482 浏览 评分:6.0
年龄与疾病 摘要:解题思路:注意事项:打%要打两遍 %%参考代码:#include<stdio.h>int main(){ int n,a[1000]; scanf("%d",&n); float z…… 题解列表 2023年08月03日 0 点赞 0 评论 362 浏览 评分:0.0
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 评论 487 浏览 评分:9.9