1029: [编程入门]自定义函数处理素数题解 摘要:若是个素数,那么就不能被2~n-1的数整除。#include <bits/stdc++.h>bool prime_Index(int n){ for(int i = 2; i < n; i++) { …… 题解列表 2023年09月24日 0 点赞 0 评论 339 浏览 评分:0.0
C语言思路简单,易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,sum=0,a; while (scanf ("%d",&n)&&n){ …… 题解列表 2023年09月24日 0 点赞 0 评论 305 浏览 评分:0.0
C语言思路简单,易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,sum=0,a,b=0; scanf ("%d",&n); for (int …… 题解列表 2023年09月24日 0 点赞 0 评论 295 浏览 评分:0.0
C语言思路简单,易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ double data,y1,y2; int a,b,c; …… 题解列表 2023年09月24日 0 点赞 0 评论 307 浏览 评分:0.0
C语言思路简单,易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main (){ char a[80]; gets(a); for (…… 题解列表 2023年09月24日 0 点赞 0 评论 260 浏览 评分:0.0
C语言思路简单,易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int f(int n){ double a,b; a=n/100; b=n%10…… 题解列表 2023年09月24日 0 点赞 0 评论 252 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:分别求出三位数的水仙花数的百位数,十分位数,个位数后。分别对其进行三次方处理判断即可注意事项:参考代码:#include<stdio.h>#include<math.h>int main()…… 题解列表 2023年09月24日 0 点赞 0 评论 313 浏览 评分:0.0
1783: 星期判断机switch-case 和map容器两种方法解决 摘要:解题思路:注意事项:参考代码:switch-case方法#includeusing namespace std; int main() { int week; cin>>wee…… 题解列表 2023年09月25日 0 点赞 0 评论 377 浏览 评分:0.0
1784: 矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int arr[5][5]; int …… 题解列表 2023年09月25日 0 点赞 0 评论 261 浏览 评分:0.0