[编程入门]报数问题,Java用递归的思想,将数组模拟成一个圈 摘要:解题思路:循环实现,将数组模拟成一个圈注意事项:大佬帮忙看看优化,指正思路;参考代码:import java.util.Scanner;public class Demo01 { public …… 题解列表 2023年11月18日 0 点赞 0 评论 295 浏览 评分:9.9
治炼金属python题解 摘要:解题思路:注意事项:参考代码:N=int(input())V1 = []V2 = []for i in range(N): A,B=map(int,input().split()) V1.…… 题解列表 2023年11月18日 0 点赞 1 评论 570 浏览 评分:9.9
字符串判等(方法也简单,简洁明了,注意:要使用isspace()函数,不然不能通过) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h…… 题解列表 2023年11月18日 0 点赞 0 评论 509 浏览 评分:9.9
: 计算邮资最简单方法 摘要:解题思路:用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int j,n;//重,钱 char ch;//加不加急 scan…… 题解列表 2023年11月18日 0 点赞 0 评论 593 浏览 评分:9.9
优质题解 1192: 十->二进制转换(位运算做法) 摘要:解题思路:看了一些题解,都是将数字转成二进制放入数组中,或者栈里面,我认为这道题用位运算来做是最简洁最舒服的,也不用开辟额外数组。我们知道,数字在计算机的内部都是使用二进制进行存储的,严格来说,存储的…… 题解列表 2023年11月18日 0 点赞 0 评论 787 浏览 评分:9.9
2829: 数1的个数 摘要:``` #include using namespace std; int n,x,sum; int main(){ cin>>n; for( int i=1;i…… 题解列表 2023年11月18日 0 点赞 0 评论 288 浏览 评分:9.9
题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a…… 题解列表 2023年11月18日 0 点赞 0 评论 206 浏览 评分:9.9
最大公约数与最小公倍数for语句(逆向思维) 摘要:解题思路:先找出a与b哪个最小,再赋值给i。采用逆向思维,倒着找到最大公约数,再求最小公倍数。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,g…… 题解列表 2023年11月19日 0 点赞 0 评论 174 浏览 评分:9.9
题解:2752:整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x; short a; co…… 题解列表 2023年11月19日 0 点赞 0 评论 546 浏览 评分:9.9
好好算就行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a<=100000)a=a*1/10; else if(a…… 题解列表 2023年11月19日 0 点赞 0 评论 243 浏览 评分:9.9