自定义博客皮肤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 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 105

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

第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 812 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 198

原创 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 115

原创 线段树经典题目

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 4021

原创 【无标题】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 54

原创 青蛙跳做题心得

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

原创 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 64

原创 2021-05-22

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

2021-05-22 17:05:19 61

原创 算法应用心得

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

2021-04-04 21:45:00 80

原创 1020 月饼 俩分测试点

1020 月饼## 找不到测试点这里是引用23分卡点:没有考虑到 需求可能大于总的库存的情况以下代码为满分代码#include#include#includeusing 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 135

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

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

2022-04-24

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

TA关注的人

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