Codeforces - 1155B - Game with Telephone Numbers
地址 https://codeforces.com/contest/1155/problem/B 原文地址 https://www.lucien.ink/archives/418/ 题意 如果一个纯数字的串长度为 $11$ 且以数字 $8$ 开头,那么这个串就是一个好串,给你一个纯数字的串 $s$ ,你和另一个人轮流从中任意删掉一个数字,你先手,直到这个串的长度变为 $11$ ,如...
地址 https://codeforces.com/contest/1155/problem/B 原文地址 https://www.lucien.ink/archives/418/ 题意 如果一个纯数字的串长度为 $11$ 且以数字 $8$ 开头,那么这个串就是一个好串,给你一个纯数字的串 $s$ ,你和另一个人轮流从中任意删掉一个数字,你先手,直到这个串的长度变为 $11$ ,如...
地址 https://codeforces.com/contest/1155/problem/A 原文地址 https://www.lucien.ink/archives/417/ 题意 给你一个串 $s$ ,问能否翻转一个区间使得它的字典序变小。 题解 先 sort 一下判断是否可以,可以的话枚举一下。 代码 https://pasteme.cn/6687 ## inc...
地址 https://codeforces.com/contest/1153/problem/D 原文地址 https://www.lucien.ink/archives/416 代码 https://pasteme.cn/6251 ## include <bits/stdc++.h> const int maxn = int(3e5) + 7; std::vecto...
地址 https://codeforces.com/contest/1153/problem/C 原文地址 https://www.lucien.ink/archives/415 代码 https://pasteme.cn/6250 ## include <bits/stdc++.h> const int maxn = int(1e6) + 7; int len, l...
地址 https://codeforces.com/contest/1153/problem/B 原文地址 https://www.lucien.ink/archives/414 代码 https://pasteme.cn/6248 ## include <bits/stdc++.h> const int maxn = 1007; int N, M, H, m[max...
地址 https://codeforces.com/contest/1153/problem/A 原文地址 https://www.lucien.ink/archives/413 代码 https://pasteme.cn/6247 ## include <bits/stdc++.h> int main() { int n, m, min = 0x3f3f3f...
https://pasteme.cn/5872 ## main.py from absl import app, flags FLAGS = flags.FLAGS flags.DEFINE_string('test', None, 'comma separated list of GPU(s) to use.') def main(argv): del argv ...
前后端接口规范 随着前后端分离越来越普遍, 后端接口规范也就越来越重要了. 一套良好的接口规范可以提升工作效率, 减少沟通障碍. 通常我们都会采用 REST 方式来提供接口, 使用 JSON 来传输数据. 名词 含义 前端 Web前端, APP端, 桌面端等一切属于用户界面的这一层 ...
地址 https://codeforces.com/contest/1139/problem/E 原文地址 https://www.lucien.ink/archives/410 题意 $n$ 个点,$m$ 个集合,每个点都有一个权值,且只属于一个集合,每次你可以从每个集合中选定至多一个点,你的目标是使这些选出来的点权值的 $Mex$ 最大。有 $d$ 个询问,每个询问为一个数字 ...
地址 https://codeforces.com/contest/1139/problem/D 原文地址 https://www.lucien.ink/archives/409 题意 模拟一个循环,一开始有一个空序列,之后每次循环: 从 $[1, m]$ 中等概率选出一个数字添加到序列里去。 检查这个序列所有元素的 $gcd$ 是否为 $1$...