找规律即可,C++解法,用循环,非循环法可以看看别的大佬 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int m = 0;int main(){ int x, y; cin >> x…… 题解列表 2024年02月18日 0 点赞 0 评论 299 浏览 评分:6.0
编写题解 2764: 带余除法 摘要:解题思路:注意事项:除数不能为0'//'为取整除,得到商的整数部分(向下取整)参考代码:a,b=map(int,input().split())while b!=0: print…… 题解列表 2024年02月23日 0 点赞 0 评论 575 浏览 评分:6.0
题解 2794: 求平均年龄 摘要:解题思路:套个循环……注意事项:别抄我的,抄我的人我诅咒他电脑立刻关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace st…… 题解列表 2024年02月23日 0 点赞 0 评论 514 浏览 评分:6.0
题解 2829: 数1的个数 摘要:解题思路:额……自己理解,学了循环的应该都会吧,我不解释了\^w^/。注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<win…… 题解列表 2024年02月24日 0 点赞 0 评论 316 浏览 评分:6.0
蓝桥杯2022年第十三届决赛真题-卡牌-两种思路(二分+暴力枚举) 摘要:解题思路:思路1:暴力枚举先把数组从小到大排序,然后先从小的开始凑套。思路2:二分枚举二分枚举可以凑成mid套注意事项:需要开longlong参考代码:暴力枚举:#include <bits/stdc…… 题解列表 2024年02月26日 0 点赞 0 评论 596 浏览 评分:6.0
短信计费C小白解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double sum=0; int n,i; scanf("%d",&n); int a…… 题解列表 2024年02月27日 1 点赞 0 评论 452 浏览 评分:6.0
已知三点求面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1, y1, x2, y2, x3, y3; scanf("%…… 题解列表 2024年02月28日 0 点赞 0 评论 554 浏览 评分:6.0
题解 1481剪刀石头布 摘要:解题思路:看到这个题目已知0代表石头,1代表布,2代表剪刀本题有三种结局1.甲胜乙负2.甲负乙胜3.平局第一种情况 甲出石头乙出剪刀甲出剪刀乙出布甲出布乙出石头第二种情况反之第三种情况 平局甲出石头乙…… 题解列表 2024年03月01日 0 点赞 1 评论 389 浏览 评分:6.0
蓝桥杯2023年第十四届省赛真题-子串简写(C语言)此方法为暴力解法 摘要:解题思路:此方法为暴力解法,所以只考虑拿部分分数,只过百分之20的数据,直接模拟算法过程就可以注意事项:参考代码:#include <stdio.h>#include <string.h>signed…… 题解列表 2024年03月01日 0 点赞 0 评论 842 浏览 评分:6.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,na,nb; cin >> n >> na >>…… 题解列表 2024年03月03日 0 点赞 0 评论 272 浏览 评分:6.0