题解列表
利用了一下math,
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,i,c,d; scanf("%d",&a); c=……
题解 1390: 大神老白
摘要:
```c
#include
int main()
{int n,a[10];
while (scanf("%d",&n)!=EOF)
{
int sum……
1520: 蓝桥杯算法提高VIP-开灯游戏 Python3 暴力简单做法,使用itertools标准库
摘要:解题思路:注意事项: 得到结果以后需要先排序再输出即可参考代码:from itertools import permutations
switch = [[0, 1, 0, 1, 0, 0……
1507: 蓝桥杯算法提高VIP-去注释
摘要:参考代码:#include <bits/stdc++.h>
using namespace std;
void myfunc(string s, int n, int &i, bool &……
最笨方法中比较笨的方法之一
摘要:思路:根据题意可以看出答案一定大于两数中最大的那个,小于两数乘积。又因为要找到最大的那个“最大不能买到的数”,所以直接从乘积开始,从大到小遍历,即区间(max(a,b),a*b),可以节约一部分时间。……