[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int max_gys(int a,int b) { int temp;…… 题解列表 2024年04月23日 0 点赞 0 评论 445 浏览 评分:0.0
威佐夫博弈论罢了 摘要:```cpp #include using namespace std; signed main(){ int a = 0, b = 0; while (cin>>a>…… 题解列表 2024年04月23日 0 点赞 0 评论 565 浏览 评分:0.0
最匹配矩阵 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<utility>using namespace std;int Difference…… 题解列表 2024年04月23日 0 点赞 0 评论 650 浏览 评分:0.0
STL deque优雅方案 摘要:解题思路:使用STL队列维护m个连续奇数注意事项:参考代码:#include<iostream> #include<cmath> #include<deque> using namespace …… 题解列表 2024年04月23日 0 点赞 0 评论 481 浏览 评分:0.0
2990: 十进制到八进制 摘要:解题思路:注意事项:参考代码:import java.lang.*; import java.math.BigDecimal; import java.util.Scanner; pub…… 题解列表 2024年04月23日 0 点赞 0 评论 473 浏览 评分:0.0
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;const int N=1e5;ll a[N];using namespace s…… 题解列表 2024年04月23日 0 点赞 0 评论 579 浏览 评分:0.0
七行简便 编写题解 2847: 找第一个只出现一次的字符 摘要:解题思路:if n.count(i)==1:注意事项:else: print('no')参考代码:n=input()for i in n: if n.count(i)==1:…… 题解列表 2024年04月24日 0 点赞 0 评论 938 浏览 评分:0.0
课后1002三个数最大值的求解方法 解题思路:条件表达式1、条件运算符。它是一个三目运算符,由?:组成。2、条件表达式。由条件运算符组成条件表达式。一般形式为:表达式1?表达式2:表达式3其求值规则是:如果表达式1的值为真,则以表达式2的值作为整个条件表达式的值,否则就以表达式3的值作为整个条件表达式的值。 题解列表 2024年04月24日 0 点赞 0 评论 498 浏览 评分:0.0
最简单的做法 摘要:解题思路:使用set容器注意事项:参考代码:#include <bits/stdc++.h> using namespace std; const int N=10100; stri…… 题解列表 2024年04月24日 0 点赞 0 评论 522 浏览 评分:0.0
3210: 蓝桥杯2024年第十五届省赛真题-R 格式 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n=1,a[10000]; void mul(int p[] …… 题解列表 2024年04月24日 1 点赞 0 评论 1465 浏览 评分:0.0