<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Binbin的技术博客]]></title><description><![CDATA[编程技术]]></description><link>https://blog.youkuaiyun.com/qshbbh</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; qshbbh]]></copyright><item><title><![CDATA[2024年全国大学生数学建模C题分享]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/142688447</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/142688447</guid><author>qshbbh</author><pubDate>Thu, 03 Oct 2024 07:43:37 +0800</pubDate><description><![CDATA[前段时间自己写了一下全国大学生数学建模的C题，题目想对比较清楚，属于一个数学规划类题目，单目标，5~6个约束条件，相对不同的是因为不同地块种植的不同作物，所有需要用到稀疏集合来定义，目标函数属于需要对分段函数进行线性化处理，剩下的就是用gurobi或者其他求解器求解数学规划，即可。欢迎大家给出更多意见，我进一步完善。]]></description><category></category></item><item><title><![CDATA[洛谷P1601]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/133838194</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/133838194</guid><author>qshbbh</author><pubDate>Sun, 15 Oct 2023 11:27:55 +0800</pubDate><description><![CDATA[加法运算的规则如下：1. 从左到右依次计算2. 两个数组的数字对应位置相加，加上上一次的进位（上次进位为上次的和除以10的商），然后对10取余。注意：可以根据题目中数据的大小约束，设置较大的数组，并且两个数组的大小一致，这样有点浪费空间和时间。后面可以用可变数组来优化。i>=0;i--){i < n;i < n;int a[501];int b[501];int c[501];n--]]></description><category></category></item><item><title><![CDATA[洛谷第P1957]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/133731147</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/133731147</guid><author>qshbbh</author><pubDate>Tue, 10 Oct 2023 05:50:39 +0800</pubDate><description><![CDATA[5. 因为每行的输入可能是2个也可能是3个，是根据第一个字符来确定的，需要用到条件来判断，当输入的第一个字符串的第一个字符是a,b,或者c的时候，接下来读入两个整数，否则将已经读入的字符串转化为整数，接着再读入一个整数。6. 需要在循环外定义一个变量表示运算符，当没有更改时，维持上一个运算。1. 字符串转化为字符数组，用到字符串的.c_str()函数。7. 需要用到二维字符数组，先将结果保存下来，然后再输出。4. 字符数字的实际长度获取，用到strlen()函数。]]></description><category></category></item><item><title><![CDATA[MATLAB实现分支定界法求解整数规划]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/130490141</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/130490141</guid><author>qshbbh</author><pubDate>Thu, 04 May 2023 16:41:24 +0800</pubDate><description><![CDATA[分支定界法求解整数规划]]></description><category></category></item><item><title><![CDATA[欧拉习题40]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121306845</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121306845</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 16:55:14 +0800</pubDate><description><![CDATA[题目如下：


An irrational decimal fraction is created by concatenating the positive integers:

0.123456789101112131415161718192021...

It can be seen that the 12thdigit of the fractional part is 1.

Ifdnrepresents thenthdigit of the fractional part, find ...]]></description><category></category></item><item><title><![CDATA[欧拉习题39]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121306816</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121306816</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 16:53:21 +0800</pubDate><description><![CDATA[题目如下


Ifpis the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions forp= 120.

{20,48,52}, {24,45,51}, {30,40,50}

For which value ofp≤ 1000, is the number of solutions maximised?


代码


clear;...]]></description><category></category></item><item><title><![CDATA[欧拉习题38]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121306790</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121306790</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 16:51:27 +0800</pubDate><description><![CDATA[题目如下：


Take the number 192 and multiply it by each of 1, 2, and 3:

192 × 1 = 192
192 × 2 = 384
192 × 3 = 576

By concatenating each product we get the 1 to 9 pandigital, 192384576. We will call 192384576 the concatenated product of 192 and (1,2,3)

The s]]></description><category></category></item><item><title><![CDATA[欧拉习题37]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121306741</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121306741</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 16:48:30 +0800</pubDate><description><![CDATA[题目如下：


The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime at each stage: 3797, 797, 97, and 7. Similarly we can work from right to left: 3797, 379, 37, and 3.
]]></description><category></category></item><item><title><![CDATA[欧拉习题36]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121299829</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121299829</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 08:45:57 +0800</pubDate><description><![CDATA[题目如下：


The decimal number, 585 = 10010010012(binary), is palindromic in both bases.

Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.

(Please note that the palindromic number, in either base, may not inclu.]]></description><category></category></item><item><title><![CDATA[欧拉习题35]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121299050</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121299050</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 00:46:06 +0800</pubDate><description><![CDATA[题目如下：


The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime.

There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97.

How many circular primes are t]]></description><category></category></item><item><title><![CDATA[欧拉习题34]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121298706</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121298706</guid><author>qshbbh</author><pubDate>Sat, 13 Nov 2021 00:17:10 +0800</pubDate><description><![CDATA[题目如下：


145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.

Find the sum of all numbers which are equal to the sum of the factorial of their digits.

Note: As 1! = 1 and 2! = 2 are not sums they are not included.


采用暴力方法


clear;clc;close all
]]></description><category></category></item><item><title><![CDATA[欧拉习题33]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121297958</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121297958</guid><author>qshbbh</author><pubDate>Fri, 12 Nov 2021 23:11:01 +0800</pubDate><description><![CDATA[题目如下


The fraction49/98is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that49/98=4/8, which is correct, is obtained by cancelling the 9s.

We shall consider fractions like,30/50=3/5, to...]]></description><category></category></item><item><title><![CDATA[欧拉习题32]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121297399</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121297399</guid><author>qshbbh</author><pubDate>Fri, 12 Nov 2021 22:38:23 +0800</pubDate><description><![CDATA[题目如下：


We shall say that ann-digit number is pandigital if it makes use of all the digits 1 tonexactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital.

The product 7254 is unusual, as the identity, 39 × 186 = 7254, containing m...]]></description><category></category></item><item><title><![CDATA[欧拉习题31]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121285456</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121285456</guid><author>qshbbh</author><pubDate>Fri, 12 Nov 2021 12:07:05 +0800</pubDate><description><![CDATA[题目如下：


In the United Kingdom the currency is made up of pound (£) and pence (p). There are eight coins in general circulation:

1p, 2p, 5p, 10p, 20p, 50p, £1 (100p), and £2 (200p).

It is possible to make £2 in the following way:

1×£1 + 1×50p + 2×20p + 1]]></description><category></category></item><item><title><![CDATA[欧拉习题30]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121096414</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121096414</guid><author>qshbbh</author><pubDate>Tue, 02 Nov 2021 11:10:20 +0800</pubDate><description><![CDATA[题目如下：


Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:




As 1 = is not a sum it is not included.

The sum of these numbers is 1634 + 8208 + 9474 = 19316.

Find the sum of all the numbers that ..]]></description><category></category></item><item><title><![CDATA[欧拉习题29]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121096240</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121096240</guid><author>qshbbh</author><pubDate>Tue, 02 Nov 2021 11:05:32 +0800</pubDate><description><![CDATA[题目如下：


Consider all integer combinations ofabfor 2 ≤a≤ 5 and 2 ≤b≤ 5:

=4, =8, =16, =32=9, =27, =81, =243=16, =64, =256, =1024=25, =125, =625, =3125

If they are then placed in numerical order, with any repeats removed, we get the following sequence...]]></description><category></category></item><item><title><![CDATA[欧拉习题28]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121095889</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121095889</guid><author>qshbbh</author><pubDate>Tue, 02 Nov 2021 10:50:30 +0800</pubDate><description><![CDATA[题目如下：


Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:

2122 23 2425
20 78 910
19 6 12 11
18 54 3121716 15 1413

It can be verified that the sum of the numbers on the diag...]]></description><category></category></item><item><title><![CDATA[欧拉习题27]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121086388</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121086388</guid><author>qshbbh</author><pubDate>Tue, 02 Nov 2021 10:39:34 +0800</pubDate><description><![CDATA[题目如下：


Euler discovered the remarkable quadratic formula:



It turns out that the formula will produce 40 primes for the consecutive integer values0≤n≤39. However, whenn=40,+40+41=40(40+1)+41is divisible by 41, and certainly whenn=41,+41+41is clearl...]]></description><category></category></item><item><title><![CDATA[欧拉习题26]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121081425</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121081425</guid><author>qshbbh</author><pubDate>Mon, 01 Nov 2021 15:38:20 +0800</pubDate><description><![CDATA[题目如下：


A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:


1/2
			=
			0.5
		1/3
			=
			0.(3)
		1/4
			=
			0.25
		1/5
			=
			0.2
		1/6
			=
			0.1(6)
		1/7
			=
			0...]]></description><category></category></item><item><title><![CDATA[欧拉习题25]]></title><link>https://blog.youkuaiyun.com/qshbbh/article/details/121080692</link><guid>https://blog.youkuaiyun.com/qshbbh/article/details/121080692</guid><author>qshbbh</author><pubDate>Mon, 01 Nov 2021 15:16:47 +0800</pubDate><description><![CDATA[题目如下：


The Fibonacci sequence is defined by the recurrence relation:



Hence the first 12 terms will be:



The 12th term, F12, is the first term to contain three digits.

What is the index of the first term in the Fibonacci sequence to contain 1000 digi]]></description><category></category></item></channel></rss>