- 博客(22)
- 资源 (5)
- 收藏
- 关注
原创 SDUT OJ
悼念512汶川大地震遇难同胞Time Limit: 1000 ms Memory Limit: 65536 KiBSubmit StatisticProblem Description时间:2008年5月16日(震后第4天)地点:汶川县牛脑寨人物:羌族老奶奶【转载整理】牛脑寨是一个全村600多人的羌族寨子,震后几天,这里依然能常常听到隆隆的声音,那是对面山上石头不断滑落的声音。在完成...
2019-10-26 08:08:11 166
原创 基于归纳学习的股价预测程序
// 机器学习与深度学习 C语言实现// 基于归纳学习的股价预测程序#include <stdio.h>#include <stdlib.h>#define OK 1#define NG 0#define SETSIZE 100#define CNO 10#define GENMAX 100000#define SEED 32767int calc...
2019-10-25 23:40:42 359
原创 蚁群优化算法 C语言实现
// 蚁群优化算法#include "stdio.h"#include "stdlib.h"#include "math.h"#define NOA 10#define ILIMIT 50#define Q 3#define RHO 0.8#define STEP 10#define EPSILON 0.15#define SEED 32768void up...
2019-10-25 23:33:37 1163 2
原创 基于深度学习与数学的思考
数学在计算机的学习中起重要作用1.数学是基于算法的基础, 要把数学与计算机结合起来思考,通过一个个抽象的公式,应用到具体的代码中去。2.多去思考数学的思想,把算法融入到代码中即可。 数学的公式的深入理解,明白每一步是干什么的,在某些场景里能发挥什么作用。3. 深度学习的方向甚多, 深度学习和机器学习的基础就是数学,本质也是按照人的思想,模拟人的某项特征。4. 分类 分层 池化 种种步骤 具...
2019-10-25 22:44:25 570
原创 D1. The World Is Just a Programming Task (Easy Version) (字符串匹配)
http://codeforces.com/contest/1248/problem/D1#include<bits/stdc++.h>using namespace std;typedef long long ll;typedef pair<int, int>pi;ll beauty(string &s){ int n = s.size(); ...
2019-10-24 17:22:41 284
原创 C. Ivan the Fool and the Probability Theory (思维题)
http://codeforces.com/contest/1248/problem/C#include<bits/stdc++.h>using namespace std;const int INF = 0x3f3f3f;int MOD = 1e9 + 7;const int N = 100005;int add(int a, int b){ if(a + ...
2019-10-24 17:21:17 211
原创 B. Grow The Tree(简单思维题)Codeforces Round #594 (Div. 2)
B. Grow The Treetime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputGardener Alexey teaches competitive programming to high school students. To c...
2019-10-24 17:01:42 650
原创 A. Integer Points codeforces #594(Div.2)
http://codeforces.com/contest/1248/problem/A注意开大数#include<bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ios::sync_with_stdio(false); ll t; for(cin >>...
2019-10-24 16:51:31 150 1
原创 Kaggle机器学习 泰坦尼克
https://blog.csdn.net/han_xiaoyang/article/details/49797143
2019-10-21 11:36:22 101
原创 哲学家算法c++线程实现
哲学家算法c++线程实现调用了很多STL函数标记了注释具体实现了五个哲学家就餐的问题 当然 人数可以根据需求改变#include <windows.h>#include <process.h>#include "iostream"using namespace std;const unsigned int N= 5; //number of ph...
2019-10-21 11:33:14 633
原创 超越学姐爱字符串
超越学姐非常喜欢自己的名字,以至于英文字母她只喜欢“c”和“y”。因此超越学姐喜欢只含有“c”和“y”的字符串,且字符串中不能出现两个连续的“c”。请你求出有多少种长度为n的字符串是超越学姐喜欢的字符串。答案对1e9+7取模。输入描述:输入一个整数n。1<=n<=100000输出描述:输出一个整数表示答案。示例1输入复制3输出复制5说明cyy,cyc,yyy...
2019-10-14 18:09:48 270
原创 数字图片处理
1.图像分割->制作模板;2.目标图片分割->比对识别;#include <stdio.h>#include <stdlib.h>#include <opencv\cv.hpp>#include <opencv2\opencv.hpp>#include <iostream>#include <fstream...
2019-10-11 20:30:43 135
原创 Codeforces Round #591 (Div. 2, based on Technocup 2020 Elimination Round 1) B
https://codeforces.com/contest/1241/problem/B #include <bits/stdc++.h>using namespace std;#define LL long long#define LD long double#define SC(t,x) static_cast<t>(x)#define AR(t) ve...
2019-10-10 23:14:18 101
原创 Codeforces Round #591 (Div. 2, based on Technocup 2020 Elimination Round 1) A
https://codeforces.com/contest/1241/problem/A#include <bits/stdc++.h>using namespace std;int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int q,n;...
2019-10-10 23:06:45 187
原创 Gym - 101845M Marbles Lucky Distribution (思维概率)
Juan have N red marbles, M blue marbles, and K bottles. He will put a certain number of marbles on each of the K bottles such that no bottle remains empty and every marble is inside a bottle.Andres i...
2019-10-09 19:07:13 392
原创 图像数字识别具体操作
大体为四步第一步 灰度化imread() 函数第二步 二值化把图像定义成0 或 255 的数字第三步 分割从左上第一个值 往右扫描 扫描全部值是255的标记为Scol是0的标记为Ecol从左上第一个值 往下扫描 全部值是255 标记 Srow 是 0标记 Erow第四步 识别将图片剪切为与模板相同的尺寸(一般为最大尺寸)让匹配的图和别的十个模板相减差的绝对值求和求和最...
2019-10-09 18:58:20 826
原创 POJ 1256 (CMP STL)
poj1256You are to write a program that has to generate all possible words from a given set of letters.Example: Given the word “abc”, your program should - by exploring all different combination of t...
2019-10-08 09:22:53 191 1
原创 P1618 三连击(升级版)STL优化
题目描述将1,2,…,9共9个数分成三组,分别组成三个三位数,且使这三个三位数的比例是A:B:C,试求出所有满足条件的三个三位数,若无解,输出“No!!!”。Input三个数,A B C。Output若干行,每行3个数字。按照每行第一个数字升序排列。输入1 2 3输出192 384 576219 438 657273 546 819327 654 981我们可以通过STL...
2019-10-08 09:16:41 96
原创 STL 全排列函数next_permutation()
此函数包含在#includ “algorithm” 里面,排序是按字典序排的一般这样用int a[];do{}while(next_permutation(a,a+n));1到n的全排列#include <stdio.h>#include <algorithm>using namespace std;int main(){ int n;...
2019-10-08 09:11:00 82
原创 洛谷 P1036 选数 (记忆化搜索)
#include <iostream>#include <cmath>using namespace std;typedef long long ll;ll a[1005];bool isprime(int a){ for(int i = 2; i * i <= a; i++) if(a % i == 0) return...
2019-10-07 21:22:27 104
ChineseNumberIdentify-master.zip
2020-06-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人