题解列表

筛选

题解 1856: 最小三个数

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int n;     scanf("%d",&n);     if(n >= 3 && ……

题解 1668: printf基础练习2

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int a;     scanf("%d",&a);     printf("%#o %#……

[编程入门]水仙花数判断(C语言)

摘要:解题思路:  1 )先利用for循环求出每一个三位数的百位,十位,个位的数是多少,其中利用要 /  取整, %取余                 2)再利用for循环里面的if语句,利用水仙花数的公……

1013sn的公式求和

摘要:解题思路:要善于发现2,22,222.....之间的规律每次都是拿前面的数乘10再加2注意事项:参考代码:#include<stdio.h>int main(){ int a=2,n,sum=0; s……

求和训练1015

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,l; double sum,su=0.0,sn=0.0,sm=0.0; scanf("%d%d%……

[编程入门]Sn的公式求和

摘要:解题思路:      1.按照题目的意思此题肯定要用循环,然后我们要在题目所给的公式找一种方法求解,(可能比较考验你的数学能力)                    2.求Sn=a+aa+aaa+………

编写题解 1995: 画三角形

摘要:解题思路:注意事项:参考代码:while True:     try:         n=int(input())         for i in range(1,n+1):       ……

c语言训练水仙花数问题

摘要:解题思路:注意事项:要善于利用数字分离参考代码:#include<stdio.h>int main(){ int n,a,b,c; scanf("%d",&n); a=n/100%10; b=n/10……

编写题解 1993: 荣耀

摘要:解题思路:注意事项:参考代码:dic={0:6,1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9:6} while True:     try:         n=int(i……