[编程入门]报数问题,Java用递归的思想,将数组模拟成一个圈 摘要:解题思路:循环实现,将数组模拟成一个圈注意事项:大佬帮忙看看优化,指正思路;参考代码:import java.util.Scanner;public class Demo01 { public …… 题解列表 2023年11月18日 0 点赞 0 评论 397 浏览 评分: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 评论 657 浏览 评分:9.9
字符串判等(方法也简单,简洁明了,注意:要使用isspace()函数,不然不能通过) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h…… 题解列表 2023年11月18日 0 点赞 0 评论 602 浏览 评分:9.9
: 计算邮资最简单方法 摘要:解题思路:用ceil函数注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int j,n;//重,钱 char ch;//加不加急 scan…… 题解列表 2023年11月18日 0 点赞 0 评论 705 浏览 评分: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 评论 384 浏览 评分:9.9
题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a…… 题解列表 2023年11月18日 0 点赞 0 评论 296 浏览 评分:9.9
最大公约数与最小公倍数for语句(逆向思维) 摘要:解题思路:先找出a与b哪个最小,再赋值给i。采用逆向思维,倒着找到最大公约数,再求最小公倍数。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,g…… 题解列表 2023年11月19日 0 点赞 0 评论 237 浏览 评分:9.9
题解:2752:整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int x; short a; co…… 题解列表 2023年11月19日 0 点赞 0 评论 620 浏览 评分: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 评论 313 浏览 评分:9.9
编写题解 1812: [编程基础]输入输出练习之输出图案 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char c; cin>>c; cout<<" "…… 题解列表 2023年11月19日 0 点赞 0 评论 510 浏览 评分:9.9