题目—吉祥物 (shiyancang.cn) 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n,x; 4 int pos(int n) 5 { 6 int s=1,j=1; 7 while(s<n) 8 { 9 s+=j++; 10 } ...
分类:
其他好文 时间:
2021-06-06 18:58:39
阅读次数:
0
shell 编程 一、Shell 变量 定义变量时,变量名不加美元符号($,PHP语言中变量需要),如: your_name="runoob.com" 注意,变量名和等号之间不能有空格,这可能和你熟悉的所有编程语言都不一样。同时,变量名的命名须遵循如下规则: 命名只能使用英文字母,数字和下划线,首个 ...
分类:
系统相关 时间:
2021-06-05 18:22:55
阅读次数:
0
LeetCode 203.Remove Linked List Elements(移除链表元素) 题目 链接 https://leetcode-cn.com/problems/remove-linked-list-elements 问题描述 给你一个链表的头节点 head 和一个整数 val ,请你 ...
分类:
其他好文 时间:
2021-06-05 18:19:42
阅读次数:
0
步骤 注意:这个过程需要在Android源码环境中运行,可以使用adb端口转发工具,来连接服务器端的源码进行运行 关于adb端口转发:请看https://www.cnblogs.com/pyjetson/p/14828485.html 1. 运行gdbclient.py脚本 首先是使用vscode ...
分类:
移动开发 时间:
2021-06-05 18:17:03
阅读次数:
0
大于8的偶数都可拆分为两个素数之和判断8、10、12、、能否拆成2个素数之后拆分:n:m和n-m分别去判断m,n-m是否是素数 10:n m1 92 83 74 65 5 def isPrime(m): i = 2 flag = True while i <= n - 1: if n % i == ...
分类:
编程语言 时间:
2021-06-05 18:02:04
阅读次数:
0
picoctf_2018_echo_back 题目分析 简单的格式化字符串,修改got@pus为main函数地址制造循环即可: 先制造循环 修改printf@got为system@plt 输入/bin/sh获取shell 最终EXP from pwn import * sh:tube = proce ...
分类:
其他好文 时间:
2021-06-05 18:01:10
阅读次数:
0
补题链接:Here 经典状压DP问题 坑点,注意多组输入。。。 const int N = 16, mod = 100000000; int f[N][1 << N]; int a[N]; void solve() { int n, m; while (cin >> n >> m) { memset ...
分类:
其他好文 时间:
2021-06-05 17:40:05
阅读次数:
0
转自: Python3使用opencv调用摄像头录制高清视频 教你如何利用python调用摄像头 #pip3 install opencv-python import cv2 from datetime import datetime FILENAME = 'myvideo.avi' WIDTH = ...
分类:
编程语言 时间:
2021-06-04 19:24:42
阅读次数:
0
#include <stdio.h>#include <unistd.h>int main(){ int i = 10; pid_t pid; printf("Father's pid:%d\n", getpid()); pid = fork(); if(pid < 0) { perror("for ...
分类:
其他好文 时间:
2021-06-04 19:24:24
阅读次数:
0
一、lrzsz是什么 在使用Linux的过程中,难免少不了需要上传下载文件,lrzsz是一个更方便的命令,可以直接在Linux中输入命令,弹出一个框来选择上传的文件或者下载的文件保存的位置,然后确定就OK了。lrzsz并不是内置命令,默认情况下大多数Linux版本都没有这个命令,需要自己安装才可以使 ...
分类:
系统相关 时间:
2021-06-04 19:21:08
阅读次数:
0