自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

原创 退火算法学习笔记

import math import numpy as np T = 1000 Tmin = 1 sectionl = -4 sectionh = 16 xold = np.random.uniform(sectionl,sectionh) k = 100 yold = 0 t = 0 def aimFunction(x): y = x*math.sin(x) return y def judge(de,tmp): if(de < 0): return

2022-05-28 15:17:17 227

原创 【无标题】数学实验 慕课答案 第一节

第1讲 MATLAB软件入门 单元测验(MATLAB软件入门) 1、 问题:清空 MATLAB 工作空间内所有变量的命令是 选项: A:clc B:clf C:clear D:cls 答案: 【clear】 2、 问题:当在命令行窗口执行命令时,如果不想立即在命令行窗口中输出结果,可以在命令后加上( )。 选项: A:, B:; C:… D:直接回车 答案: 【;】 3、 问题:如果x=1: 2 : 10,则x(1)和x(5)分别是( ) 选项: A:1,10 B:1,9 C:2,10.

2022-04-24 19:13:08 1020 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 375

原创 Summary of my SC

skill for 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 practice sometimes ,I think we should think about the target of lear

2022-04-09 10:08:04 239

原创 线段树经典题目

leetcode 每日一题 四月四号 class NumArray { private: vector<int> segmentTree; int n; void build(int node,int l,int r,vector<int>& nums){ if(l == r) {segmentTree[node] = nums[l];return ;} int m = ( l + r) / 2; bu

2022-04-05 23:02:57 4141

原创 【无标题】summary of studying the storage cache

SUMMARY OF CACHE the idea it use put the currently used data int the nearest cache, by doing this ,we can cut the time we visit the data. reson the time to visit the main memory is hundrus times of the time to visit the cache. the more ,the time to

2022-04-05 19:27:47 163

原创 青蛙跳做题心得

#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 6083

原创 2021-05-30

实现一个银行账号类 功能与现实生活中的atm机相似 以下为代码: #include #include"bank.h" #include #include #include #include #include using namespace std; int find(string zhanghao,vector v1); int main () { //read the bank account information ifstream fin1; ofstream fout1; ofstream fou

2021-05-30 16:20:17 160

原创 2021-05-22

在这里插入图片描述 显然上述输出是乱码 点击右下方的utf,并找到gbk编码 最终输出如下:

2021-05-22 17:05:19 139

原创 算法应用心得

首先 ,必须说明,我是个编程小白,大佬勿喷, 写这个文章的主要原因是想记录一下 最近刷题的心得: 首先,刷题的目的,应该是在于熟练相关语法和算法,而不是去和题目死磕, 当遇到瓶颈时 ,肯定是因为题目所涉及的知识点超过了自己的知储备,所以这个时候应该静下心来,去翻翻书籍,补充一下自己的知识储备,我觉得这样,刷题的目的就已经达到了。刷题与阅读的相互作用,相互促进可能是,对我而言 最好的学习方式。 然后,我想说的是,在刷题的过程中 似乎还是存在着高中的心态,总以为知道答案了,就是搞明白这道题了,其实不然,仔细回味

2021-04-04 21:45:00 192

原创 1020 月饼 俩分测试点

1020 月饼## 找不到测试点 这里是引用 23分卡点: 没有考虑到 需求可能大于总的库存的情况 以下代码为满分代码 #include #include #include using namespace std; class goods{ public: double store; double price; double rate(){ return price/store; } }; bool cmp(goods a ,goods b); int main(){ int sum_kind ; int

2021-04-04 18:21:55 252

数学实验 慕课答案 慕课答案 木刻答案按

数学实验 慕课答案 慕课答案 木刻答案按

2022-04-24

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除