medium

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

华为最高学术成果发表 —— 《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

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

31. 下一个排列 (Medium)

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

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

950. 按递增顺序显示卡牌 (Medium)

问题描述 950. 按递增顺序显示卡牌 (Medium) 牌组中的每张卡牌都对应有一个唯一的整数。你可以按你想要的顺序对这套卡片进行排序。 最初,这些卡牌在牌组里是正面朝下的(即,未显示状态)。 现在,重复执行以下步骤,直到显示所有卡牌为止: 从牌组顶部抽一张牌,显示它,然后将其从牌组中移出。 如果 ......
显示卡 顺序 Medium 950

950. Reveal Cards In Increasing Order (Medium)

Description 950. Reveal Cards In Increasing Order (Medium) You are given an integer array deck. There is a deck of cards where every card has a unique ......
Increasing Reveal Medium Cards Order

2069. 模拟行走机器人 II (Medium)

问题描述 2069. 模拟行走机器人 II (Medium) 给你一个在 XY 平面上的 width x height 的网格图, 左下角 的格子为 (0, 0) , 右上角 的格子 为 (width - 1, height - 1) 。网格图中相邻格子为四个基本方向之一( "North", "Ea ......
机器人 机器 Medium 2069 II

2069. Walking Robot Simulation II (Medium)

Description 2069. Walking Robot Simulation II (Medium) A width x height grid is on an XY-plane with the bottom-left cell at (0, 0) and the top-right c ......
Simulation Walking Medium Robot 2069

[Typescript] 149 Medium - Triangular number

Given a number N, find the Nth triangular number, i.e. 1 + 2 + 3 + ... + N /* _____________ Your Code Here _____________ */ export type NumberToArray< ......
Typescript Triangular Medium number 149

[Typescript Challenge] 148 Medium - CartesianProduct

Given 2 sets (unions), return its Cartesian product in a set of tuples, e.g. CartesianProduct<1 | 2, 'a' | 'b'> // [1, 'a'] | [2, 'a'] | [1, 'b'] | [2 ......

[Typescript Challenges] 147 Medium - MergeAll

Merge variadic number of types into a new type. If the keys overlap, its values should be merged into an union. For example: type Foo = { a: 1; b: 2 } ......
Typescript Challenges MergeAll Medium 147

[Typescript Challenges] 146 Medium - CheckRepeatedTuple

Implement type CheckRepeatedChars<T> which will return whether type T contains duplicated member For example: type CheckRepeatedTuple<[1, 2, 3]> // fa ......
共57篇  :1/2页 首页上一页1下一页尾页