SMU
  • 2024-05-11开源EEG脑电图参考设计+信用卡大小、USB供电的4象限源测量单元
    1、ESP-BLE-MESH-乐鑫开源的蓝牙mesh协议栈ESP-BLE-MESH是乐鑫开源的蓝牙mesh协议栈,已通过蓝牙技术联盟(SIG)全功能认证,支持Bluetooth®MeshSpecificationv1.0.1中规定的所有功能与应用模型。使用ESP-BLE-MESH技术,可以和全球不同厂商、不同类型的标准蓝牙mesh
  • 2024-04-14SMU 2024 spring 天梯赛4
    SMU2024spring天梯赛47-1心理阴影面积-SMU2024spring天梯赛4(pintia.cn)由\(d=\frac{Ax+By+c}{\sqrt{A^2+B^2}}\)再乘以\(100\sqrt2\times\frac{1}{2}\)可得\(|x-y|\times50\);#include<bits/stdc++.h>usingnamespacestd;usingi64=longl
  • 2024-04-06DIY SMU的功率放大电路粗略解析(简单写写,不准备详细解释)
    在DaveErickson的网站上:DaveEricksonDIYSMUSourceMeasureUnitProject(djerickson.com),提供了DIYSMU所需要的全部资料。这里对他提供的功率放大电路的仿真电路做一点点修改,然后粗略的做一个解析。简单修改后的功率放大电路如下图所示: U8看起来像不像一个缓冲器?哈哈
  • 2024-03-31SMU 2024 spring 天梯赛自主训练3
    SMU2024spring天梯赛自主训练37-12018我们要赢-SMU2024spring天梯赛自主训练3(pintia.cn)2018wo3men2yao4ying2!7-2打折-SMU2024spring天梯赛自主训练3(pintia.cn)#include<bits/stdc++.h>#definedebug(a)cout<<#a<<"="<<a<<
  • 2024-03-31SMU Winter 2024 div2 ptlks的周报Week 7(3.25-3.31)
    哈夫曼编码对出现频率大的字符赋予较短的编码,对出现频率小的字符赋予较长的编码。哈夫曼树的建树过程为,每次选取最小和次小的根节点,将它们之和作为它们的根节点,左子节点为小点,右子节点为次小点,直至仅剩一棵树。一棵哈夫曼树,左子树为0,右子树为1,以根节点到叶子结点的路径作为每个叶
  • 2024-03-31SMU 2024 spring 天梯赛2
    SMU2024spring天梯赛27-1计算指数-SMU2024spring天梯赛2(pintia.cn)#include<bits/stdc++.h>usingnamespacestd;usingi64=longlong;intmain(){ios::sync_with_stdio(false);cin.tie(nullptr);intn,ans=1;cin>>n;
  • 2024-03-31SMU 2024 spring 天梯赛3
    SMU2024spring天梯赛37-1重要的话说三遍-SMU2024spring天梯赛3(pintia.cn)I'mgonnaWIN!I'mgonnaWIN!I'mgonnaWIN!7-2两小时学完C语言-SMU2024spring天梯赛3(pintia.cn)#include<bits/stdc++.h>usingnamespacestd;usingi64=longlong;
  • 2024-03-17SMU 2024 spring 天梯赛1
    7-3强迫症简单的模拟但是注意这句话:对于那些只写了年份后两位的信息,我们默认小于22都是20开头的,其他都是19开头的。点击查看代码#include<bits/stdc++.h>usingnamespacestd;#defineintlonglongvoidsolve(){strings;cin>>s;intn=s.size();
  • 2024-03-17SMU 2024 spring 天梯赛1
    SMU2024spring天梯赛17-1种钻石-SMU2024spring天梯赛1(pintia.cn)#include<bits/stdc++.h>#definedebug(a)cout<<#a<<"="<<a<<'\n';usingnamespacestd;usingi64=longlong;typedefpair<i64,i64>
  • 2024-03-12SMU 2024 spring 天梯赛1
    SMU2024spring天梯赛17-1种钻石查看代码voidsolve(){intn,v;cin>>n>>v;cout<<n/v;} 7-21-1输出金字塔图案查看代码 voidsolve(){cout<<"*\n""***\n""*****\n"
  • 2024-02-18SMU Winter 2024 div2 ptlks的周报Week 3(2.12-2.18)
    这周主要加强了对知识点的掌握。P10161[DTCPC2024]小方的疑惑10从题目可以得知a个连续括号贡献为a(a+1)/2,代价为2a。要求总贡献恰为k,且代价不高于n。一开始我想到了模拟,先取一个贡献低于k最大的a,剩下的再直接在外面套括号,结果wa。又想到可以分出多个a来组成k,就用递归,每次
  • 2024-02-04SMU Winter 2024 div2 ptlks的周报Week 2(1.29-2.4)
    这周学习到的知识点有斯特林数(F鸡数题!)F鸡数题!思路第二类斯特林数代码#include<bits/stdc++.h>#defineintlonglong#defineMOD1000000007usingnamespacestd;intn,m,f[100005],fi[100005];intqpow(inta,intn){ intans=1; while(n){ if(n&1){
  • 2024-01-27第一周周报
    训练赛:2024蓝桥杯模拟赛1(div1)题解SMU-XCPC题解SMU2024winterround1题解题单牛客题解自主训练cf题解cf题解cf题解cf题解cf题解
  • 2024-01-26SMU 2024 winter round1
    题目链接A.直接输出#include<bits/stdc++.h>usingnamespacestd;#defineintlonglongconstintN=1e5+10;voidsolve(){cout<<"Goodcodeisitsownbestdocumentation."<<'\n';}signedmain(){ios::sync_with_st
  • 2024-01-26SMU 2024 winter round1
    7-1最好的文档#include<bits/stdc++.h>usingnamespacestd;usingi32=int32_t;i32main(){ios::sync_with_stdio(false),cin.tie(nullptr);cout<<"Goodcodeisitsownbestdocumentation.";return0;}7-2自动编程#includ
  • 2023-09-279.26 SMU Autumn 2023 Round 5
    SMUAutumn2023Round5A-EveryoneLovestoSleep思路:将小于睡觉时间的闹钟加24:00,找到最小的时间min,答案即为min-睡觉时间#include<bits/stdc++.h>usingnamespacestd;//#defineintlonglong//#defineint__int128#definedoublelongdoubletypedefpair<int,i
  • 2023-09-26SMU Autumn 2023 Round 5
    SMUAutumn2023Round5A.EveryoneLovestoSleep把时间都转成分钟,然后存起来,二分找到离他睡觉点最近的一个时间段,减去他的睡觉点,如果最近的在第二天,则把中间的这段时间加起来#include<bits/stdc++.h>#defineintlonglong#definedebug(a)cout<<#a<<"="<<a<<'\n'
  • 2023-09-09SMU Autumn 2023 Round 1(Div.1)
    SMUAutumn2023Round1(Div.1)A.SetorDecrease(枚举)题意就是你可以进行两种操作,将\(a_i-1\)或者令\(a_i\)等于\(a_j\),然后使得\(\sum\limits_{i=1}^{n}a_i\leqk\),求最少的操作步数首先我们让一个大数变成一个最小数的贡献肯定是要比让大数减一产生的贡献更多,所以我
  • 2023-08-03SMU Summer 2023 Contest Round 9(2019 山东省大学生程序设计竞赛)
    2019山东省大学生程序设计竞赛A.Calandar纯模拟吧(感觉我做麻烦了(?),就是如果问的是未来的日期,就用相隔天数取模后加上这天的星期,如果问的是曾经的,就用这天的星期减去相隔天数的取模后的数,因为是减法,记得加模数#include<bits/stdc++.h>#defineintlonglong#defi
  • 2023-08-03SMU Summer 2023 Contest Round 6
    Problem-D.NumberOfPermutations传送门容斥原理思路:利用容斥,首先所有可能的排列肯定是fac[n],然后可能会有三种bad的情况:①第一个元素的排列是非递减②第二种是第二个元素的排列是非递减③这两个可能出现的重叠情况,意思就是说同时导致①②成立这个时候我们利用容斥
  • 2023-08-03SMU Summer 2023 Contest Round 1
    Problem-ATheContest(纯属眼瞎)#include<bits/stdc++.h>usingnamespacestd;typedeflonglongll;constintN=1e7+50,M=5050,mod=9901,MAX_N=1e3+50,INF=0x3f3f3f3f;constdoublePI=3.1415926;#defineIOSios_base::sync_with_stdio(f
  • 2023-08-03SMU Summer 2023 Contest Round 2
    Problem-ATreasureHunt#include<bits/stdc++.h>usingnamespacestd;typedeflonglongll;constintN=1e5+50,M=5e3+50,mod=9901,MAX_N=6e3+50,INF=0x3f3f3f3f;constdoublePI=3.1415926;#defineIOSios_base::sync_with_stdio(f
  • 2023-08-03SMU Summer 2023 Contest Round 3
    Problem-A-CurriculumVitae#include<bits/stdc++.h>usingnamespacestd;constintN=1e6+50,M=5050,mod=9901,MAX_N=1e3+50,INF=0x3f3f3f3f;#defineintlonglong#defineldlongdouble#defineIOSios_base::sync_with_stdio(false)
  • 2023-07-28SMU Summer 2023 Contest Round 7
    SMUSummer2023ContestRound7A.TwoRivalStudents答案不能大于\(n-1\);如果竞争对手之间的当前距离小于\(n-1\),我们总是可以将这个距离增加一个交换数;即答案等于\(min(n-1,|a-b|+x)\)。#include<bits/stdc++.h>#defineintlonglongusingnamespac
  • 2023-07-25SMU Summer 2023 Contest Round 6
    SMUSummer2023ContestRound6A.ThereAreTwoTypesOfBurgers从0枚举到汉堡的最大个数,取最大值#include<bits/stdc++.h>#defineintlonglongusingnamespacestd;signedmain(){ios::sync_with_stdio(false);cin.tie(nullptr);intT;cin>>