<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_46304792的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/qq_46304792</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; qq_46304792]]></copyright><item><title><![CDATA[ADC采样4-20mA电流转换温度方法]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/145881570</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/145881570</guid><author>qq_46304792</author><pubDate>Wed, 26 Feb 2025 16:15:22 +0800</pubDate><description><![CDATA[ADC采样4-20mA电流转换温度方法@TOC
要将外部4-20mA电流信号通过ADC采样并转换为对应温度，需按以下步骤进行：电阻要求：确保电阻功率足够（如0.1W以上），选择低温漂精密电阻以提高精度。信号调理：若ADC输入范围不匹配（如0-3.3V），需分压或使用运放调整电压范围。分辨率：例如12位ADC的分辨率为5V/4096≈1.22mV，4-20mA对应ADC值约819（1V）至4095（5V）。校准：实际测量4mA和20mA对应的ADC值，修正理论值（如ADmin和ADmax）。异常处理：检测AD]]></description><category></category></item><item><title><![CDATA[#CodeForces - 1244E]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105520289</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105520289</guid><author>qq_46304792</author><pubDate>Tue, 14 Apr 2020 20:32:12 +0800</pubDate><description><![CDATA[You are given a sequence a1,a2,…,ana1,a2,…,an consisting of nn integers.
You may perform the following operation on this sequence: choose any element and either increase or decrease it by one.
Calcula...]]></description><category></category></item><item><title><![CDATA[#Consider equations having the following form:]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105520166</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105520166</guid><author>qq_46304792</author><pubDate>Tue, 14 Apr 2020 20:25:55 +0800</pubDate><description><![CDATA[Consider equations having the following form:
ax12+b*x22+cx32+d*x42=0
a, b, c, d are integers from the interval [-50,50] and any of them cannot be 0.
It is consider a solution a system ( x1,x2,x3,x4 )...]]></description><category></category></item><item><title><![CDATA[#4.9 4.10 4.11]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105520028</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105520028</guid><author>qq_46304792</author><pubDate>Tue, 14 Apr 2020 20:20:39 +0800</pubDate><description><![CDATA[4.9这周的题挺多还是要挺多需要技巧的，H题里，让你通过有限的步数让你实现这个数组里的最大值与最小值的差距最大，一开始的思路是有的，就是计算每次前面的大值-1和后面的小值+1，让他们不断地往中心靠近，但是不知道每次要有几个要+或-，所以一直就没算对，直到看了别人的方法才写了出来。
4.10今天主要写了C题，这个题是比较简单的，也是测试我们的思考能力，主要就是按照公式找到能使方程成立的一组数据，有了...]]></description><category></category></item><item><title><![CDATA[#F - F]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105419707</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105419707</guid><author>qq_46304792</author><pubDate>Thu, 09 Apr 2020 21:00:00 +0800</pubDate><description><![CDATA[The next lecture in a high school requires two topics to be discussed. The ii-th topic is interesting by aiai units for the teacher and by bibi units for the students.
The pair of topics ii and jj (i&...]]></description><category></category></item><item><title><![CDATA[#4.6 4.7 4.8总结]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105391944</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105391944</guid><author>qq_46304792</author><pubDate>Wed, 08 Apr 2020 22:06:13 +0800</pubDate><description><![CDATA[4.6 今天排了周六的作息，主要是训练和周赛，因为大多数新知识自己在家学的并不牢靠，所以做题时也不能得心应手，这可能也是大多数同学都没有写的很好的原因，没有算法书的话还是很难受的，只能有些题去看别人的博客，思路，并不能很好的理解。
4.7 用快速幂写的那道题求前三位我还是不太懂，在其他大佬的指点下又去研究了别人的博客，不过最近应该是我们会在钉钉群里讲知识点，题目，这样再去写题的话会更容易一点。

...]]></description><category></category></item><item><title><![CDATA[# Ice_cream's world I]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105350246</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105350246</guid><author>qq_46304792</author><pubDate>Mon, 06 Apr 2020 20:11:39 +0800</pubDate><description><![CDATA[ice_cream’s world is a rich country, it has many fertile lands. Today, the queen of ice_cream wants award land to diligent ACMers. So there are some watchtowers are set up, and wall between watchtower...]]></description><category></category></item><item><title><![CDATA[#最小新整数]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105349966</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105349966</guid><author>qq_46304792</author><pubDate>Mon, 06 Apr 2020 20:01:21 +0800</pubDate><description><![CDATA[给定一个十进制正整数n(0 &lt; n &lt; 1000000000)，每个数位上数字均不为0。n的位数为m。
现在从m位中删除k位(0&lt;k &lt; m)，求生成的新整数最小为多少？
例如: n = 9128456, k = 2, 则生成的新整数最小为12456
Input
第一行t, 表示有t组数据；
接下来t行，每一行表示一组测试数据，每组测试数据包含两个数字n, k。
Outpu...]]></description><category></category></item><item><title><![CDATA[每日总结4.2 4.3]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105280534</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105280534</guid><author>qq_46304792</author><pubDate>Fri, 03 Apr 2020 21:36:13 +0800</pubDate><description><![CDATA[4.2今天主要写了A,F两题，但是都没有写对。A题一开始是有思路的，我想把首先遇见的号码给个1位置，他后面的就加上相应的位数接着对300取余，并将该位置进行标记，说明这个位置已经有人，下次再出现这个位置时就记录一次，接着搜索和这两项有关的数字，前面的就减去相应的值再-300取绝对值，后面的就+相应的值对300取余，这样就可以找到。但是在过例子是还是出现了错误。F题思路还不清晰，明天继续。

...]]></description><category></category></item><item><title><![CDATA[第七周训练 3.30 3.31 4.1总结]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105208900</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105208900</guid><author>qq_46304792</author><pubDate>Wed, 01 Apr 2020 22:05:11 +0800</pubDate><description><![CDATA[今晚主要看了A,B两题，A题应该是理解有误，样例都过不去，所以就先搁置了。B题虽然比较简单，但是由于一开始思路不够清晰，用了比较麻烦的递归，所以也很长时间没过，仔细思考过才发现比较简单一点的方法，然后写出来就很容易过了，不过感觉这些新题都对应的有新的知识，自己还是用以前的方法去做，还是有点麻烦，所以找好知识点很关键。

...]]></description><category></category></item><item><title><![CDATA[#D - Harmonic Number (II)]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105256713</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105256713</guid><author>qq_46304792</author><pubDate>Wed, 01 Apr 2020 22:00:30 +0800</pubDate><description><![CDATA[I was trying to solve problem ‘1234 - Harmonic Number’, I wrote the following code
long long H( int n ) {
long long res = 0;
for( int i = 1; i &lt;= n; i++ )
res = res + n / i;
return res;
}
Yes, my e...]]></description><category></category></item><item><title><![CDATA[#Three Integers]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105233134</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105233134</guid><author>qq_46304792</author><pubDate>Tue, 31 Mar 2020 21:50:05 +0800</pubDate><description><![CDATA[You are given three integers a≤b≤ca≤b≤c.
In one move, you can add +1+1 or −1−1 to any of these integers (i.e. increase or decrease any number by one). You can perform such operation any (possibly, zer...]]></description><category></category></item><item><title><![CDATA[#确定比赛名次]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105208363</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105208363</guid><author>qq_46304792</author><pubDate>Mon, 30 Mar 2020 21:13:03 +0800</pubDate><description><![CDATA[有N个比赛队（1&lt;=N&lt;=500），编号依次为1，2，3，。。。。，N进行比赛，比赛结束后，裁判委员会要将所有参赛队伍从前往后依次排名，但现在裁判委员会不能直接获得每个队的比赛成绩，只知道每场比赛的结果，即P1赢P2，用P1，P2表示，排名时P1在P2之前。现在请你编程序确定排名。
Input
输入有若干组，每组中的第一行为二个数N（1&lt;=N&lt;=500），M；其中N表示队伍...]]></description><category></category></item><item><title><![CDATA[一周总结]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105167228</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105167228</guid><author>qq_46304792</author><pubDate>Sat, 28 Mar 2020 19:59:24 +0800</pubDate><description><![CDATA[今晚写今天的总结以及这一周来的总结。今天周六还是固定的周赛，这周的题大部分还是挺简单的，因为上午正好总结了博弈问题，所以其中的一道博弈问题还是艰难地解决了（因为掌握还是不熟练），中间网站出现了点问题，提交一直失败，不过看到其他人也是这种情况，所以就继续做题了，晚上把自己做的和标准答案对比了对比，有些没做出来的还是自己想不到，题意理解的不透彻。
总的来说这周因为有了学长的监督，做题比之前积极了点（自...]]></description><category></category></item><item><title><![CDATA[#快速找到最小步数]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105165923</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105165923</guid><author>qq_46304792</author><pubDate>Sat, 28 Mar 2020 18:32:20 +0800</pubDate><description><![CDATA[You are given two positive integers aa and bb. In one move you can increase aa by 11 (replace aa with a+1a+1). Your task is to find the minimum number of moves you need to do in order to make aa divis...]]></description><category></category></item><item><title><![CDATA[#取石子（2）]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105157542</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105157542</guid><author>qq_46304792</author><pubDate>Sat, 28 Mar 2020 11:40:37 +0800</pubDate><description><![CDATA[有2堆石子。A B两个人轮流拿，A先拿。每次可以从一堆中取任意个或从2堆中取相同数量的石子，但不可不取。拿到最后1颗石子的人获胜。假设A B都非常聪明，拿石子的过程中不会出现失误。给出2堆石子的数量，问最后谁能赢得比赛。
例如：2堆石子分别为3颗和5颗。那么不论A怎样拿，B都有对应的方法拿到最后1颗。
Input
第1行：一个数T，表示后面用作输入测试的数的数量。（1 &lt;= T &lt;= ...]]></description><category></category></item><item><title><![CDATA[#取石子（1）]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105157512</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105157512</guid><author>qq_46304792</author><pubDate>Sat, 28 Mar 2020 11:03:56 +0800</pubDate><description><![CDATA[有一堆石子共有N个。A B两个人轮流拿，A先拿。每次最少拿1颗，最多拿K颗，拿到最后1颗石子的人获胜。假设A B都非常聪明，拿石子的过程中不会出现失误。给出N和K，问最后谁能赢得比赛。
例如N = 3，K = 2。无论A如何拿，B都可以拿到最后1颗石子。
Input
第1行：一个数T，表示后面用作输入测试的数的数量。（1 &lt;= T &lt;= 10000) 第2 - T + 1行：每行2个数...]]></description><category></category></item><item><title><![CDATA[每日总结#3.26 3.27]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105129253</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105129253</guid><author>qq_46304792</author><pubDate>Fri, 27 Mar 2020 21:49:30 +0800</pubDate><description><![CDATA[今天经过努力把第一题和第二题过了。昨天第一题没过也是因为一些小错误，格式错误，超时，今天经过同学的仔细检查找出了毛病，改一改就正确了。第二题刚开始我准备用sort排序，但是竟然会超时，迫不得已换了个方法，用优先排序即可，因为之前没用过，所以刚开始错误也挺多，不过试过两次就行了。总的来说，今天过的这两题并不是难题，不过因为小错误而导致过不去还是很多的，因为在家的训练不如在学校那么勤快了，所以还得多动...]]></description><category></category></item><item><title><![CDATA[#使用快速幂进行计算]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105150750</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105150750</guid><author>qq_46304792</author><pubDate>Fri, 27 Mar 2020 21:39:12 +0800</pubDate><description><![CDATA[n 个小伙伴（编号从 00 到 n-1n−1）围坐一圈玩游戏。按照顺时针方向给 nn 个位置编号，从 00 到 n-1n−1。最初，第 00 号小伙伴在第 00 号位置，第 11 号小伙伴在第 11 号位置，……，依此类推。
游戏规则如下：每一轮第 00 号位置上的小伙伴顺时针走到第 mm 号位置，第 11 号位置小伙伴走到第 m+1m+1 号位置，……，依此类推，第 n-mn−m 号位置上的小伙...]]></description><category></category></item><item><title><![CDATA[#贪心排木板]]></title><link>https://blog.youkuaiyun.com/qq_46304792/article/details/105128942</link><guid>https://blog.youkuaiyun.com/qq_46304792/article/details/105128942</guid><author>qq_46304792</author><pubDate>Thu, 26 Mar 2020 21:43:20 +0800</pubDate><description><![CDATA[Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer length Li (1 ≤ Li ...]]></description><category></category></item></channel></rss>