编写题解 2903: 不高兴的津津,超级简单 摘要:解题思路:找最大值,判断是否大于8小时,是的话就输出下标。注意事项:数组从1开始。参考代码:#include<iostream>using namespace std;int main(){ i…… 题解列表 2024年01月25日 0 点赞 0 评论 276 浏览 评分:0.0
有规律的数列求和 摘要:参考代码:#include <stdio.h>#include <stdlib.h>float sum_dev(float fenzi,float fenmu,int n,float s){ if(n…… 题解列表 2024年01月25日 0 点赞 0 评论 537 浏览 评分:0.0
第四届真题-带分数 摘要:解题思路:注意事项:参考代码:/*暴力思路: 1.枚举全排列 2.枚举a,b,c的每一位数,枚举其中两个即可。可以使用高中排列知识,在9位数中找2个空隙放隔板 3.判断等式是否成立*/ #in…… 题解列表 2024年01月25日 0 点赞 0 评论 377 浏览 评分:0.0
python解答,内容简洁易读 摘要:参考代码:def match_strings(s1, s2): i, j = 0, 0 while i < len(s1) and j < len(s2): if s1[i]…… 题解列表 2024年01月25日 0 点赞 0 评论 275 浏览 评分:0.0
1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:a=input()s=[]for i in a: if i=="a" or i=="e" or i=="i" or i=="o" or i=="u": …… 题解列表 2024年01月25日 0 点赞 0 评论 269 浏览 评分:0.0
暴力解题111 摘要:### #include #include using namespace std; const int N=1100; int A[N],B[N],C[N]; int main() {…… 题解列表 2024年01月25日 0 点赞 0 评论 353 浏览 评分:0.0
表达式括号匹配(stack)-java版 摘要:解题思路:利用栈的基本操作解题,如发现简化思路和bug欢迎大佬指点注意事项:参考代码:import java.util.Scanner;public class Main { public sta…… 题解列表 2024年01月25日 0 点赞 0 评论 435 浏览 评分:0.0
用指针和while循环解决报数问题 摘要:解题思路:不采取删除被淘汰者的方式,固定总人数,用0代表被淘汰,1代表未被淘汰。指针顺次指向每个人以模拟报数过程,当每轮次指针指向最后一人时,用while循环使其指回第一人。具体见代码注释。注意事项:…… 题解列表 2024年01月25日 0 点赞 0 评论 439 浏览 评分:0.0
数组解决报数问题 摘要:解题思路:可直接利用数组进行求解此题,让数组循环遍历,同时把满足条件的情况做特殊标记,最后剩一个未被标记的条件则退出循环输出未被标记的情况即可注意事项:参考代码:#include<iostream>u…… 题解列表 2024年01月25日 0 点赞 0 评论 534 浏览 评分:0.0
题解 2833: 金币 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int sum=0,d=0,n; cin>>n; …… 题解列表 2024年01月26日 0 点赞 1 评论 220 浏览 评分:0.0