自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

077CYW的博客

个人学习过程中的一些思考总结

  • 博客(120)
  • 收藏
  • 关注

原创 解决复杂问题心得

分解问题至可以解决的多个小问题,再一个问题一个问题解决。每次仅关注当前问题,避免因进度缓慢而产生畏难心理。 每个任务都设置Deadline。

2023-11-06 18:03:16 50

原创 时间和目标管理技巧总结

每天设置一个基础目标和一个挑战目标。基础目标必须完成,挑战目标尽力达成。 梳理自己每天的时候花费。除去必要支撑时间外,有多少时间可以用来完成自己的需求,问题单,和总结。 每天花半个小时简单总结一下输入和输出。如果需要发布,就在简单总结的基础上继续细化,补充细节再发表即可。 确保有效投入。超过10分钟没有任何进展的问题,直接挂起,切换到别的事务,再慢慢思考解决方法,等有思路了再切换到这个问题继续攻关。

2023-11-04 12:03:00 182

原创 将EFI打包成ISO启动项

编译或者下载EFI文件,例如:https://gitee.com/mirrors/edk2/blob/UDK2018/ShellBinPkg/UefiShell/X64/Shell.efi 新建目录efi,子目录boot。将Shell.efi重命名为bootx64.efi,移动到boot目录下。 打开UItraISO,文件-新建-硬盘映像 选择映像格式,确定。 本地目录打开efi的上级目录,将efi文件夹拖动或添加至光盘目录。 保存 新建启动光盘映像 选择刚刚保存的软盘映像文件 保存成I

2021-08-17 00:22:17 2694

原创 Django删除MySQL数据库表格后如何重建

(1)删除数据库表(2)数据库里有一个记录生成表格记录的django_makemigrations表删除创建表的记录,app字段值为对应appname,例如myapp(3)删除项目里migrations文件夹下除_init_.py的所有文件(4)然后重新执行命令,表就重新生成了python manage.py makemigrationspython manage.py m...

2020-05-03 20:16:06 516

原创 华为2016校园招聘上机笔试题-最高分是多少

#include<bits/stdc++.h>using namespace std;int FindMax(vector<int>& vec,int A,int B){ int MaxValue=vec[A-1]; for(int i=A;i<B;i++) { if(vec[i]>MaxValue) ...

2020-03-18 17:06:00 358

原创 华为2016校园招聘上机笔试题-简单错误记录

#include<bits/stdc++.h>using namespace std;class ErrorRecord{ public: string name; int lineNum; int times; int order; ErrorRecord() { ...

2020-03-18 17:00:36 153

原创 切图并动画化

切图工具:http://renderhjs.net/shoebox/安装完成后,将图片拖拽到此处,save切割完成动画化看教程:https://docs.cocos.com/creator/manual/zh/video-tutorial/index.htmlsample设置为12第一个动画完成。其他动画类似。...

2019-07-24 10:56:26 303

原创 调整碰撞系统

打开项目,点击场景Main双击Maze勾选可编辑出现绿点,调整大小,贴合图形即可。

2019-07-23 16:55:26 144

转载 Socket通信原理

对TCP/IP、UDP、Socket编程这些词你不会很陌生吧?随着网络技术的发展,这些词充斥着我们的耳朵。那么我想问:1.什么是TCP/IP、UDP?2.Socket在哪里呢?3.Socket是什么呢?4.你会使用它们吗?什么是TCP/IP、UDP?TCP/IP(Transmission Cont...

2019-06-16 11:11:48 251

原创 桂电免出校器实现自动宽带拨号,免除你每天拨号的烦恼——路由器以斐讯K2为例

注:本文方法已失效。因校园网进行升级改造正式启用了新认证系统,停用了原有PPPoE拨号(IPClient客户端)认证系统。 众所周知,在桂电,你在宿舍想用宽带通常要使用出校器进行拨号。这导致了每天上网前,你都不得不将你的电脑电源和鼠标键盘HDMI线以及网线拔掉,然后将3kg的笔记本移动到3米外,再将接路由器WAN口的网线拔掉,插到电脑的网线接口里,打开电脑,登录出校器,完了再将网线插...

2019-04-09 23:03:08 1688 2

转载 Xftp不能打开远程文件夹

问题:Xftp无法打开Ubuntu的需要权限的目录,会显示“不能打开远程文件夹”。解决方案:用root登录。Tips:权限过大,慎用。开启root远程登录见:Ubuntu-18.04 下修改root用户密码,安装SSH服务,允许root用户远程登录,安装vsftp服务器...

2019-04-02 21:19:39 1990

原创 蓝桥杯第九届省赛JAVA真题7——螺旋折线

标题:螺旋折线如图p1.pgn所示的螺旋折线经过平面上所有整点恰好一次。 对于整点(X, Y),我们定义它到原点的距离dis(X, Y)是从原点到(X, Y)的螺旋折线段的长度。 例如dis(0, 1)=3, dis(-2, -1)=9 给出整点坐标(X, Y),你能计算出dis(X, Y)吗?【输入格式】X和Y对于40%的数据,-1000 <= X, ...

2019-03-20 12:07:47 348 2

转载 eclipse连接mysql-8.0.12-winx64

转载博客:https://blog.csdn.net/fanjianwucmx/article/details/54882044结合博客:https://blog.csdn.net/weixin_37577564/article/details/80329775 进行了修正利用eclipse连接数据库 第一步:安装mysql参考博客:https://www.cnblogs.com/l...

2018-08-19 17:32:21 4288

转载 完美解决 未能打开编辑器:Unmatched braces in the pattern.

原文地址:http://blog.csdn.net/hytdsky/article/details/4736462Eclipse出现这个问题而不能查看源代码  原因就是语言包的问题 出现这个问题了 一定是安装了中文或者多国语言包下面我就来交大家解决的办法 超简单的第一步配置自己Eclipse的启动参数  eclipse.ini  在最后面加入这段代码   -Duser.langua...

2018-08-05 09:21:25 312

转载 CodeLite无法调用deepin深度终端的解决方案

更改设置(图片来自深度社区)

2018-05-26 18:29:33 584

转载 hdu6185 Covering (递推+矩阵快速幂)

转载地址:https://blog.csdn.net/elbadaernu/article/details/77825979Problem Description Bob’s school has a big playground, boys and girls always play games here after school.To protect boys and girls from g...

2018-05-24 23:40:11 158

转载 欧拉函数与原根

#include &lt;cstdio&gt;#include &lt;cstring&gt;#include &lt;vector&gt;using namespace std;//奇素数的原根个数=phi(phi(n))=phi(n-1);//大佬的代码const int kMax = 100000 + 10;int n;int num[kMax];vector&lt;i...

2018-05-10 23:14:20 249

转载 埃氏素数筛法模板

#include &lt;iostream&gt;#include &lt;cstdio&gt;#include&lt;algorithm&gt;using namespace std;const int Kmax=8000005;bool is_prime[Kmax];int main(){ //begin fill(is_prime,is_prime+Kmax,1)...

2018-05-07 22:17:03 207

转载 GCD之更相减损术

#include &lt;iostream&gt;#include &lt;cstdio&gt;#include&lt;algorithm&gt;using namespace std;/*algorithm内置了最大公约数模板__gcd(a,b),注意gcd前面有两道下划线。*//*提示说是欧几里得,坑我看了老半天,结果发现是更相减损术*/int main(){ int t...

2018-05-07 21:40:01 484

转载 Trouble of Tyrant

题意:1到i有直达的边,i到i-1也有连接的边,问每条边加d后的最短路径的长度。#include &lt;iostream&gt;#include &lt;cstdio&gt;#include &lt;cstdlib&gt;using namespace std;/*代码来自tangent(谭)*//*最小加长距离必然是从最短距离路径的转折点往后移动而增加的,每次扫描当前转折点到最后一...

2018-05-04 23:29:43 184

转载 线扫描之面积并

#include &lt;cstdio&gt;#include &lt;map&gt;#include &lt;algorithm&gt;using namespace std;/*代码来自大佬*/typedef long long ll;const int kMax = 50000 + 10;struct P { int x, p, v; P(int _x =...

2018-05-01 21:35:01 178

转载 线扫描法之周长并

#include &lt;cstdio&gt;#include &lt;map&gt;#include &lt;algorithm&gt;using namespace std;/*代码来自大佬*/typedef long long ll;const int kMax = 50000 + 10;struct P { int x, p, v;//坐标,序号,+1或-1 ...

2018-05-01 16:41:33 353

转载 数据的离散化(排序)

#include&lt;cstdio&gt;#include&lt;map&gt;#include&lt;algorithm&gt;using namespace std;const int Kmax=500000+10;//数组开小了,尴尬int num[Kmax];int temp[Kmax];int sum[Kmax];int n;map&lt;int,int&gt; mp...

2018-05-01 12:51:53 886

原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple-A

题意:判断是否满足严格的先增后减#include&lt;cstdio&gt;#include&lt;string&gt;using namespace std;int main(){ long long t; long long n,m1,m2,flag,dir; scanf("%lld",&amp;t); while (t--) { flag=1;//...

2018-04-30 21:42:50 169

原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - B

#include&lt;cstdio&gt;#include&lt;algorithm&gt;#include&lt;map&gt;using namespace std;const int Kmax=1e5+50;int a[Kmax];int b[Kmax];map&lt;int,int&gt; mp;int main(){ int t,n,len; scan...

2018-04-30 21:41:07 241

原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - L

题目很长,题意很简单:计算出H,对preference排序,取前m个输出即可。注意数据类型,被卡了一下。#include&lt;cstdio&gt;#include&lt;iostream&gt;#include&lt;algorithm&gt;#include&lt;string&gt;using namespace std;string str1,str2;struct node...

2018-04-30 21:36:07 218

原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - J

PS:服气,居然能爆int。#include&lt;cstdio&gt;#include&lt;string&gt;using namespace std;const long long Kmax=1e5+10;long long num[Kmax];void init(){ num[0]=0; for(long long i=1;i&lt;Kmax;i++){ ...

2018-04-30 21:19:15 144

转载 树状数组维护区间最值

#include&lt;iostream&gt;#include&lt;algorithm&gt;using namespace std;const int Kmax=2e5+10;typedef long long ll;ll a[Kmax],c[Kmax];int index=0;inline int lowbit(int x){ return x&amp;-x;}...

2018-04-26 17:35:34 923

转载 二维树状数组之模板2

#include &lt;cstdio&gt;#include &lt;algorithm&gt;using namespace std;/*代码来自大佬。*/const int kMax = 1000 + 10;int n;int num[kMax][kMax];inline int lowbit(int x) { return x &amp; -x; }int gets...

2018-04-24 22:01:49 108

转载 二维数组数组之模板1

#include &lt;cstdio&gt;#include &lt;algorithm&gt;using namespace std;/*代码来自大佬*/const int kMax = 1000 + 10;int n;int num[kMax][kMax];inline int lowbit(int x) { return x &amp; -x; }int getsu...

2018-04-24 21:58:01 321

转载 树状数组之较复杂的题(较抽象,需要较强的逻辑思维能力)

#include &lt;cstdio&gt;using namespace std;/*本来我想全部置1,取了的序号置零来着,但是大佬复杂度这么低的算法都快要超时了,我的大概率会超时*//*这道题看了好久*/const int kMax = 500000 + 10;int n;int sum[kMax];//下标前有几个人inline int lowbit(int x) { ...

2018-04-24 13:23:50 212

转载 树状数组之暂时不想注释

#include&lt;cstdio&gt;#include&lt;algorithm&gt;#include&lt;vector&gt;using namespace std;/*犯了一个很低级的错误。代码参考大佬*/const int Kmax=1e5+10;int n;int sum[Kmax];struct node{ int a,b,ord,res; no...

2018-04-23 19:49:14 88

原创 E. Copy and Submit II (推出递推公式)

#include&lt;cstdio&gt;#include&lt;algorithm&gt;#include&lt;vector&gt;using namespace std;/*刚开始被吓到了,其实很简单,将递归呈现在纸上就很显然了。*/typedef long long ll;const ll M =1000000007;int main(){ int n; whil...

2018-04-23 18:50:30 157

转载 B. Goldbach(快速判断大素数)

#include&lt;iostream&gt;#include&lt;cmath&gt;#include&lt;cstdlib&gt;#include&lt;ctime&gt;#include&lt;cstdio&gt;using namespace std;/*枚举两个奇数加数,直接套用米勒罗宾素数测试方法模板判断是否是素数。模板地址在另一个博客里。*/typedef unsig...

2018-04-23 18:50:05 591

转载 Reversion Count(打表找规律)

#include&lt;iostream&gt;#include&lt;cstdio&gt;#include&lt;string&gt;using namespace std;/*判断该数字除首尾后是否构成回文*/string s;int main(){ while(cin&gt;&gt;s){ bool flag=true; for(int i=1;i&lt;s...

2018-04-22 16:16:30 190

转载 (模板)米勒罗宾素数测试(大数素数判断)

转载地址:https://blog.csdn.net/u013654696/article/details/40056179[cpp] view plain copy// 18位素数:154590409516822759  // 19位素数:2305843009213693951 (梅森素数)  // 19位素数:4384957924686954497  LL prime[6] = {2, 3, ...

2018-04-22 16:09:00 1163

转载 树状数组之较复杂的区间统计(校长的问题)

#include &lt;cstdio&gt;#include &lt;vector&gt;#include &lt;algorithm&gt;using namespace std;/*代码是大佬的。*/const int kMax = 1e5 + 10;struct node{ int a, b, ord, res; node(int _a, int _b, i...

2018-04-21 22:05:44 164

转载 XTU 1236 Fraction

纯转载,转载地址:https://www.cnblogs.com/pshw/p/5572749.htmlFractionAccepted : 168 Submit : 1061Time Limit : 1000 MS Memory Limit : 65536 KB FractionProblem Description:Everyone has silly periods, especially ...

2018-04-21 21:46:37 147

转载 树状数组之区间修改(统计变单点)

#include &lt;cstdio&gt;using namespace std;/*区间修改。 * 但是统计求和当成了单点。 * add(a)相当于从a加到n。sub(b)相当于从b减到n。 */const int kMax = 1e6 + 10;int n;int num[kMax];inline int lowbit(int x) { return x &amp;...

2018-04-21 17:51:19 116

转载 树状数组之模板

#include&lt;cstdio&gt;using namespace std;/*树状数组复杂度较低,而且代码量较少,除了适用范围较窄,其他方面都让人感觉非常舒服。*/const int Kmax=1e6+20;int num[Kmax];int res[Kmax];int n;inline int lowbit(int x){ return x&amp;-x;//取反...

2018-04-21 16:42:28 89

空空如也

空空如也

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

TA关注的人

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