蓝桥杯算法提高VIP-聪明的美食家 (C++代码) 摘要:解题思路:LIS,直接用模板注意事项:用dp,难者不会会者不难参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #define N …… 题解列表 2018年10月30日 0 点赞 0 评论 552 浏览 评分:0.0
陈教主的三角形 (C++代码) 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #define N 1000 using namespa…… 题解列表 2018年10月30日 0 点赞 0 评论 602 浏览 评分:0.0
三角形 (C++代码) 摘要:解题思路:dp...注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #define N 100 using nam…… 题解列表 2018年10月30日 0 点赞 0 评论 786 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include "stdafx.h" //不通过 参考int count = 0; int f(int n){ if (n == 1) { int k = count + 1;…… 题解列表 2018年10月31日 0 点赞 0 评论 410 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include "stdio.h"int count = 0;int f(int n){ if (n == 1) { int k = count + 1; count = 0; return …… 题解列表 2018年10月31日 0 点赞 0 评论 408 浏览 评分:0.0
川哥的吩咐 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"#define max 1000void reverse(int len, char a[]){ int i,t; …… 题解列表 2018年10月31日 0 点赞 0 评论 747 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:#include "stdafx.h"int Gcd(int a, int b){ int t; if (a < b) { t = a; a = b; b = t; } do { t = a …… 题解列表 2018年10月31日 0 点赞 0 评论 764 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:int 数据除数取整,456/100=4;求模。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&a…… 题解列表 2018年10月31日 0 点赞 0 评论 602 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:int 数据除数取整,456/100=4;求模。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&a…… 题解列表 2018年10月31日 0 点赞 0 评论 601 浏览 评分:0.0
C语言训练-计算1977!* (C语言代码) 摘要:解题思路:用数组存储即可实现。注意进位,有可能超过100,1000,10000等,所以要用循环实现最后一个进位。注意事项:参考代码:#include<stdio.h> #include <strin…… 题解列表 2018年10月31日 2 点赞 0 评论 799 浏览 评分:0.0