rotting oranges medium 994

hackthebox escape medium windows

RECON TLS certificate openssl s_client -showcerts -connect 10.10.11.202:3269 | openssl x509 -noout -text- "openssl s_client" initiates an SSL/TLS conn ......
hackthebox windows escape medium

CF1884C Medium Design

CF1884C Medium Design 翻译 首先可以想到一个性质:覆盖 \(\min\) 的区间加上一定不优。因此考虑以每个点为 \(\max\),判断包含这个位置的所有线段中和的最小值 然后就不会了 \(QwQ\) 原来这里还有一个性质:最小值一定是 \(\min(a_1,a_m)\),因为 ......
Medium Design 1884C 1884 CF

vulnhub-medium_socnet

medium_socnet 从学长那里薅来的靶机,说是基于docker的,挺有意思,那必须搞一下呀!(后面百度才知道这玩意是vulnhub上面的) 0x01 信息收集 一、主机扫描 还是老规矩,nmap扫一手。 发现192.168.56.101主机,而且22和5000端口是开着的。 访问一下5000 ......

hackthebox broscience medium

Briefly instruction: This time,the target machine encouter some url coding,php code audit found deserialization,script writing according to the conten ......
hackthebox broscience medium

hackthebox bagel medium

Flask exploit /proc/self/cmdline understands which process is currently running to provice the web service. curl http://10.10.11.201:8000/?page=../../ ......
hackthebox medium bagel

hackthebox jupyter medium

BREIFLY. this box is quite hard for beginner. the walkthrough is following: 1.nmap scan open ports detail and discover this box open 22 and 80 port bu ......
hackthebox jupyter medium

Codeforces Round 904 (Div. 2) C. Medium Design

jly:开始的想法:首先枚举max的位置。包含它的一定是全加,剩下的一定都不加。然后求所有位置的最小值。 初始全0,枚举max之后,因为是加区间,min一定在两端(最左或最右)。所以不需要枚举max,我们枚举min就好(因为加区间和初始全0,这个题的特殊性)。 写法注意的点:下标从0开始,区间的左端 ......
Codeforces Design Medium Round 904

hackthebox format medium walkthrough

walkthough 1.We must browse the website and look up the business point for the webpage. at this box we can find the code repository.code auditing and ......
walkthrough hackthebox format medium

CF1884 C Medium Design

Link CF1884 C Medium Design Question 有一个数组 \(a_1...a_m\) 和 \(N\) 个区间 \(L_i,R_i\) 我们可以选一部分区间,使得 \([a_{L_i},a_{R_i}]\) 的每一个值都 \(+1\) 求 \(max(a)-min(a)\) ......
Medium Design 1884 CF

pp_orange的多项式模板

/* Code by pp_orange */ #include<bits/stdc++.h> #define m_p(a,b) make_pair(a,b) #define pb push_back #define ll long long #define ull unsigned long lo ......
多项式 pp_orange 模板 orange pp

orange pi 香橙派 zero 刷openwrt当作有wifi的小路由器用

前面写过我用香橙派zero来测量温度 https://www.cnblogs.com/jar/p/15848178.html 最近准备把他改造成路由器 https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=8221877 这里的固件很 ......
香橙 路由 路由器 openwrt orange

华为最高学术成果发表 —— 《Nature》正刊发表论文《Accurate medium-range global weather forecasting with 3D neural networks》

论文《Accurate medium-range global weather forecasting with 3D neural networks》的《Nature》地址: https://www.nature.com/articles/s41586-023-06185-3.pdf 论文的代码地 ......

Codeforces Round 904 (Div. 2) C. Medium Design(前缀和+差分)

Codeforces Round 904 (Div. 2) C. Medium Design 思路: 因为出现的线段应该为不相同的线段,所以最小值应该为 \(1\) 或 \(m\) 因此我们可以通过差分储存线段范围内的加值,再用前缀和表示这个范围内的最大加值 sl为不包含\(1\)的线段的差分,sr ......
前缀 Codeforces Design Medium Round

house of orange(无free的一种利用方法)

house of orange(没有free情况下获得一个unsortedbin) 之前就已经了解了house of orange但是没有写博客记录,这几天正好把buu上前几页当时没写的写了一下,其中就有著名的house of orange 实现效果: house of orange可以实现程序无f ......
方法 orange house free of

C. Medium Design

C. Medium Design The array $a_1, a_2, \ldots, a_m$ is initially filled with zeroes. You are given $n$ pairwise distinct segments $1 \le l_i \le r_i \l ......
Medium Design

CF1884C Medium Design

思路 Step1. 贪心 拿到题后,第一时间想到贪心,如果这个区间加上会使答案变小或不变就不加。 但是很显然,这个贪心是错误的。 如果答案的最大值在区间 B,但是先加了区间 A,导致加区间 B 使答案不变,那么这样就会使答案变劣。 所以贪心是错误的。 Step2. 枚举 接着,想到了可以枚举最小值, ......
Medium Design 1884C 1884 CF

DVWA CSRF medium

一、DVWA CSRF medium 代码分析 if( stripos( $_SERVER[ 'HTTP_REFERER' ] ,$_SERVER[ 'SERVER_NAME' ]) !== false ) { ... } medium 添加了对 http referer 头的判断,但只是简单的判断 ......
medium DVWA CSRF

hackthebox agile medium

信息收集 port scanning sudo nmap --sT --min-rate 10000 -p- 10.10.11.203 -oA nmap/agile sudo nmap -sT -sC -sV -pxx 10.10.11.203 -oA nmap/detial banner tell ......
hackthebox medium agile

[LeetCode] 2863. Maximum Length of Semi-Decreasing Subarrays_Medium tag: stack

You are given an integer array nums. Return the length of the longest semi-decreasing subarray of nums, and 0 if there are no such subarrays. A subarr ......

[LeetCode] 2434. Using a Robot to Print the Lexicographically Smallest String_Medium tag: stack

You are given a string s and a robot that currently holds an empty string t. Apply one of the following operations until s and t are both empty: Remov ......

[LeetCode] 2282. Number of People That Can Be Seen in a Grid_Medium tag: stack.

You are given an m x n 0-indexed 2D array of positive integers heights where heights[i][j] is the height of the person standing at position (i, j). A ......
Grid_Medium LeetCode Number Medium People

994. 腐烂的橘子

在给定的 m x n 网格 grid 中,每个单元格可以有以下三个值之一: 值 0 代表空单元格; 值 1 代表新鲜橘子; 值 2 代表腐烂的橘子。 每分钟,腐烂的橘子 周围 4 个方向上相邻 的新鲜橘子都会腐烂。 返回 直到单元格中没有新鲜橘子为止所必须经过的最小分钟数。如果不可能,返回 -1 。 ......
橘子 994

31. 下一个排列 (Medium)

问题描述 31. 下一个排列 (Medium) 整数数组的一个 排列 就是将其所有成员以序列或线性顺序排列。 例如, arr = [1,2,3] ,以下这些都可以视作 arr 的排列: [1,2,3]、 [1,3,2]、 [3,1,2]、 [2 ,3,1] 。 整数数组的 下一个排列 是指其整数的下 ......
Medium 31

leetcode 题库994——bfs典型解法(队列+递归实现)

class Solution: def orangesRotting(self, grid: list[list[int]]) -> int: m,n=len(grid),len(grid[0]) queue,good=[],[] def bfs(queue,good,m,n,grid): time ......
解法 队列 题库 leetcode 典型

P3521 [POI2011] ROT-Tree Rotations

[P3521 [POI2011] ROT-Tree Rotations](https://www.luogu.com.cn/problem/P3521) 首先合并两棵子树的时候只关心子树内值的个数,并不关心子树内具体是什么顺序,引导从下向上线段树合并计算代价。 每一个值只会出现一次,首先每个叶子节点 ......
Rotations ROT-Tree P3521 3521 2011

orange pi 5 plus开发板使用

## 系统镜像烧写 参考网址: http://www.orangepi.cn/orangepiwiki/index.php/Orange_Pi_5_Plus - 烧写方法: **使用RKDevTool烧录Linux镜像到eMMC中的方法** - 烧写镜像: **选择Orangepi5plus_1.0 ......
orange plus pi

Exercise: rot13Reader

rot13是英文字母加密里面Caesar Cipher(其实就是移位加密)的一种特殊形式,简单来说就是把字母前后部分对调,其中a和n对调,以此类推。针对性的简单来做就是直接判断字母所在范围,然后视情况+/-13即可。但是rot13也可以用Caesar Cipher的通用形式来做,移位的公式其实很简单 ......
Exercise Reader rot 13

1156. Swap For Longest Repeated Character Substring (Medium)

Description 1156. Swap For Longest Repeated Character Substring (Medium) You are given a string text. You can swap two of the characters in the text. ......
Character Substring Repeated Longest Medium

918. Maximum Sum Circular Subarray (Medium)

Description 918. Maximum Sum Circular Subarray (Medium) Given a circular integer array nums of length n, return the maximum possible sum of a non-empt ......
Circular Subarray Maximum Medium 918

918. 环形子数组的最大和 (Medium)

问题描述 918. 环形子数组的最大和 (Medium) 给定一个长度为 n 的 环形整数数组 nums ,返回nums 的非空 子数组 的最大可能和 。 环形数组 意味着数组的末端将会与开头相连呈环状。形式上, nums[i] 的下一个元素是 nums[(i + 1) % n] , nums[i] ......
环形 数组 Medium 918