- 博客(98)
- 收藏
- 关注
原创 mysql ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password‘ cannot be loaded
谨以此记录运用mysql时遇到的一些问题:1. SQLyog 无法登录,错误代码2058查百度后说是mysql的加密问题,老版本不支持加密,需要在 m
2021-06-06 12:02:59
1910
2
原创 C语言笔记04--结构体
结构体定义:结构体里面能定义除自己本身之外的任何数据类型,虽然不能定义自己本身,但能定义自身类型的指针变量。如:struct node{ node n; // error 结构体内不能定义自己本身 node *next; // 可以定义自身类型的指针变量}访问结构体内元素:struct node{ int x; int info[20]; node *next;}n1, *n2;//普通变量访问结构体元素方法('.')n1.x
2021-02-08 11:05:15
499
原创 C语言笔记03--gets()和scanf()函数连用产生的问题
先上代码#include"stdio.h"#include"string.h"int main(){ int a; char s[10]; scanf("%d", &a); gets(s); printf("%d\n", a); printf("%s\n", s); return 0;}简单地要求输入一个整数和一个字符串,并将其分别存放到变量 a 和 数组 s 中,最后依次输出变量 a 和 s 的值但实际输出有点出乎
2021-02-01 17:36:34
1278
原创 C语言笔记02--memset()函数及其缺陷
memset() 函数的功能是:为某一数组赋初值,具体用法为 memset(array_name, init_number, sizrof(array)) (函数名,要赋的初值,数组的大小(按字节算,如sizeof(int) 为4))memset()缺陷:直接先上代码#include"stdio.h"#include"string.h"int main(){ int a[5] = {1, 2, 3, 4, 5}; memset(a, 0, sizeof(a)); // ..
2021-02-01 16:30:39
937
原创 C语言笔记01--格式输出
仅以此记重新开始的C语言之旅。#include"stdio.h"int main(){ double a=1.1, b=1.2; int c=1, d=2; // %md 可以使不足m位的int型变量以m位进行右对齐输出,其中高位用空格补齐,如果变量本身超过m位则保持原样 // %0md 右对齐,和%md的唯一不同在于:当变量不足m位时,将在前面补足够数量的0而不是空格 // %-md 左对齐,低位用空格补齐 printf("以%%10d形式输出:..
2021-01-31 11:29:41
567
原创 chrome proxy switchyOmega插件
先在github上将插件下载下来https://github.com/FelisCatus/SwitchyOmega/releases (下载速度可能比较慢,但能保证插件是最新版本,兼容性更好)将下好的 .crx文件拖入chrome的拓展程序中打开插件中的选项,情景模式中选择proxy(或者自己新建一个,名字自拟),将代理协议选择SOCKS5 代理服务器为127.0.0.1...
2019-02-20 12:35:57
45222
2
原创 python2 和python3 中input 的区别
python2中的input()函数:获取当前输入的内容,并将其作为指令来处理 python3中的input()函数:获取当前输入的内容,并将其作为字符串来处理举个简单的例子:先在python2交互式环境中运行: 相同的情况下在python3环境下运行:容易发现python3和python2的input()函数对输入的处理机制是不一样的我们回到python2中,...
2018-08-04 12:46:57
4424
2
转载 hdu -> acm -> A Multiplication Game
A Multiplication Game Time Limit : 5000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 2 Accepted Submission(s) : 2Problem Description Stan and Ollie play the ga...
2018-06-21 17:40:37
197
转载 hdu -> acm -> Calendar Game
Calendar Game Time Limit : 5000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 2 Accepted Submission(s) : 2Problem Description Adam and Eve enter this year’s ACM...
2018-06-21 17:38:30
173
转载 HDU -> ACM -> kiki's game
kiki's game Time Limit : 5000/1000ms (Java/Other) Memory Limit : 40000/1000K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 3Problem Description Recently kiki has nothing to do. W...
2018-06-21 17:36:30
206
转载 HDU -> ACM -> Public Sale
Public Sale Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 3Problem Description 虽然不想,但是现实总归是现实,Lele始终没有逃过退学的命运,因为他没有...
2018-06-21 17:34:19
187
转载 HDU -> ACM -> 悼念512汶川大地震遇难同胞——选拔志愿者
悼念512汶川大地震遇难同胞——选拔志愿者 Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 3Problem Description 对于四川同胞遭受的灾难,全国人民纷纷伸出援助之手,几...
2018-06-21 17:31:24
210
转载 HDU -> ACM -> Being a Good Boy in Spring Festival
Being a Good Boy in Spring Festival Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 3Problem Description 一年在外 父母时刻牵挂&...
2018-06-21 17:27:20
160
转载 HDU -> ACM -> Rabbit and Grass
Rabbit and Grass Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 3Problem Description 大学时光是浪漫的,女生是浪漫的,圣诞更是浪漫的,但是Rabbi...
2018-06-21 17:25:01
187
转载 HDU -> ACM -> Fibonacci again and again
Fibonacci again and again Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 5 Accepted Submission(s) : 2Problem Description 任何一个大学生对菲波那契数列(Fibonac...
2018-06-21 17:22:08
177
转载 HDU -> ACM -> Good Luck in CET-4 Everybody!
Good Luck in CET-4 Everybody! Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 7 Accepted Submission(s) : 5Problem Description 大学英语四级考试就要来临了,你是不是...
2018-06-21 17:19:40
184
转载 HDU -> ACM -> Brave Game
Brave Game Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 10 Accepted Submission(s) : 8Problem Description 十年前读大学的时候,中国每年都要从国外引进一些电影大片,其中有一部电影就...
2018-06-21 17:15:27
154
转载 HDU -> acm -> Tempter of the Bone
Tempter of the Bone Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 34 Accepted Submission(s) : 11Problem Description The doggie found a bone in...
2018-06-14 22:42:52
168
转载 HDU -> ACM -> Cup
Cup Time Limit : 3000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 12 Accepted Submission(s) : 6Problem Description The WHU ACM Team has a big cup, with which ...
2018-06-14 22:39:25
174
转载 HDU -> ACM -> Toxophily
Toxophily Time Limit : 3000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 7 Accepted Submission(s) : 7Problem Description The recreation center of WHU ACM Team...
2018-06-14 22:37:04
138
转载 HDU -> ACM -> Can you find it?
Can you find it? Time Limit : 10000/3000ms (Java/Other) Memory Limit : 32768/10000K (Java/Other)Total Submission(s) : 23 Accepted Submission(s) : 9Problem Description Give you three sequences of n...
2018-06-14 22:33:09
278
转载 HDU -> ACM -> Shell Pyramid
Shell Pyramid Time Limit : 5000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 11 Accepted Submission(s) : 5Problem Description In the 17th century, with thunder...
2018-06-14 22:29:52
187
转载 HDU -> ACM -> Shopping
Shopping Time Limit : 10000/5000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 16 Accepted Submission(s) : 6Problem Description Every girl likes shopping,so does...
2018-06-14 22:22:45
201
转载 HDU -> ACM -> Pseudoprime numbers
Pseudoprime numbers Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 21 Accepted Submission(s) : 13Problem Description Fermat's theorem states th...
2018-06-14 22:14:56
145
转载 HDU -> ACM -> Pie
Pie Time Limit : 5000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 32 Accepted Submission(s) : 19Problem Description My birthday is coming up and traditionally...
2018-06-14 22:11:36
118
转载 HDU -> acm -> Strange fuction
Strange fuction Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 31 Accepted Submission(s) : 28Problem Description Now, here is a fuction: F(x) ...
2018-06-14 22:07:45
118
转载 HDU -> ACM -> Can you solve this equation?
Can you solve this equation? Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 50 Accepted Submission(s) : 26Problem Description Now,given the equ...
2018-06-14 22:04:48
209
转载 HDU -> ACM -> Fruit
Fruit Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 18 Accepted Submission(s) : 13Problem Description 转眼到了收获的季节,由于有TT的专业指导,Lele获得了大丰收。特别是水果,Le...
2018-06-07 23:07:30
154
转载 HDU -> ACM -> 找单词
找单词 Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 15 Accepted Submission(s) : 14Problem Description 假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值...
2018-06-07 22:55:20
170
转载 HDU -> ACM -> The Balance
The Balance Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 26 Accepted Submission(s) : 15Problem Description Now you are asked to measure a dos...
2018-06-07 22:37:22
177
转载 HDU ->ACM ->Big Event in HDU
Big Event in HDU Time Limit : 10000/5000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 28 Accepted Submission(s) : 14Problem Description Nowadays, we all know that C...
2018-06-07 22:19:31
115
转载 HDU ->ACM ->Holding Bin-Laden Captive!
Holding Bin-Laden Captive! Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 51 Accepted Submission(s) : 26Problem Description We all know that Bi...
2018-06-07 22:16:15
148
转载 HDU -> ACM -> Square Coins
Square Coins Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 43 Accepted Submission(s) : 29Problem Description People in Silverland use square c...
2018-06-06 18:58:52
114
转载 HDU -> ACM -> Ignatius and the Princess III
Ignatius and the Princess III Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 40 Accepted Submission(s) : 30Problem Description "Well, it seems ...
2018-06-06 18:54:45
121
转载 HDU -> ACM -> 继续畅通工程
Problem Description 省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。现得到城镇道路统计表,表中列出了任意两城镇间修建道路的费用,以及该道路是否已经修通的状态。现请你编写程序,计算出全省畅通需要的最低成本。<br> Input 测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N ( 1...
2018-05-28 14:23:32
123
转载 HDU -&gt; ACM -&gt; 畅通工程再续
Problem Description 相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。...
2018-05-28 14:18:32
157
转载 HDU -&gt; ACM -&gt; 还是畅通工程
Problem Description 某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。<br> Input 测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N ( < 100 );...
2018-05-28 14:14:02
129
转载 HDU -&gt; ACM -&gt; 畅通工程
Problem Description 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? <br> Input 测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城镇数目N ( < 1...
2018-05-28 14:10:56
117
转载 HDU -> ACM -> Constructing Roads
Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connect...
2018-05-28 14:06:42
143
转载 HDU -&gt; ACM -&gt;More is better
Problem Description Mr Wang wants some boys to help him with a project. Because the project is rather complex, <b>the more boys come, the better it will be</b>. Of course there are certain...
2018-05-28 14:00:51
151
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人