编写题解 1139: C语言训练-求素数问题 摘要:```cpp #include #include using namespace std; const int N = 1e4 + 10; int prime[N]; int isprim…… 题解列表 2024年12月07日 1 点赞 0 评论 369 浏览 评分:10.0
编写题解 1073: 弟弟的作业 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h> //atio函数,将字符串转换为数字.#include<string.h> …… 题解列表 2024年12月07日 3 点赞 0 评论 677 浏览 评分:10.0
蓝桥杯2024年第十五届省赛真题-好数 摘要: #include int main() { int n; int d = 0;; int u = 1; int c = 0;…… 题解列表 2024年12月07日 1 点赞 0 评论 708 浏览 评分:10.0
1033: [编程入门]自定义函数之字符提取 摘要: #include int main() { char a[1000]; char s[1000]; gets(a); int…… 题解列表 2024年12月07日 0 点赞 0 评论 797 浏览 评分:10.0
一个简单的自定义函数 来处理 素数 摘要:解题思路:试除法判断scanf输入的数 是or不是素数注意事项:循环的优化参考代码:#include <stdio.h>#include <math.h>int is_Prime(int a){ in…… 题解列表 2024年12月07日 1 点赞 0 评论 1135 浏览 评分:10.0
1072: 汽水瓶(简单易懂) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,sum; while (cin >> n) …… 题解列表 2024年12月07日 3 点赞 1 评论 457 浏览 评分:10.0
3010: 奇偶数之和(使用到for循环语句) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(int argc, char *argv[]) { int n,i; int sum1=0,sum2=0…… 题解列表 2024年12月07日 0 点赞 0 评论 387 浏览 评分:10.0
2544:N以内累加求和(使用到for循环) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(int argc, char *argv[]) { int N,i; int sum=0; sca…… 题解列表 2024年12月07日 0 点赞 0 评论 544 浏览 评分:10.0
循环的嵌套 处理 输入与输出 摘要:解题思路:通过两层循环达到输入二维数组以及输出二维数组的效果,从而达到二维数组转置的效果。注意事项:在使用printf输出时,注意目标所需要的效果,即space,换行。参考代码:#include <s…… 题解列表 2024年12月08日 1 点赞 0 评论 525 浏览 评分:10.0
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年12月08日 1 点赞 2 评论 517 浏览 评分:10.0