题解列表
c++1503: 蓝桥杯算法提高VIP前十名
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m[200]; cin>>n; fo……
蓝桥杯2017年第八届真题-分巧克力
摘要:解题思路:利用二分答案,类似于二分查找,就是把mid去判断是否大于等于小于正确的数注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
in……
容易看懂 [编程入门]有规律的数列求和
摘要:解题思路:注意事项:参考代码:a = int(input())b = 2c = 1d = 0f = 1for i in range(a): e = b/c d += e b += c……
利用calendar库中的weekday函数解决问题
摘要:解题思路:注意事项:参考代码:import calendaryear=int(input())a=0for i in range(1,13): if calendar.weekday(year,……
题解 1511: 蓝桥杯算法提高VIP-复数求和
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
typedef struct node
……
C语言——计算素数和(2022年4月9日16:35:57)
摘要:#include
int isprime(int x)
{
int i;
if (x == 1)
return -1;
else if(x == 2)
return x……
二级C语言-进制转换(2022年4月9日16:38:16)
摘要:# include
int main()
{
int n;
scanf("%d",&n); //输入十进制整数
printf("%o\n",n);//以八进制形式输出,是字母o不……