java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月08日 0 点赞 0 评论 274 浏览 评分:9.9
python简单易懂 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) if n!=0: c = n%10 …… 题解列表 2024年02月08日 0 点赞 0 评论 313 浏览 评分:0.0
取余运算(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int b, p, k;int f(int p){ int q; if (p == 0) r…… 题解列表 2024年02月08日 0 点赞 0 评论 532 浏览 评分:0.0
蓝桥杯基础练习VIP-回形取数:方向控制与回形取数时的终止判断 摘要:解题思路:本题中要求按照回形的方式输出给定大小矩阵中的元素,首先从(1,1)出发,我们可以把走过的地方元素修改为-1,方便后续识别。方向的话,我们简单找个小一点的矩阵,自己推演一下就能发信方向的变化顺…… 题解列表 2024年02月08日 0 点赞 0 评论 461 浏览 评分:9.9
求和训练题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; int max = 0;//这里我们创建一个最大值的变量 …… 题解列表 2024年02月08日 0 点赞 0 评论 247 浏览 评分:0.0
求和训练题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; int max = 0;//这里我们创建一个最大值的变量 double count =…… 题解列表 2024年02月08日 0 点赞 0 评论 242 浏览 评分:0.0
字符串对比:简单逻辑题 摘要:解题思路:本体思路简单,我直接把思路标注在注释里,其实也用不了几句注意事项:不要看错判断条件了,1到4不是逐渐递进的参考代码:a=input()b=input()if len(a)!=len(b): …… 题解列表 2024年02月08日 0 点赞 0 评论 312 浏览 评分:9.9
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:gets,puts,strlen()函数注意事项:因为在将b的值赋给a的过程中并非是所有元素都有赋值,并且末尾没有结束符,而puts()输出字符串时要遇到'\0’也就是字符结束符才停…… 题解列表 2024年02月08日 0 点赞 0 评论 674 浏览 评分:8.5
河中跳房子(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int L,N,M,a[10000];int f(int x){ int ans=0,t=0…… 题解列表 2024年02月08日 0 点赞 0 评论 412 浏览 评分:0.0
1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:这段代码是用C语言编写的,用于求解二次方程的根。二次方程的形式为ax^2 + bx + c = 0。代码中定义了三个函数:root_above、root_equal和root_belove,…… 题解列表 2024年02月07日 0 点赞 0 评论 461 浏览 评分:0.0