849

AcWing 849. Dijkstra求最短路 I

#include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N=510,M=100010; int h[N],e[M],ne[M],w[M],idx; int state[N]; in ......
Dijkstra AcWing 849

Codeforces Round #849 (Div. 4) 题解

第一次打 $\text{Div.4}$,感觉体验还行,差一题 AK。## A直接使用 if 语句判断某个字符是否在字符串 $\text{codeforces}$ 中出现过,幼儿园小朋友都会做。时间复杂度 $\mathcal{O}(T)$,空间复杂度 $\text{O}(1)$。[AC Code](h ......
题解 Codeforces Round 849 Div

Leetcode 849. 到最近的人的最大距离

# 题目描述 给你一个数组 seats 表示一排座位,其中 seats[i] = 1 代表有人坐在第 i 个座位上,seats[i] = 0 代表座位 i 上是空的(下标从 0 开始)。 至少有一个空座位,且至少有一人已经坐在座位上。 亚历克斯希望坐在一个能够使他与离他最近的人之间的距离达到最大化的 ......
Leetcode 849

【849】R String Manipulation Functions

ref: [R字符串] 字符串长度、分割、拼接、截取、替代、匹配和大小写替换 ref: R String Manipulation Functions 1. nchar() With the help of this function, we can count the characters. Th ......
Manipulation Functions String 849
共4篇  :1/1页 首页上一页1下一页尾页