错误答案1:#include<iostream> using namespace std; const int maxn=100000; int a[maxn]={0}; int main(){ int n,id,sco,k,j; cin>>n; for(int i=0;i<n;i++){ a[id ...
分类:
其他好文 时间:
2020-07-12 00:49:05
阅读次数:
69
1001 害死人不偿命的(3n+1)猜想 写后总结:数字与字母相乘,乘法不能省略;注意局部变量的位置;别光写算法,把"输出"忘记写.这是一个部分正确的,原因是什么?#include<iostream> using namespace std; int main() { //int max=1000; ...
分类:
其他好文 时间:
2020-07-11 22:48:36
阅读次数:
51
- name: disable selinux shell: setenforce 0 ignore_errors: yes - name: disable selinux conf lineinfile: path: /etc/selinux/config regexp: '^SELINUX=.* ...
分类:
其他好文 时间:
2020-07-11 19:40:00
阅读次数:
79
在不知道包名的情况下,在手机里先打开要测试的APP,执行如下命令:adb shell dumpsys window w |findstr \/ |findstr name=;获取包名 C:\Users\del>adb shell dumpsys window w |findstr \/ |finds ...
分类:
移动开发 时间:
2020-07-11 18:55:10
阅读次数:
207
Description Name: dpwwn: 2 Date release: 8 Aug 2019 DHCP service: Disabled Static IP address: 10.10.10.10/24 Goal: Get the root shell i.e.(root@dpwwn- ...
分类:
其他好文 时间:
2020-07-11 17:44:46
阅读次数:
69
题意:给定一个n * m的矩形,每个格子有两种颜色,一开始有t个格子上是黑色。对于任意的两行两列,如果交汇的四个格子中有三个是黑色,那么第4个会被自动变成黑色。问你至少需要手动涂黑几个格子,可以使得整个矩形内的格子都变成黑色。 分析:对于三个已经涂黑的格子$(r1, c1)(r1, c2)(r2, ...
分类:
其他好文 时间:
2020-07-11 17:34:01
阅读次数:
55
cut -d: -f1,3,7 /etc/passwd |sort -t: -k2 -n | tail -1 ...
分类:
系统相关 时间:
2020-07-11 17:16:02
阅读次数:
69
查看手机电量信息:adb shell dumpsys battery 设置电池为充电状态——adb shell dumpsys battery set status 2 设置电池为非充电状态——adb shell dumpsys battery set status 1 设置电量百分比——adb s ...
分类:
移动开发 时间:
2020-07-11 16:59:32
阅读次数:
93
##题意 传送门 给定一个长度为$N$的整数数列,输出每个数$A_\(左边第一个比它小的数,如果不存在则输出\)-1$。 ###数据范围 $1\leq N\leq 10^{5}$ $1\leq A_ \leq 10^{9}$ ##题解 栈中存的数是单调上升的,因为后加入的数永远比前加入的数靠后,所以 ...
分类:
其他好文 时间:
2020-07-11 16:56:36
阅读次数:
55
C:\Users\del>adb shell dumpsys batterystats | more > C:\Users\del\Desktop\a.txt ——整个电池信息 C:\Users\del>adb shell dumpsys batterystats com.wawj.app.t | ...
分类:
移动开发 时间:
2020-07-11 16:51:57
阅读次数:
208