自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(49)
  • 资源 (1)
  • 收藏
  • 关注

原创 【RDP】win10家庭版 RDP wrapper 出现 not listening not supported

win10更新后,remote desktop又连不上,打开RDPconf.exe,如下图中版本是10.0.19041.964,而这次win10更新后版本是10.0.19042.985。又要去更新C:\Program Files\RDP Wrapper目录下的rdpwrap.ini了。。。还好这次找了一会儿就找到了,有好心人在github放的最新版(2021年5月)了。(好心人,棒!)把文件内容复制下来,以管理员身份覆盖原来的rdpwrap.ini,在命令行中运行下图的RDPWInst.exe。

2021-05-12 22:19:29 5388 3

原创 【坑】Tkinter ‘NoneType‘ object has no attribute ‘destroy‘

用Tkinter的组件时遇到,无法摧毁/隐藏/放置的情况AttributeError: ‘NoneType’ object has no attribute ‘place’AttributeError: ‘NoneType’ object has no attribute ‘place_forget’AttributeError: ‘NoneType’ object has no attribute ‘destroy’出现这个错误的原因,举个例子:# 写法一:c = a().b()式写法# 由于

2020-12-15 01:38:47 2499

原创 【Deepin】 Deepin 系统安装教程

安装过程制作启动的盘安装设置记录一下第N次安装Deepin系统的过程。制作启动的盘下载:前往官网下载最新的或者所需版本的Deepin的ISO镜像。在下载页面选择下载源,另外下载深度启动盘制作工具。格式化:准备一个足够大的U盘,一般16G的足够。U盘连上电脑后,右键格式化,格式化为FAT格式,不要格式化为NTFS,不然安装的时候EFI识别不了。制作启动盘:打开深度启动盘制作工具,按提示执行。选择ISO镜像,选择U盘,开始制作。安装设置U盘启动项:如果有EFI工具的话,就设置U盘启动项为第一项

2020-07-11 02:39:17 9050

原创 【TensorFlow 2】Linux 下 TensorFlow 2.x 安装与环境配置

教程目录TensorFlow 安装步骤安装 Anaconda安装 tensorflow2.xNVIDIA 显卡驱动的安装windowslinuxCUDA Toolkit 和 cuDNN 的安装验证安装IDE 设置VSCode下面总结一下安装过程和我踩过的坑。我主要参考的是下面这个官方教程,算比较完整。安装时可能遇到教程之外的坑,但大部分能查到解决方案。官方中文教程本文如有疏漏,欢迎指正。TensorFlow 安装步骤安装 AnacondaAnaconda能干嘛?用过python的应该知

2020-07-09 16:00:58 3798 1

原创 NOJ 1581.最佳加法式

描述给定n个1到9的数字,要求在数字之间摆放m个加号(加号两边必须有数字),使得所得到的加法表达式的值最小,并输出该值。例如:在1234中摆放一个加号最好的摆法就是12 + 34,和为36。输入输入有2行,第一行是一个非负整数m,表示有m个加号要放。第2行是若干个数字(之间没有空格,数字个数大于m),输出输出最小加法表达式的值。输入样例输入样例1:2123456输入样例...

2019-11-10 18:07:03 194

原创 算法设计与分析(复习总结,西工大,C/C++)

2019年11月8日考完算法当晚……感觉凉了死记不管用的,理解了才稳考完看了一下模板,有些地方写错了,现场没时间debug(菜鸡抹泪.jpg)简答题0.算法的基本概念、性质及其与程序的联系、区别算法:是指解决方案的准确而完整的描述,是一系列解决问题的清晰指令。算法的性质:输入:有零个或多个外部量作为算法的输入;输出:算法产生至少一个量作为输出;确定性:组成算法的每条指令...

2019-11-08 23:36:29 2399 9

原创 A - 数字三角形(FZU 1004)

题目链接题解题意:有一个数字三角形。现在从上到下,每次能向下或者向下右偏一个(比如1能到下面的7或7右边第一个4),这样直到最底下一层,将经过的数字加起来,求最大和。 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5思路:最简单的dp。每次输入第i行第j列的数,就更新当前该位置最大数字和,即T[i][j].max_su...

2019-08-06 22:14:05 111

原创 C - map(POJ 2503)

题目链接题解题意:先输入词典,将一些单词和特定字符串一一对应,然后输入特定字符串,将他们翻译成英文单词。思路:用STL的map。比较不好处理的是读入。其他方法参考CodeG++会TLE,C++可以过#include<iostream>#include<stdio.h>#include<map>#include<string&...

2019-08-06 15:52:00 186

原创 H - 最少拦截系统(HDU 1257)

题目链接题解题意:List item思路:List itemCode#include<iostream>#include<algorithm>using namespace std;int main(){ int M, N, ans, i, j; int data[1009]; int dp[1009]; wh...

2019-08-06 11:21:06 159

原创 A - Number Triangle(FZU 1004)

题目链接题解题意:有一个数字三角形。现在从上到下,每次能向下或者向下右偏一个(比如1能到下面的7或7右边第一个4),这样直到最底下一层,将经过的数字加起来,求最大和。 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5思路:最简单的dp。每次输入第i行第j列的数,就更新当前该位置最大数字和,即T[i][j].max_su...

2019-08-06 10:16:49 129

原创 Z - Bitset(HDU 2051)

题目链接题解题意:十进制数转化为二进制数思路:水题,用itoa()函数,再stdlib.h里面。char *itoa(int _Val, char *_DstBuf, int _Radix)。Code#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){...

2019-08-05 19:28:20 117

原创 Y - A == B ?(HDU 2054)

DescriptionGive you two numbers A and B, if A is equal to B, you should print “YES”, or print “NO”.Inputeach test case contains two numbers A and B.Outputfor each case, if A is equal to B, y...

2019-08-05 08:54:36 127

原创 K - Big Number(HDU 1018)

题目链接题解题意:给一个整数n,求n的阶乘的数位思路:整数m的数位 = lg(m),n! 的数位 = lg(n!) = lg1 + lg2 + lg3 + ……+lg(n)。Code#include<iostream>#include<math.h>#define ll lon longusing namespace std;double c...

2019-08-04 10:59:26 93

原创 H - 素数表(POJ 2635)

题目链接题解题意:List item思路:List itemCode

2019-08-03 22:35:01 140

原创 G - stl 的 优先队列(POJ 2833)

题目链接题解题意:给n个分数,去掉n1个思路:List itemCode#include<iostream>#include<stdio.h>#include <queue>#define ll long longusing namespace std;double ans;priority_queue<int,vect...

2019-08-03 20:37:39 144

原创 F - 递推(HDU 2050)

题目链接题解题意:给c行数据,每行一个整数n,求n条V形折线最多可将平面分成区域的个数思路:画个图,列个表即可得出递推式来。Code#include<iostream>using namespace std;int sum(int N){ int ans = 1; for(int i = 1; i <= N; i++) ...

2019-08-03 20:00:27 90

原创 E - 贪心(HDU 1009)

题目链接题解题意:给m单位catfood,和n个整数对 J[ i ] 、F[ i ],表示F[ i ] 单位的catfood可交换得J[ i ]javabean,但是单次也可按比率交换。求最大可交换得多少javabean。思路:贪心。将每组整数按比值降序排列,遍历数组,直到m减为0,或者所有可交换的都得到了。Code#include<iostream>#inc...

2019-08-03 19:15:21 120

原创 D - stl 的 map(HDU 1155)

Problem DescriptionOnce again, James Bond is fleeing from some evil people who want to see him dead. Fortunately, he has left a bungee rope on a nearby highway bridge which he can use to escape from...

2019-08-03 12:10:16 93

原创 C - stl 的 map(HDU 1263)

Problem Description夏天来了~好开心啊,呵呵,好多好多水果 ~Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了.Input第一行正整数N(0<N<=10)表示有N组测试数据.每组测试数据的第一行是一个整数M(0<M<=100),表示工有...

2019-08-02 20:51:28 160

原创 B - stl 的 map(HDU 1075)

Problem DescriptionIgnatius is so lucky that he met a Martian yesterday. But he didn’t know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...

2019-08-02 20:25:37 95

原创 A - stl 的 map(HDU 1004)

Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges’ favorite time is guessing the most popular problem. When the contest i...

2019-08-02 20:00:16 88

原创 Z - A + B Problem II(HDU 1002)

Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(1<=T<=...

2019-07-31 16:31:45 110

原创 X - Specialized Four-Digit Numbers(POJ 2196)

DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) nota...

2019-07-31 15:53:17 100

原创 W - The Circumference of the Circle(POJ 2242)

DescriptionTo calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don’t?You are given the cartesian coordinates of three non-colline...

2019-07-31 15:37:12 78

原创 V - The Fun Number System(POJ 1023)

DescriptionIn a k bit 2’s complement number, where the bits are indexed from 0 to k-1, the weight of the most significant bit (i.e., in position k-1), is -2^(k-1), and the weight of a bit in any pos...

2019-07-31 14:25:10 99

原创 U - Long Distance Racing(POJ 3672)

DescriptionBessie is training for her next race by running on a path that includes hills so that she will be prepared for any terrain. She has planned a straight path and wants to run as far as she ...

2019-07-31 01:50:05 104

原创 S - Counterfeit Dollar(POJ 1013)

DescriptionSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it indistinguishable...

2019-07-31 01:32:57 109

原创 R - Joseph(POJ 1012)

The Joseph’s problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, . . ., n, standing in circle every mth is going to be executed ...

2019-07-30 23:02:08 135

原创 O - Number Sequence(POJ 1019)

DescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2…Sk. Each group Sk consists of a sequence of positiv...

2019-07-30 20:33:04 144

原创 I - Safecracker(HDU 1015)

Description“The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them, along with Klein and his factory, were destroyed in World ...

2019-07-30 16:26:24 84

原创 J - 归并排序求逆序对(POJ 1007)

DescriptionOne measure of “unsortedness” in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence “DAABEC“, this measure...

2019-07-30 16:06:04 108

原创 P - Reduced ID Numbers(POJ 2769)

T. Chur teaches various groups of students at university U. Every U-student has a unique Student Identification Number (SIN). A SIN s is an integer in the range 0 ≤ s ≤ MaxSIN with MaxSIN = 106-1. T. ...

2019-07-20 14:33:01 99

原创 O - Dirichlet's Theorem on Arithmetic Progressions (POJ 3006)

If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d, a + 3d, a + 4d, …, contains infinitely many prime numbers. This...

2019-07-20 13:43:47 107

原创 N - Bullseye(POJ 2272)

A simple dartboard consists of a flat, circular piece of cork with concentric rings drawn on it. Darts are thrown at the board by players in an attempt to hit the center of the dartboard (the Bullseye...

2019-07-20 13:06:35 246

原创 M-枚举答案能不能做?(HDU 1013)

The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two ...

2019-07-20 12:47:19 114

原创 L - Delta-wave(HDU 1030)

A triangle field is numbered with successive integers in the way shown on the picture below.The traveller needs to go from the cell with number M to the cell with number N. The traveller is able to e...

2019-07-20 11:37:04 115

原创 HDU 4506 小明系列故事——师兄帮帮忙

小明系列故事——师兄帮帮忙(HDU 4506)Problem Description小明自从告别了ACM/ICPC之后,就开始潜心研究数学问题了,一则可以为接下来的考研做准备,再者可以借此机会帮助一些同学,尤其是漂亮的师妹。这不,班里唯一的女生又拿一道数学题来请教小明,小明当然很高兴的就接受了。不过等他仔细读题以后,发现自己也不会做,这下小明囧了:如果回复说自己不懂,岂不是很没面子?  所...

2019-07-20 10:33:07 122

原创 快速幂、逆元、扩展欧几里得算法、费马小定理

今天听了一位大佬讲的课,想把学的内容记下来,有搜了搜相关资料,整理一下。快速幂什么是快速幂?快速幂就是比通常累乘更快的算底数的n次幂。时间复杂度为 O(log₂N), 而累乘的为O(N)。引入:假如我们计算a8,如果我们已经计算到了a4这一步,通常是再乘4次a,但是此时平方一次就可以得到答案了啊。计算a32可以一直平方得到答案,但是计算a36就不能光平方了。原理:想一想,36 = 10...

2019-07-20 00:43:48 296

原创 K - next_permutation(HDU 1027)

Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebub has to beat our hero first. feng5166 says, “I ha...

2019-07-19 20:32:54 109

原创 J - Ignatius and the Princess IV(HDU 1029)

“OK, you are not too bad, em… But you can never pass the next test.” feng5166 says.“I will tell you an odd number N, and then N integers. There will be a special integer among them, you have to tell ...

2019-07-19 17:52:40 108

noj 100题全.zip

noj100题答案C语言代码

2020-03-12

空空如也

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

TA关注的人

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