SAS 中的一个@和@@
1. @:指针保留在当前行,在一次data iteration中遇input/put不换行。每读完一行数据,就是完成一次data iteration. @@:指针保留在当前行,在下次data iteration中遇input不换行。 @|@@只在句尾有效。 data a;
input a @:
input b;
input c @@;
datalined;
1 2 3 4
5 6 7 8
9 10 11 12 13
; 2. @|@@在p
LeetCode102二叉树层次遍历
题目链接 https://leetcode-cn.com/problems/binary-tree-level-order-traversal/ 题解一:非递归BFS 用队列存储每层的节点 获取到一层节点后,则可以获得该层所有节点的val和下一层的所有节点 // Problem: LeetCode 102
// URL: https://leetcode-cn.com/problems/binary-tree-level-order-traversal/
// Tags: Tree BFS D
git使用多分支管理仓库(被邀请加入仓库的人员的本地仓库配置及代码的上传问题)
一、如何对仓库添加成员 二、如何配置远程仓库到本地 1.首先新建一个文件夹来保存仓库,然后使用git初始化 git init 2、配置git的参数用户名、邮箱(使用已经注册了gitee或github的用户名及相应绑定的邮箱) git config --global user.name "用户名" git config --global user.email 邮箱地址 3、与远程仓库建立链接 git remote add 仓库名 仓库克隆的链接地址 (仓库名要
web路径问题 web工程中的各种路径(eclipse开发)
web工程中的各种路径(eclipse开发) 目前遇到的 web 工程中要写url和路径的文件有 webContent中.jsp/.html :action src中的servlet类 : 映射地址、重定向、请求转发、访问资源文件(webContent中、src中) src非servlet类的普通类 :访问资源文件(webContent中、src中) 以下一一说明: .jsp/.html中的路径 form表单提交的action中要写servlet(jsp)的路径 1. 跳转到.js
lsattr/chattr
1. 查看文件属性: lsattr authorized_keys 如图,包含 i 属性为只读文件,此时,即使root用户也无法对其进行操作 1. 修改文件属性: chattr -i authorized_keys 去掉只读属性。然后进行其他操作,如:chmod 600 authorized_keys 2. 修改完毕最后恢复属性 chattr +i authorized_keys
[难题题解] [BZOJ1875] [SDOI2009] HH去散步
题目H有个一成不变的习惯,喜欢饭后百步走。所谓百步走,就是散步,就是在一定的时间 内,走过一定的距离。 但是同时HH又是个喜欢变化的人,所以他不会立刻沿着刚刚走来的路走回。 又因为HH是个喜欢变化的人,所以他每天走过的路径都不完全一样,他想知道他究竟有多 少种散步的方法。 现在给你学校的地图(假设每条路的长度都是一样的都是1),问长度为t,从给定地 点A走到给定地点B共有多少条符合条件的路径. 对于100%的数据,$N ≤ 20,M ≤ 60,t ≤ 2^{30},0 ≤ A,B $ 题解 既
C--typedef 给数据类型起新名字
#include <stdio.h>
//给结构体起个新名字stu
typedef struct student {
char name[50];
int age;
int achievement;
} stu;
//student 可以不要
//新名字的好处,使用时简洁
int main ()
{
typedef int Length;//给数据类型起个新名字
//给int起个新名字 Len
线性代数学习笔记——第一章
线性代数学习笔记——第一章 老规矩,不放图,没找到合适的图床平台 二阶三阶行列式 行列式一定是方的。 排列:由1,2,...,n组成的一个有序数组叫n级排列,中间不能缺数。 逆序:大数排在小数前面。 逆序数:逆序的总数。 奇排列:逆序数为奇数的排列。 偶排列:逆序数为偶数的排列。 标准排列:逆序数为0的排列,也称为自然排列。(由n个数构成的逆序数为0的排列称为N级标准排列) 对换:交换排列中的两个数。 定理:1、一个排列每做一次对换,排列奇偶性改变。 2、在所有的N级排列中,奇排列和偶排列的数
用递归的思想实现二叉树前、中、后序迭代遍历
先复习一下前、中、后遍历的顺序: 前序遍历顺序:中-左-右 中序遍历顺序:左-中-右 后序遍历顺序:左-右-中 用递归来写二叉树遍历是非常简单的,例如前序遍历的代码如下: const result = []
function preorderTraversal(node) {
if (!node) return null
result.push(node.val)
preorderTraversal(node.left)
preorderTraversal(no
LQB2018A09倍数问题
这个题,第一反应一定是三个for嵌套加一个max比较. 超级无敌大暴搜 #include <iostream>
#include <string>
#include <string.h>
using namespace std;
long MAX=0;
int main(){
long m[10000+2];
int n,K;
cin>>n>>K;
for (int i = 0; i < n; ++i) {
cin>>m[i];
}
新手DVWA-File Upload
File Upload File Upload即文件上传,是指在由于没有对上传文件进行有效过滤的情况下,使用户上传非法文件获得服务器权限 low 服务器核心代码 <?php
if( isset( $_POST[ 'Upload' ] ) ) {
// Where are we going to be writing to?
$target_path = DVWA_WEB_PAGE_TO_ROOT . "hackable/uploads/";
$target_path
使用Google的Colab+pytorch
打开Google的Colab 运行: !pip install torch
!pip install torchtext
!pip install torchvision
# K80 gpu for 12 hours
import torch
from torch import nn, optim
from torchtext import data, datasets
print('GPU:', torch.cuda.is_available())
torch.manual_seed(
phpMyAdmin配置文件中的密文(blowfish_secret)太短
在phpMyAdmin页面上报错配置文件中的密文(blowfish_secret)太短 查看下配置文件more config.inc.php /** * This is needed for cookie based authentication to encrypt password in * cookie. Needs to be 32 chars long. */ $cfg['blowfish_secret'] = 'abcdefghijklmnopqrstuvwxyzabcdefgh'
CF 1381 A2 Prefix Flip (Hard Version)(思维 + 暴力)
传送门 题目: There are two binary strings a and b of length nn (a binary string is a string consisting of symbols 0 and 1). In an operation, you select a prefix of a, and simultaneously invert the bits in the prefix (0 changes to 1and 1 changes to 0) and
今日推荐
周排行