输入年月日,输出这是今年的第几天 摘要:解题思路:1,多组数据输入,用一个while循环。2.定义一个数组,把一年每个月的天数放进去。3,再使用个while循环实现天数的累加。4,输出注意事项:定义的i=0,所以小于月份建议,不然就会多加一…… 题解列表 2021年09月12日 0 点赞 0 评论 346 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int n; scanf("%d",&n); int l[5]={0}; i…… 题解列表 2021年09月12日 0 点赞 0 评论 242 浏览 评分:9.9
1000以内完数的判断 摘要:解题思路:注意事项:注意输出格式;判断完一个数后记得换行!参考代码:#include<iostream>using namespace std;int main(){ int N; cin>>…… 题解列表 2021年09月12日 0 点赞 0 评论 335 浏览 评分:6.0
输入n求阶乘 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int jie(int x){ int a=1; for(int i=1;i<=x…… 题解列表 2021年09月12日 0 点赞 0 评论 431 浏览 评分:0.0
C语言训练-尼科彻斯定理题解 摘要:解题思路:注意事项:参考代码:x=int(input())m=x**3k=x//2t=str(x)+"*"+str(x)+"*"+str(x)+"="+str(m)+"="if x%2!=0: f…… 题解列表 2021年09月12日 0 点赞 0 评论 434 浏览 评分:9.9
简单的a+b题解 摘要:解题思路:注意事项:参考代码:while True:#while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用try except…… 题解列表 2021年09月12日 0 点赞 0 评论 1932 浏览 评分:8.8
蓝桥杯算法提高-快速排序-题解(C语言) 摘要:```c #include void swap(int *a,int i,int j) { int temp; temp=a[i]; a[i]=a[j]; a[j]=temp;…… 题解列表 2021年09月12日 0 点赞 0 评论 420 浏览 评分:9.9
编写题解 1072: 汽水瓶 (C++代码) 摘要:解题思路:利用递归思路求出空瓶数和已喝瓶数注意事项:自己的笨方法和直接除以二的那位兄台比不了参考代码:#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年09月11日 0 点赞 0 评论 531 浏览 评分:9.9
666 必看 进入惊喜 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n,z,j; scanf("%d%d%d",&x,&y,&n); { if(x%4==0) …… 题解列表 2021年09月11日 0 点赞 0 评论 325 浏览 评分:9.9
等差数+平方和+倒数和运算 摘要:解题思路:1.先算出等差数列和,公式:(1+a)*a/2(注解:(首项加尾项)乘以项数除以二)。2.算平方和,利用for循环把每一项的平方和加到一起。3,用for循环把某一项都求出来,然后变成倒数,再…… 题解列表 2021年09月11日 0 点赞 0 评论 420 浏览 评分:8.0