1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int l,m,tree[10000000],s,e,sum=0;int main…… 题解列表 2023年07月19日 0 点赞 0 评论 446 浏览 评分:0.0
题解 2839: 石头剪刀布 摘要:先仔细读题,理解题目的含义石头剪刀布是常见的猜拳游戏。石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。一天,小A和小B正好在玩石头剪刀布。已知他们的出拳都是有周期性规律的,比如:“石头…… 题解列表 2023年07月19日 2 点赞 0 评论 924 浏览 评分:9.9
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int l,m,su…… 题解列表 2023年07月19日 0 点赞 0 评论 271 浏览 评分:0.0
石头剪刀布(微详细) 摘要:“石头剪刀布”#include <bits/stdc++.h> using namespace std; int main() { int N,NA,NB,a[10000]…… 题解列表 2023年07月19日 0 点赞 0 评论 260 浏览 评分:9.9
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int n,nb,na,a[10000000],b[10000000],s…… 题解列表 2023年07月19日 0 点赞 0 评论 322 浏览 评分:9.9
2839: 石头剪刀布(百炼成钢,做了好多回才过) 摘要:解题思路:#include using namespace std; int a[1000]; int b[1000]; int n; int main() { int c,d,s…… 题解列表 2023年07月19日 0 点赞 0 评论 291 浏览 评分:6.0
2839: 石头剪刀布 摘要:解题思路:注意事项:i%na,i%nb参考代码: #include <iostream> using namespace std; int n,na,nb,a=0,b=0,A[100…… 题解列表 2023年07月19日 0 点赞 0 评论 231 浏览 评分:8.4
优质题解 蓝桥杯基础练习VIP-阶乘计算(C++自定义函数解题) 摘要:代码解析:multiply 函数实现高精度乘法。它接受一个存储数字的向量 num 和一个因子 factor 作为参数,并返回乘法结果的向量 result。在 multiply 函数中,使用 carry…… 题解列表 2023年07月19日 0 点赞 0 评论 778 浏览 评分:9.9
优质题解 杨辉三角(c++代码) 摘要:杨辉三角(在这里储存为直角正三角形) > 1 > 1 1 > 1 **2 1** > 1 3 **3** 1 > …… 看到这张图应该先想一下打印直角正三角形的代码 ```cpp …… 题解列表 2023年07月19日 0 点赞 5 评论 486 浏览 评分:8.4
“扬灰(杨辉)”三角形 摘要:解题思路下一行的数等于上一行的数加上旁边的数。 注意事项:数组需要 long long 类型,不要在循环内输出,凡事要动脑筋!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!…… 题解列表 2023年07月19日 0 点赞 0 评论 312 浏览 评分:9.3