题解列表
1024: [编程入门]矩阵对角线求和
摘要:import java.io.*;
/**
* 主对角线元素行坐标等于列坐标,副对角线元素行坐标加列坐标等于阶数减一。
*/
public class Main {
pu……
编写题解 1186: 倒杨辉三角形
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int num(int p);//定义函数求整数位数int main(void){ int n; while(scanf("%d……
1021: [编程入门]迭代法求平方根
摘要:import java.io.*;
public class Main {
public static BufferedReader in = new BufferedReader(n……
1020: [编程入门]猴子吃桃的问题
摘要:import java.io.*;
/**
* 从第 N 天剩下一个桃子时退回第一天
*/
public class Main {
public static Buffe……
编写题解 1184: 众数问题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 50001typedef struct SNum{ int s; &nbs
1019: [编程入门]自由下落的距离计算
摘要:import java.io.*;
/**
* 规律:
* 高度 1000,第 5 次:
* 1000 / 2 / 2 / 2 / 2 / 2 = 31.25
* 1000 + ……
编写题解 1183: 人见人爱A+B 无
摘要:解题思路:注意事项:参考代码:#include <stdio.h> void add_A_B( long *A, long *B ); int main(){ long A[3], B[……
编写题解 1182: 人民币问题
摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int money,approach=0; while(scanf("%d",&money)!=EOF)……