int
-
LeetCode 1306. Jump Game III
原题链接在这里:https://leetcode.com/problems/jump-game-iii/ 题目: Given an array of non-negative in…
-
LeetCode/下一个更大元素
nums1 中数字 x 的 下一个更大元素 是指 x 在 nums2 中对应位置 右侧 的 第一个 比 x 大的元素。给你两个 没有重复元素 的数组 nums1 和 nums2 ,…
-
模拟专题
1095 Cars on Campus Link 配对要求是,如果一个车多次进入未出,取最后一个值;如果一个车多次out未进入,取第一个值。注意:一个车可能出入校园好多次,停车的时…
-
《c#10 in a nutshell》— 读书随记(2)
Chaptor 1 . C# Language Basics 内容来自书籍《C# 10 in a Nutshell》Author:Joseph Albahari需要该电子书的小伙伴…
-
高精度模板
#include <cstring> #include <iostream> #include <vector> struct BigInt {…
-
《c#10 in a nutshell》— 读书随记(3)
Chaptor 3 . Creating Types in C# 内容来自书籍《C# 10 in a Nutshell》Author:Joseph Albahari需要该电子书的小…
-
abc258(G)
G – Triangle 题意:给定一个邻接矩阵,问有多少个三元组(x, y, z)满足两两顶点之间有一条边直接相连。 该题使用bitset可以快速解决。首先预处理 b…
-
leetcode 650. 2 Keys Keyboard 只有两个键的键盘(中等)
一、题目大意 标签: 动态规划 https://leetcode.cn/problems/2-keys-keyboard 最初记事本上只有一个字符 ‘A’ …
-
ABC 258 上分记录
A 模拟,注意特判前导零。 signed main() { int x; cin >> x; int h = x / 60; x %= 60; printf(“%d:”…
-
最小表示法
目录 最小表示法 最小表示法 题意 : 给你一个字符串 a , 找出字符串 a 的的循环同构串中字典序最小的一个 循环同构串 : 把字符串 a 从任意一个地方切开,将两部分交换位置…