金币(Java,含注释) 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Test { public static void main(String[] args){ …… 题解列表 2023年10月10日 0 点赞 0 评论 364 浏览 评分:9.9
定义乘子题解方法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static int arg(int n) { …… 题解列表 2023年10月10日 0 点赞 0 评论 260 浏览 评分:0.0
判断能否被3、5、7整除 , 满分通过 摘要:解题思路:满分代码注意事项:int长度不够,需要+long参考代码:#includeint main(){ long int a,n; scanf("%ld",&n); …… 题解列表 2023年10月10日 0 点赞 0 评论 607 浏览 评分:7.0
Java 1072 汽水瓶 摘要:解题思路:注意事项:参考代码:package Demon3;//题目1072import java.util.Scanner;public class 汽水瓶 { public static v…… 题解列表 2023年10月10日 0 点赞 0 评论 340 浏览 评分:0.0
对于公约公倍的题解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,a; int m,n; scanf("%d %d", &m, &n); for ( …… 题解列表 2023年10月10日 0 点赞 0 评论 326 浏览 评分:9.9
数列有序插入---二分查找(java版) 摘要:解题思路: 使用双向指针 left right 记录 左右范围 如果left > right 查找结束 设置 m = (left + right) >>> 1 ,m为中间索引 (可…… 题解列表 2023年10月10日 0 点赞 0 评论 383 浏览 评分:9.9
贪心摆渡人 摘要:解题思路:注意事项:参考代码:def crossing_river(list): time = 0 while 1: if len(list) < 4: …… 题解列表 2023年10月10日 0 点赞 0 评论 514 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1001]; gets(str); st…… 题解列表 2023年10月10日 0 点赞 0 评论 744 浏览 评分:0.0
最大质因数—遍历所有情况暴力求解 摘要:####质因数:一个整数的因数同时这个因数是质数,则称这个因数为这个整数的质因数 先定义一个判断质数的函数cheak(),定义一个max存放最大质因数,定义一个index指针指向此时最大质因数对应a…… 题解列表 2023年10月11日 0 点赞 0 评论 421 浏览 评分:9.9
训练-数字母 摘要:解题思路:字母包括大小写注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i,sum=0;…… 题解列表 2023年10月11日 0 点赞 0 评论 308 浏览 评分:0.0