题解列表
编写题解 1050: [编程入门]结构体之成绩记录
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>struct lesson{ int s1; ……
用类似二进制的方法进行循坏
摘要:解题思路:用序列放置各个位上的数字再进行判断注意事项:有没有大佬帮忙优化一下,时间有点超限参考代码:N=int(input())K=int(input())a=[1]*(N)for i in rang……
Java 分段函数,一目了然
摘要: //绝对值
public static double abs(double x)
{
return Math.abs(x);
……
大数阶乘用数组进行计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h> int weishu=1,a[100000]={0}; void PowerN……
[编程入门]猴子吃桃的问题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int sum=1; scanf("%d",&n); for(int i=……
[编程入门]自由下落的距离计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int m,n,i; double s1=0,s2=0,s=0,t;……
1016——————水仙花数判断
摘要:充分理解概念:**水仙花数"是指一个三位数 其各位数字立方和等于该本身**
for i in range(100,1000):
#三位数
if (int(str(i……