蓝桥杯算法提高VIP-剪刀石头布 (C++代码) 摘要:#include <bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; if(m==n) co…… 题解列表 2018年06月21日 5 点赞 2 评论 1384 浏览 评分:6.7
[编程基础]输入输出练习之输出图案 (C语言代码) 摘要:解题思路:简单粗暴,别打我注意事项:参考代码:#include<stdio.h>int main(){char d;scanf("%c",&d);printf(" %c \n",d);printf("…… 题解列表 2018年07月25日 0 点赞 0 评论 994 浏览 评分:6.7
蓝桥杯2015年第六届真题-奇怪的数列 (C++代码) 摘要:解题思路:用循环...有点绕,递归可能好一点...注意事项:参考代码:#include <iostream> #include <stdio.h> #include <string> #incl…… 题解列表 2018年12月15日 0 点赞 0 评论 1386 浏览 评分:6.7
优质题解 完美解决质因子(素数+因数)(C语言代码) 摘要:测试环境:Windows 10 China Huawei Source Insight 4.0 Linux Debain Ubuntu/Kali g++程序代码:多组测试:解题思路:质因数即质数+因数…… 题解列表 2019年01月08日 1 点赞 0 评论 2451 浏览 评分:6.7
P1000 (一句代码不用写!) 摘要:解题思路:真的一句代码不用写,编辑器默认的代码复制过来就能用。注意事项:学会复制粘贴就可以。参考代码:#include<stdio.h> int main() { int a,b; …… 题解列表 2019年01月19日 0 点赞 0 评论 1000 浏览 评分:6.7
采药 (C++代码) 摘要: 算法: 如果这道题直接暴力枚举每一种情况,n种药就有2^n种情况,时间复杂度会达到可怕的O(2^n),对于这道题而言,1sec不够进行这么多次运算,我试过这样做会超时。所以应该尝试其他…… 题解列表 2019年02月15日 0 点赞 0 评论 1213 浏览 评分:6.7
线段覆盖 (C++代码) 摘要:解题思路:模拟法注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int arr[100000]; int main() { …… 题解列表 2019年03月16日 1 点赞 0 评论 2497 浏览 评分:6.7
纪念品分组 (C语言代码) 摘要:贪心?动态规划?反正头已经晕了 凑活着看吧注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int a[200000];//数组开大一点void sort(i…… 题解列表 2019年04月21日 0 点赞 0 评论 1458 浏览 评分:6.7
C语言训练-角谷猜想 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <bits/stdc++.h>using namespace std;int main(){ int n; …… 题解列表 2019年04月24日 0 点赞 0 评论 4534 浏览 评分:6.7
外出旅游-题解(C语言代码) 摘要: #include int main() { int f,m,x,p,i;//f水果的个数,m所带的钱,x房子的租金,p水果的价格,i在外面的天数 …… 题解列表 2019年06月22日 0 点赞 0 评论 985 浏览 评分:6.7