A. Required Remainder 题意: $t$组样例,判定一个正整数$n$是否存在一个大于$1$的奇数因子,\((1≤t≤10^4), (2≤n≤10^{14})\) 思路: 打表,发现只有满足$2^$的数字不存在奇数因子。 Code: int main(){ ios::sync_wit ...
分类:
其他好文 时间:
2021-02-15 12:39:39
阅读次数:
0
centos6 yum install git yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm yum update git centos7 yum ...
分类:
其他好文 时间:
2021-02-15 12:32:55
阅读次数:
0
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:
其他好文 时间:
2021-02-15 12:21:49
阅读次数:
0
项目地址 https://github.com/conwnet/github1s 使用方式 把浏览器里地址栏里github项目地址github后面加1s改为github1s即可。 以Sentinel项目为例: https://github.com/alibaba/Sentinel 改为 https: ...
分类:
其他好文 时间:
2021-02-15 12:11:40
阅读次数:
0
The testing code for LX COG 12864R1. You can search the product in T-A-O-B-A-O. #define CS 2 #define RST 3 #define DC 4 #define SCL 21 #define SDA 20 ...
分类:
其他好文 时间:
2021-02-15 12:05:36
阅读次数:
0
函数 函数定义 //定义函数(方法) void printInfo() { String name = 'Tobu'; return print(name); } //函数调用 printInfo();//Tobu //私有函数定义 文件内可以随便调用 _privaFuction(){ ... } ...
分类:
其他好文 时间:
2021-02-15 12:03:40
阅读次数:
0
Java 监听文件系统变化 使用Apache Commons-io可以实现,原理也是通过另起一个线程按照固定频率扫描目录。 1.继承FileAlterationListenerAdaptor 重写FileAlterationListenerAdaptor的方法可以快速实现自己想要的功能。包括对子目录 ...
分类:
编程语言 时间:
2021-02-15 12:00:38
阅读次数:
0
公司的C++工程迁移到了Centos8上面。现进行警告消除。发现如下警告。觉得挺有意思的记录一下。 Centos版本: cat /etc/redhat-releaseCentOS Linux release 8.2.2004 (Core) Gcc版本: gcc --versiongcc (GCC) ...
分类:
数据库 时间:
2021-02-15 11:58:50
阅读次数:
0
##前言 过年的时候总是少不了红包,不知从何时开始微信红包横空出世,对于网速和手速慢的人只能在一旁观望,做为python的学习者就是要运用编程解决生活和工作上的事情。 于是我用python解决我们的手速问题python实现自动抢微信红包,至于网速慢得那就只能自己花钱提升了。 ##环境准备 appiu ...
分类:
微信 时间:
2021-02-15 11:47:29
阅读次数:
0
从[互不侵犯]一题析代码的锅 这个题,真的是,作为状压DP的敲门题,我从2020年1月份第一次见它, 到今年2月份重构过3、4遍。然后终于过了。 憨批行为之一 我有一次在寻找合法状态的时候,逐位枚举?甚至还枚举$1$的个数啊、搜索啊...... 正确的做法是 for(int s = (1 << n) ...
分类:
其他好文 时间:
2021-02-15 11:39:35
阅读次数:
0