2812: 球弹跳高度的计算 摘要:解题思路:注意事项:令人忍俊不禁参考代码:height=float(input())sum=-heightsum=float(sum)for i in range(1,11): sum=sum+…… 题解列表 2023年11月20日 0 点赞 0 评论 606 浏览 评分:4.7
进制转换(超简单) 摘要:解题思路:注意事项:注意区别八进制为“%o”,十六进制为“%x”无符号十进制为“%u”有符号十进制为“%d”参考代码:#include <stdio.h>int main(){int a;scanf(…… 题解列表 2023年11月20日 0 点赞 0 评论 479 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:for循环,倒叙输出注意事项:参考代码:#include <stdio.h>#include <string.h> int main(){char a[100];int i,j;gets(a…… 题解列表 2023年11月20日 0 点赞 0 评论 250 浏览 评分:0.0
阿姆斯特朗数 摘要:解题思路:注意事项:hhh其实只用隔一个空格,被骗啦嘻嘻参考代码:#include<stdio.h>int main(){ int i,a,b,c,s; for(i=2;i<1000;i+…… 题解列表 2023年11月19日 0 点赞 0 评论 428 浏览 评分:9.9
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v…… 题解列表 2023年11月19日 0 点赞 0 评论 338 浏览 评分:0.0
矩阵对角线求(Java) 摘要:解题思路: matrix.length是行。matrix[0].length是列。注意事项:参考代码:import java.util.Scanner; public class Main { …… 题解列表 2023年11月19日 0 点赞 0 评论 358 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路: 通过双层for循环,外层循环i不断与内层循环j匹配,根据 i % j == 0 && i != j 判断他不是素数。注意事项:参考代码:import java.util.Scanner; …… 题解列表 2023年11月19日 0 点赞 0 评论 307 浏览 评分:0.0
三种方法解排序(C语言) 摘要:解题思路:注意事项:参考代码:方法1:使用冒泡排序#include // 冒泡排序函数 void bubbleSort(int arr[], int n) { int temp; …… 题解列表 2023年11月19日 0 点赞 0 评论 462 浏览 评分:9.9
函数+递归求解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int sum=0;int f(int x){ int t=x;//(保存一下x的值…… 题解列表 2023年11月19日 0 点赞 0 评论 370 浏览 评分:9.9
很简单的水仙花,使我大脑旋转。 摘要:解题思路:直接按照水仙花定义求解注意事项:关键在于如何表示百位,十位,个位的数值,三位数除100再取10的余得百位,除10取10的余得十位,直接取10的余得个位。参考代码:#include <stdi…… 题解列表 2023年11月19日 0 点赞 0 评论 291 浏览 评分:9.9