- 博客(340)
- 资源 (17)
- 收藏
- 关注

原创 Python常用方法【自用】
一、文件相关1.打开文件,读写操作#其中path为相关路径,这个是想往里写文件,如果是想读的话可以把最后一个字母换为'r'即可f = open(r'path', 'w')f = open(r"C:\Users\Administrator\Desktop\\pytest.txt", 'w')f.write('我叫 \n王哲, \n我来自曹县')#这里注意要是读写切换时要close下f....
2019-02-09 20:03:34
518

原创 Project Euler(欧拉计划)解题报告【不断更新】
先写在前头,里面所有的题大都是我的个人解题报告,由于我的能力,不可避免的有许多不足,如果有解题有错误或者遗漏,还望指出,谢谢。先简单介绍下 ProjectEulerProject EulerProjectEulerProject Euler欧拉计划(Project Euler)是一系列有挑战性的数学与计算机编程题;要解开它们,需要的不止是数学知识:尽管数学能够帮助你找到一些优雅而有效的方法,...
2019-02-06 16:33:11
8215
2

原创 ASCII码表【自用】
十进制代码十六进制代码MCS 字符或缩写DEC 多国字符名00NUL空字符11SOH标题起始 (Ctrl/A)22STX文本起始 (Ctrl/B)33ETX文本结束 (Ctrl/C)44EOT...
2019-01-24 22:19:29
3008

原创 Nobleman__ ACM 比赛模板 (C++ && Java)个人总结 (不断更新) (自用)
声明 : 本人刚学算法一年,都是自己做题常用的模板,不时总结下。大致分为:乱七八糟, 数论,图论,动态规划,几何,Java 还有一些奇葩定理,奇葩定理:【1】高效求出n的约数的个数: 对 数 X 做质因数分解, 结果假定是 1^1 * a ^ A * b ^ B .... z ^ Z , 那 X 的因数个数应该是 (A+1) * (B+1) * .... ...
2018-02-16 21:41:27
5489
1
原创 华为苏研-WLAN开发-实习面经 + 实习生眼里的华为
文章目录前言1.技术面试1.自我介绍2.项目提问3.基础知识+专业问题4.手撕代码2.HR面试反问3.主管面试反问4.总结5. 实习感触1. 面试2. 马太效应3. 能力 > 学历4. 加班吗?前言首先交代下自己的实际情况,本科末流二本,研究生野鸡985,学制是非全日制,本硕皆有国内或国际奖项,研究生方向是嵌入式,面经是年前写的,现在已经在公司实习已满一月顺便写点感想(见末尾)。菜鸡一只,也是第一次写面经记个流水账。实习面试一共三轮,见习生没有机考,如果正常实习的话会加一轮机考,其中技面和HR面
2021-03-28 18:06:11
1224
5
原创 Android Linux换核 + goldfish环境搭建
文章目录前言一、环境准备0. 硬件准备1. KVM2. 源码准备2.1 goldfish2.2 交叉编译工具3. Android Studio4. Java二、编译内核前言这篇博客主要记录下利用Android模拟器,在Android7.1.1系统下换goldfish3.10-n-dev核的过程,在此之前参考了网上大大小小的换核教程,没有那种一次性走到头的,可能是时间太久,多多少少都有点bug。所以打算整理下,如果您按照此过程有啥bug,欢迎交流~其他系统、内核换的过程大同小异。SDK的安装这里推荐用A
2020-08-25 03:33:23
1433
2
原创 EDAthon2020-P4 Floorplanning问题 BSG + Simulated Annealing解决方案
1. 概念介绍EDAthon是一个围绕硬件相关的一个比赛,涉及的面居多,每个题都是基于某个领域的经典问题,今年的题目涉及具体IP核实现,PCB布线算法,IP核布局算法,指令调度相关,神经网络的量化等Floorplanning问题大概如下:给你若干个矩阵,让你不重叠的放置在平面中使得最终的包围和最小,当然可以加些约束,...
2020-08-08 17:44:31
2411
10
原创 Windows下部署OpenCV + Clang配置OpenCV
由于前提我机子上已经装CLion,和MinGW64,关于jetbrains家族的软件激活安装问题,和MinGW的详细安装就不提了。扯一句,下载一些常用的软件、资源时一定要按目录放好,专门放个地方,不要随便找个地方乱放。所以里面的路径大都是以opencv为根目录说的。Windows下部署OpenCV前提资源:1.Opencv link: https://www.openc...
2020-01-03 18:10:31
1486
原创 codeforces 913 C Party Lemonade 【思维贪心】
C. Party Lemonadetime limit per test1 second memory limit per test256 megabytesA New Year party is not a New Year party without lemonade! As usual, you are expecting a lot of guests, and buying l
2019-11-07 15:06:24
396
转载 向量点乘(内积)和叉乘(外积、向量积)概念及几何意义解读(经典)
声明: 本文转自这里 向量是由n个实数组成的一个n行1列(n*1)或一个1行n列(1*n)的有序数组;向量的点乘,也叫向量的内积、数量积,对两个向量执行点乘运算,就是对这两个向量对应位一一相乘之后求和的操作,点乘的结果是一个标量。点乘公式对于向量a和向量b: &...
2019-11-07 15:05:39
55762
2
原创 备战考研CCFCSP篇——201509(数列分段、日期计算、模板生成系统、高速公路、最佳文章)
试题编号: 201509-1试题名称: 数列分段时间限制: 1.0s算法类型: 【暴力】问题描述 给定一个整数数列,数列中连续相同的最长整数序列算成一段,问数列中共有多少段?输入格式 输入的第一行包含一个整数n,表示数列中整数的个数。 第二行包含n个整数a1, a2, …, an,表示给定的数列,相邻的整数之间用一个空格分隔。输出格式 输出一个整数,表示给定的数列有多个...
2019-11-07 15:00:57
861
原创 Project Euler Problem 650: Divisors of Binomial Product
PE其他解题报告请参考这里,本题答案在留言首条Divisors of Binomial ProductProblem 650题意:略分析:首先可以知道 B(n)=(n!)n−1(∏i=1n−1i)2B(n)=\frac{(n!)^{n-1}}{(\prod_{i = 1}^{n-1} i)^2}B(n)=(∏i=1n−1i)2(n!)n−1也有递推式如下:B(n)=B(n...
2019-05-15 14:27:03
680
原创 小米OJ 有多少个公差为 2 的等差数列【思维】
序号:#31难度:有挑战时间限制:1000ms内存限制:10M描述给出一个正整数N(2<= N <=10000000),统计有多少公差为2的正整数等差数列,使得数列的和为N。举例: 正整数 15,可以写为 15 和 3,5,7 两个等差数列。 其中 15 自身就是一个等差数列,3+5+7=15 也是一个符合条件的等差数列,所以输出为 2,表示有两个符合条件的等差数列。请注...
2019-04-02 19:47:24
595
原创 2019 第十届蓝桥杯大赛软件类省赛 C/C++ 大学 A 组 【部分题解】
声明: 这些的答案不是官方答案,都是我自己做的,仅供参考。一起加油试题 A: 平方和本题总分:5′5 '5′【问题描述】小明对数位中含有 2、0、1、92、 0、 1、 92、0、1、9 的数字很感兴趣,在111 到 404040 中这样的数包括 1、2、9、101、 2、 9、 101、2、9、10 至 32、3932、 3932、39 和404040,共 282828...
2019-03-24 23:15:31
7147
13
原创 HDU 3018 Ant Trip【欧拉回路】【经典一笔画问题】
Ant TripTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4850 Accepted Submission(s): 1907Problem DescriptionAnt Country consist of N town...
2019-03-22 11:21:17
669
原创 【板子】【欧拉路径】洛谷 P2731 骑马修栅栏 Riding the Fences
P2731 骑马修栅栏当个板子咯。#include<bits/stdc++.h>using namespace std;const int maxn = 1e4 + 10;/**考虑多边,以及字典序最小,multiset可以自带排序,而且删除元素方便,这里注意,std :: multiset :: erase (这里接受是个迭代器)*/multiset<i...
2019-03-21 21:17:41
332
原创 Project Euler Problem 79: Passcode derivation【拓扑排序】
PE其他解题报告请参考这里,本题答案在留言首条Passcode derivationProblem 79A common security method used for online banking is to ask the user for three random characters from a passcode. For example, if the passcode wa...
2019-02-13 20:13:35
535
1
原创 Project Euler Problem 63: Powerful digit counts【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Powerful digit countsProblem 63The 5-digit number, 16807=7516807=7^516807=75, is also a fifth power. Similarly, the 9-digit number, 134217728=89134217728=8^9134217728=89, is...
2019-02-13 13:08:46
388
1
原创 Project Euler Problem 97: Large non-Mersenne prime【快速幂】
PE其他解题报告请参考这里,本题答案在留言首条Large non-Mersenne primeProblem 97The first known prime found to exceed one million digits was discovered in 1999, and is a Mersenne prime of the form 26972593−12^{6972593}−...
2019-02-13 12:52:06
476
1
原创 Project Euler Problem 57: Square root convergents【模拟】
PE其他解题报告请参考这里,本题答案在留言首条Square root convergentsProblem 57It is possible to show that the square root of two can be expressed as an infinite continued fraction.√2=1+1/(2+1/(2+1/(2+...)))=1.414213.....
2019-02-11 23:32:17
408
1
原创 Project Euler Problem 56: Powerful digit sum【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Powerful digit sumProblem 56A googol (1010010^{100}10100) is a massive number: one followed by one-hundred zeros; 100100100^{100}100100 is almost unimaginably large: one fol...
2019-02-11 22:13:52
334
1
原创 Project Euler Problem 55: Lychrel numbers【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Lychrel numbersProblem 55If we take 47, reverse and add, 47 + 74 = 121, which is palindromic.Not all numbers produce palindromes so quickly. For example,349 + 943 = 1292,...
2019-02-11 22:04:48
352
1
原创 Project Euler Problem 54: Poker hands【模拟】
PE其他解题报告请参考这里,本题答案在留言首条Poker handsProblem 54In the card game poker, a hand consists of five cards and are ranked, from lowest to highest, in the following way:High Card: Highest value card.One ...
2019-02-11 20:08:58
530
1
原创 Project Euler Problem 53: Combinatoric selections【组合数】
PE其他解题报告请参考这里,本题答案在留言首条Combinatoric selectionsProblem 53There are exactly ten ways of selecting three from five, 123451234512345:123,124,125,134,135,145,234,235,245,and345123, 124, 125, 134, 135,...
2019-02-07 19:49:09
395
1
原创 Project Euler Problem 52: Permuted multiples【暴力】【stringsteam】
PE其他解题报告请参考这里,本题答案在留言首条Permuted multiplesProblem 52It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.Find the smallest posi...
2019-02-07 17:55:42
369
1
原创 Project Euler Problem 51:Prime digit replacements【暴力】【按位枚举】【stringstream】
PE其他解题报告请参考这里,本题答案在留言首条Prime digit replacementsProblem 51By replacing the 1st1^{st}1stdigit of the 2-digit number *3, it turns out that six of the nine possible values: 13, 23, 43, 53, 73, and 83,...
2019-02-07 17:44:40
538
1
原创 Project Euler Problem 43:Sub-string divisibility
PE其他解题报告请参考这里,本题答案在留言首条Sub-string divisibilityProblem 43The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a ra...
2019-02-07 12:25:10
290
1
原创 Project Euler Problem 44 : Pentagon numbers【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Pentagon numbersProblem 44Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. The first ten pentagonal numbers are:1,5,12,22,35,51,70,92,117,145,...1, 5, 12, 22,...
2019-02-07 11:47:08
388
1
原创 Project Euler Problem 45: Triangular, pentagonal, and hexagonal【二分】【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Triangular, pentagonal, and hexagonalProblem 45Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:Triangle Tn=n(n+1)/21,3,6,10,15,...Tn=n...
2019-02-07 11:05:46
430
原创 Project Euler Problem 46: Goldbach's other conjecture【暴力】【素数筛】
PE其他解题报告请参考这里,本题答案在留言首条Goldbach’s other conjectureProblem 46It was proposed by Christian Goldbach that every odd composite number can be written as the sum of a prime and twice a square.9=7+2×129...
2019-02-07 10:57:45
376
1
原创 Project Euler Problem 47: Distinct primes factors【素数筛】【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Distinct primes factorsProblem 47The first two consecutive numbers to have two distinct prime factors are:14=2×714 = 2 × 714=2×715=3×515 = 3 × 515=3×5The first three cons...
2019-02-07 10:42:32
413
原创 Project Euler Problem 48 : Self powers 【暴力】【同余定理】
Self powersProblem 48The series, 11+22+33+...+1010=104050713171^1 + 2^2 + 3^3 + ... + 10^{10} = 1040507131711+22+33+...+1010=10405071317.Find the last ten digits of the series, 11+22+33+...+1000100...
2019-02-07 10:27:01
555
1
原创 Projext Euler Problem 49:Prime permutations【枚举】【暴力】
PE其他解题报告请参考这里,本题答案在留言首条Prime permutationsProblem 49The arithmetic sequence, 1487, 4817, 8147, in which each of the terms increases by 3330, is unusual in two ways: (i) each of the three terms are ...
2019-02-07 10:12:46
403
1
原创 Projext Euler Problem 50 : Consecutive prime sum【暴力】【素数筛】【尺取法】
PE其他解题报告请参考这里,本题答案在留言首条Consecutive prime sumProblem 50The prime 41, can be written as the sum of six consecutive primes:41=2+3+5+7+11+1341 = 2 + 3 + 5 + 7 + 11 + 1341=2+3+5+7+11+13This is the lo...
2019-02-06 23:10:07
346
1
原创 Projext Euler Problem 1:Multiples of 3 and 5【暴力】【容斥】
PE其他解题报告请参考这里,本题答案在留言首条Multiples of 3 and 5Problem 1If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of...
2019-02-06 21:09:07
1001
1
原创 全国統一プログラミング王決定戦予選/NIKKEI Programming Contest 2019 Announcement C - Different Strokes【贪心】
C - Different StrokesTime limit : 2sec / Memory limit : 1024MBScore : 400 pointsProblem StatementThere are N dishes of cuisine placed in front of Takahashi and Aoki. For convenience, we call these...
2019-01-27 22:37:10
460
原创 Codeforces Round #486 (Div. 3) E. Divisibility by 25【贪心】【模拟】
E. Divisibility by 25time limit per test1 secondmemory limit per test256 megabytesYou are given an integer n from 1 to 1018 without leading zeroes.In one move you can swap any two adjacent digits ...
2019-01-27 22:24:23
293
转载 Java中的String,StringBuilder,StringBuffer三者的区别
声明:本文转载于这里 最近在学习Java的时候,遇到了这样一个问题,就是String,StringBuilder以及StringBuffer这三个类之间有什么区别呢,自己从网上搜索了一些资料,有所了解了之后在这里整理一下,便于大家观看,也便于加深自己学习过程中对这些知识点的记忆,如果哪里有误,恳请指正。 这三个类之间的区别主要是在两个方面,即运行速度和线程安全这两方面。首先说运行速度,...
2019-01-17 14:08:22
1608
原创 备战考研CCFCSP篇——201512(数位之和、消除类游戏、画图、送货、矩阵)
试题编号: 201512-1试题名称: 数位之和时间限制: 1.0s算法类型: 【模拟】问题描述 给定一个十进制整数n,输出n的各位数字之和。输入格式 输入一个整数n。输出格式 输出一个整数,表示答案。样例输入20151220样例输出13样例说明 20151220的各位数字之和为2+0+1+5+1+2+2+0=13。评测用例规模与约定 所有评测用例满足:...
2019-01-17 13:58:38
866
原创 备战考研CCFCSP篇——201503(图像旋转、数字排序、节日、网络延时、最小花费)
试题编号: 201503-1试题名称: 图像旋转时间限制: 5.0s算法类型: 【暴力】问题描述 旋转是图像处理的基本操作,在这个问题中,你需要将一个图像逆时针旋转90度。 计算机中的图像表示可以用一个矩阵来表示,为了旋转一个图像,只需要将对应的矩阵旋转即可。输入格式 输入的第一行包含两个整数n, m,分别表示图像矩阵的行数和列数。 接下来n行每行包含m个整数,表示输入的...
2019-01-14 21:13:11
751
AstroGrep 4.4.7
2020-10-24
Draft P802.11ax_D3.0.pdf
2020-04-04
RISC-V中文架构手册开源指令集的指南 RISC-V-Reader-Chinese-v2p1
2020-02-26
DHT11--STC12C5A程序.rar
2019-05-23
WIFI—ESP8266.rar
2019-05-17
嵌入式系统设计课程设计题目参考
2019-01-01
计算机考研必备书籍——数据结构1800(含答案)
2019-01-01
嵌入式系统原理课程设计相关文件
2019-01-01
微机原理实验课件(最全)
2019-01-01
“互联网+”大学生创新创业大赛项目计划书
2019-01-01
创业计划书
2019-01-01
嵌入式课程设计QT完美实现任意进制运算的计算器
2017-12-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人