连续出现的字符(java) 摘要:解题思路:注意事项:参考代码:package Fourteen;import java.util.Scanner;public class 连续出现的字符 { public static voi…… 题解列表 2023年05月13日 0 点赞 0 评论 270 浏览 评分:9.9
注意要输入两排数据 摘要:注意!!!!!!!!!!!!!!要输入两排数字才能正确通过!!lists = list(map(int,input().split()))s = list(map(int,input().split(…… 题解列表 2023年05月14日 0 点赞 0 评论 525 浏览 评分:9.9
百分之成绩转换 摘要:解题思路:简单粗暴注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,x,cnt=0; cin>>…… 题解列表 2023年05月14日 0 点赞 0 评论 332 浏览 评分:9.9
2837: 年龄与疾病(C语言) 摘要:解题思路:注意事项:1.%%打印百分号2.整形除整形会进行截断运算参考代码:#include<stdio.h>int main(void){ int n; scanf("%d", &n); int a…… 题解列表 2023年05月14日 0 点赞 0 评论 1030 浏览 评分:9.9
DFS(测试数据有问题) 摘要:###DFS 爆数组越界是因为测试数据有问题,如下: ``` 16 16 ....#.......##.. ....##......##.. ............#... ...…… 题解列表 2023年05月15日 0 点赞 0 评论 462 浏览 评分:9.9
[编程入门]筛选N以内的素数 摘要:一、解题思路:素数:只能被一和它本身整除的数C参考代码:#include <stdio.h> int main() { void SuShu(); int n; scanf("%d"…… 题解列表 2023年05月15日 0 点赞 0 评论 215 浏览 评分:9.9
用列表推导式写的,已通过测试!!! 摘要:解题思路:注意事项:参考代码:# 读入矩阵的大小n = int(input())# 读入矩阵matrix = [list(map(int, input().split())) for _ in ran…… 题解列表 2023年05月16日 0 点赞 0 评论 271 浏览 评分:9.9
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char a[1000]; cin>>a; for(int …… 题解列表 2023年05月16日 0 点赞 0 评论 340 浏览 评分:9.9
1072:汽水瓶 Java题解 摘要:思路:该解决方案使用了循环迭代的方法来计算最多可以喝的汽水瓶数。我们不断将空汽水瓶按照规定的换瓶规则进行兑换,每次兑换后计算新的空瓶数,直到剩余的空瓶数不足以再进行一次兑换。具体的做法是,将空瓶数n除…… 题解列表 2023年05月16日 0 点赞 0 评论 318 浏览 评分:9.9
一个刚刚开始刷题的菜鸟!! 摘要:解题思路:仔细观察,将这个数列构造出来就行了;注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,sum=0; int…… 题解列表 2023年05月16日 0 点赞 0 评论 328 浏览 评分:9.9