
心得
编程?小白
这个作者很懒,什么都没留下…
展开
-
退火算法学习笔记
import mathimport numpy as npT = 1000Tmin = 1sectionl = -4sectionh = 16xold = np.random.uniform(sectionl,sectionh)k = 100yold = 0t = 0def aimFunction(x): y = x*math.sin(x) return ydef judge(de,tmp): if(de < 0): return原创 2022-05-28 15:17:17 · 157 阅读 · 0 评论 -
【无标题】数学实验 慕课答案 第一节
第1讲 MATLAB软件入门 单元测验(MATLAB软件入门)1、 问题:清空 MATLAB 工作空间内所有变量的命令是选项:A:clcB:clfC:clearD:cls答案: 【clear】2、 问题:当在命令行窗口执行命令时,如果不想立即在命令行窗口中输出结果,可以在命令后加上( )。选项:A:,B:;C:…D:直接回车答案: 【;】3、 问题:如果x=1: 2 : 10,则x(1)和x(5)分别是( ) 选项:A:1,10B:1,9C:2,10.原创 2022-04-24 19:13:08 · 946 阅读 · 1 评论 -
整数除法(位运算)
class Solution {public: int divide(int dividend, int divisor) { if(divisor == INT_MIN) return (dividend == INT_MIN)?1:0; bool flag = false; if(dividend == INT_MIN && divisor == -1) return INT_MAX; else if(divide原创 2022-04-24 17:44:49 · 302 阅读 · 0 评论 -
Summary of my SC
skillfor every language of computer ,just learn how to use for and if .just like someone said ,we learned something just to remenber it rather than learn something for applying it into practicesometimes ,I think we should think about the target of lear原创 2022-04-09 10:08:04 · 186 阅读 · 0 评论 -
【无标题】summary of studying the storage cache
SUMMARY OF CACHEthe idea it useput the currently used data int the nearest cache,by doing this ,we can cut the time we visit the data.resonthe time to visit the main memory is hundrus times of the timeto visit the cache. the more ,the time to原创 2022-04-05 19:27:47 · 115 阅读 · 0 评论 -
青蛙跳做题心得
#include<iostream>using namespace std;int main(){ int n; cin>>n; int* tone = new int[n + 1]; for(int i = 0; i <= n; i++){ cin>>tone[i]; } int* path = new int[n + 1]; if(n == 1) { .原创 2022-03-27 14:11:34 · 6037 阅读 · 0 评论 -
2021-05-30
实现一个银行账号类功能与现实生活中的atm机相似以下为代码:#include#include"bank.h"#include#include#include#include#includeusing namespace std;int find(string zhanghao,vector v1);int main (){//read the bank account informationifstream fin1;ofstream fout1;ofstream fou原创 2021-05-30 16:20:17 · 102 阅读 · 0 评论 -
算法应用心得
首先 ,必须说明,我是个编程小白,大佬勿喷,写这个文章的主要原因是想记录一下 最近刷题的心得:首先,刷题的目的,应该是在于熟练相关语法和算法,而不是去和题目死磕,当遇到瓶颈时 ,肯定是因为题目所涉及的知识点超过了自己的知储备,所以这个时候应该静下心来,去翻翻书籍,补充一下自己的知识储备,我觉得这样,刷题的目的就已经达到了。刷题与阅读的相互作用,相互促进可能是,对我而言 最好的学习方式。然后,我想说的是,在刷题的过程中 似乎还是存在着高中的心态,总以为知道答案了,就是搞明白这道题了,其实不然,仔细回味原创 2021-04-04 21:45:00 · 113 阅读 · 0 评论