1118:TOM数(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>main(){ char a[10]={'0'}; int s,i; while(s…… 题解列表 2022年05月11日 0 点赞 3 评论 1590 浏览 评分:9.9
Tom数(C语言) 摘要:解题思路:Tom数是各个位数之间求和的结果,所以可以采用进制转化的思路来做注意事项:题目里没有说明到底要输入几行,这里是一个坑,可以使用循环来解决参考代码:#include<stdio.h>long …… 题解列表 2022年05月11日 0 点赞 0 评论 680 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:import java.io.*; /** * 主对角线元素行坐标等于列坐标,副对角线元素行坐标加列坐标等于阶数减一。 */ public class Main { pu…… 题解列表 2022年05月11日 0 点赞 0 评论 535 浏览 评分:0.0
编写题解 1186: 倒杨辉三角形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int num(int p);//定义函数求整数位数int main(void){ int n; while(scanf("%d…… 题解列表 2022年05月11日 0 点赞 1 评论 576 浏览 评分:8.0
数组的距离题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; int ans; cin…… 题解列表 2022年05月11日 0 点赞 0 评论 516 浏览 评分:0.0
1021: [编程入门]迭代法求平方根 摘要:import java.io.*; public class Main { public static BufferedReader in = new BufferedReader(n…… 题解列表 2022年05月11日 0 点赞 0 评论 627 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题 摘要:import java.io.*; /** * 从第 N 天剩下一个桃子时退回第一天 */ public class Main { public static Buffe…… 题解列表 2022年05月11日 0 点赞 0 评论 914 浏览 评分:0.0
编写题解 1184: 众数问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 50001typedef struct SNum{ int s; &nbs 题解列表 2022年05月11日 0 点赞 0 评论 643 浏览 评分:9.9
1019: [编程入门]自由下落的距离计算 摘要:import java.io.*; /** * 规律: * 高度 1000,第 5 次: * 1000 / 2 / 2 / 2 / 2 / 2 = 31.25 * 1000 + …… 题解列表 2022年05月11日 0 点赞 0 评论 647 浏览 评分:0.0
编写题解 1183: 人见人爱A+B 无 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void add_A_B( long *A, long *B ); int main(){ long A[3], B[…… 题解列表 2022年05月11日 0 点赞 0 评论 556 浏览 评分:0.0