java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月08日 0 点赞 0 评论 504 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月08日 0 点赞 0 评论 502 浏览 评分:9.9
python简单易懂 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) if n!=0: c = n%10 …… 题解列表 2024年02月08日 0 点赞 0 评论 539 浏览 评分: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 评论 769 浏览 评分:0.0
蓝桥杯基础练习VIP-回形取数:方向控制与回形取数时的终止判断 解题思路:本题中要求按照回形的方式输出给定大小矩阵中的元素,首先从(1,1)出发,我们可以把走过的地方元素修改为-1,方便后续识别。方向的话,我们简单找个小一点的矩阵,自己推演一下就能发信方向的变化顺序是固定的:即为一个逆时针旋转,方向从【下,右,上,左】这四个之间轮番更替。 题解列表 2024年02月08日 0 点赞 0 评论 686 浏览 评分:9.9
求和训练题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; int max = 0;//这里我们创建一个最大值的变量 …… 题解列表 2024年02月08日 0 点赞 0 评论 416 浏览 评分:0.0
求和训练题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; int max = 0;//这里我们创建一个最大值的变量 double count =…… 题解列表 2024年02月08日 0 点赞 0 评论 428 浏览 评分:0.0
字符串对比:简单逻辑题 解题思路:本体思路简单,我直接把思路标注在注释里,其实也用不了几句注意事项:不要看错判断条件了,1到4不是逐渐递进的参考代码:a=input()b=input()iflen(a)!=len(b):print(1)#长度不相等绝对是1else:c=a.upper()d=b.upper()#把相等长度的俩 题解列表 2024年02月08日 0 点赞 0 评论 482 浏览 评分:9.9
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:gets,puts,strlen()函数注意事项:因为在将b的值赋给a的过程中并非是所有元素都有赋值,并且末尾没有结束符,而puts()输出字符串时要遇到'\0’也就是字符结束符才停…… 题解列表 2024年02月08日 0 点赞 0 评论 901 浏览 评分: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 评论 600 浏览 评分:0.0