operations infinite atcoder regular
RxJS 系列 – Conditional and Boolean Operators
前言 前几篇介绍过了 Creation Operators Filtering Operators Join Creation Operators Error Handling Operators Transformation Operators Join Operators Utility Ope ......
RxJS 系列 – Utility Operators
前言 前几篇介绍过了 Creation Operators Filtering Operators Join Creation Operators Error Handling Operators Transformation Operators Join Operators 这篇继续介绍 Util ......
AtCoder Beginner Contest 154
AtCoder Beginner Contest 154 https://atcoder.jp/contests/abc154 今天也比较简单。 E - Almost Everywhere Zero 贪心或者数位dp。 (其实我这个贪心应该就是在模拟数位dp) 贪心 #include <bits/s ......
AtCoder Beginner Contest 296
AtCoder Beginner Contest 296 比赛连接 好久没写题解了~~ D - M<=ab 题意就是给定N,M, 求一个最小的数x同时满足x>=M且x=a*b(a<=N,b<=N); N,M<=1e12 开始脑瘫想了二分,仔细一想很明显x不满足单调性,想了下暴力的时间复杂度巨大... ......
AtCoder Beginner Contest 144
AtCoder Beginner Contest 144 https://atcoder.jp/contests/abc144 补一下3.23做的。 D - Water Bottle 分类讨论,三角函数。 #include <bits/stdc++.h> #define pi acos (-1) u ......
AtCoder Beginner Contest 296 A-E
AtCoder Beginner Contest 296 A - Alternately 1 void solve(){ 2 int n=read(); 3 string s; 4 cin>>s; 5 int ans=1; 6 for(int i=0;i<s.size()-1;i++){ 7 if( ......
AtCoder Beginner Contest 296
AtCoder Beginner Contest 296 赛时代码 A - Alternately // Problem: A - Alternately // Contest: AtCoder - AtCoder Beginner Contest 296 // URL: https://atcod ......
AtCoder Beginner Contest 296 做题记录
D - M<=ab 题意:求最小的正整数,不小于 $m$,且能被表示为两个不大于 $n$ 的正整数的数,不存在输出 -1。$n,m\le10^{12}$。 直接枚举 $a$,计算最小的满足 $ab\ge m$ 的 $b$,如果 $a>b$ 则后面的情况一定是重复的。时间复杂度 $\text{O}(\ ......
AtCoder Beginner Contest 153
AtCoder Beginner Contest 153 https://atcoder.jp/contests/abc153 这套比较简单。 E - Crested Ibis vs Monster 完全背包 #include <bits/stdc++.h> #define ll long long ......
AtCoder Beginner Contest 296
E Transition Game 拓扑跑环。 C++ Code #include "bits/stdc++.h" using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false); cin.ti ......
AtCoder Beginner Contest 296 ABCD
https://atcoder.jp/contests/abc296 ###A - Alternately #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; cons ......
AtCoder Beginner Contest 296
295? 上周ECF玩去了,咕咕咕 A - Alternately (abc296 a) 题目大意 给定一个包含$MF$的字符串,问是否是 $M,F$交替出现的。 解题思路 判断相邻字母是否相等即可。 神奇的代码 ```cpp #include using namespace std; using ......
sudo: unable to change to root gid: Operation not permitted
出现这个问题可能是使用了游客登录 将guest游客切换为普通用户 切换方法: ......
AtCoder Beginner Contest 152
AtCoder Beginner Contest 152 https://atcoder.jp/contests/abc152 F我看了半天,编码方式那里还算是感觉比较玄乎,这题确实妙。 D - Handstand 2 只需记录两端数字即可,不要想太复杂。 #include <bits/stdc++ ......
Solution Set - Atcoder (on scene)
/ 哪怕只是一瞥见谜底就坠落 还有无数个想探求的巧合 /
/ 哪怕只是领悟到答案的晦涩 也全力证明所经过都值得 / ......
Kubernetes: operation
imagePullSecrets # using config.json kubectl create secret generic secret-docker \ --from-file=.dockerconfigjson=<path/to/.docker/config.json> \ --typ ......
Linux设备文件三大结构:inode,file,file_operations
struct inode Linux中一切皆文件,当我们在Linux中创建一个文件时,就会在相应的文件系统创建一个inode与之对应,文件实体和文件的inode是一一对应的,创建好一个inode会存在存储器中,第一次open就会将inode在内存中有一个备份,同一个文件被多次打开并不会产生多个ino ......
AtCoder Beginner Contest 295
题解报告 基本的一些理解和问题都在注释中 A:Probably English //水题 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <string> #include ......
AtCoder Beginner Contest 151
AtCoder Beginner Contest 151 https://atcoder.jp/contests/abc151 这一套质量一般 E - Max-Min Sums 组合数学 #include <bits/stdc++.h> #define ll long long using name ......
AtCoder Beginner Contest 150
AtCoder Beginner Contest 150 https://atcoder.jp/contests/abc150 def都蛮不错的 D - Semi Common Multiple 先推一下:$x=a_i\times(p+0.5)\rightarrow x=\frac{a_i}2(2p ......
容器云平台监控告警体系(三)—— 使用Prometheus Operator部署并管理Prometheus Server
1、概述 Prometheus Operator是一种基于Kubernetes的应用程序,用于管理Prometheus实例和相关的监控组件。它是由CoreOS开发的开源工具,旨在简化Prometheus的部署和配置。 容器云平台通过使用Prometheus Operator简化在Kubernetes ......
AtCoder Beginner Contest 149
AtCoder Beginner Contest 149 https://atcoder.jp/contests/abc149 D - Prediction and Restriction 读题的锅!!没说输了要扣分!!! 两种做法。 贪心 对于相同格子 $i,i+k,i+2k,...$ 采取赢,平 ......
【题解】Atcoder AGC034E Complete Compress
题目分析: 看到数据范围显然考虑先枚举一个集合点,也就是根。 设 $g_u = \sum_{v \in tree_u \and col_u = 1} dis(u,v)$,那么我们一次操作就是让 $g_u$ 减二或者不变,而不变的操作就是在 $u$ 的同一棵子树内的操作是没有影响的。 因为我们可以将 ......
AtCoder Beginner Contest 245
A - Good morning #include <bits/stdc++.h> using namespace std; int32_t main() { int a , b , c , d; int ta , ao; cin >> a >> b >> c >> d; ta = a * 60 * ......
AtCoder Beginner Contest 246
AtCoder Beginner Contest 246 A (思维) A 这个题大意是告诉你一个矩形的三个点,求第四个点,并且已知每条边都是平行于$x$轴或者是$y$轴的,那么我们可以确定,$x$坐标只有两种,并且每一种都有两个,$y$坐标也是 题目输入三个坐标,那么答案就是缺少的那个个(数量为$ ......
C++编程语言中赋值运算符重载函数(operator=)介绍
参考资料: C++编程语言中赋值运算符重载函数(operator=)介绍_operator==_liitdar的博客-CSDN博客 本文主要介绍 C++ 编程语言中赋值运算符重载函数(operator=)的相关知识,同时通过示例代码介绍赋值运算符重载函数的使用方法。 1 概述 1.1 Why 首先介 ......
AtCoder Beginner Contest 295
A - Probably English #include <bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') && ch ......
[GPT] php查询mongo,触发了 operation exceeded time limit
"operation exceeded time limit"错误通常意味着查询所需的时间超过了MongoDB实例配置的操作超时限制。 这可以是由于查询需要处理大量数据或没有正确索引导致的慢查询。 建议使用explain()命令来分析查询计划并确认是否使用了正确的索引。 如果查询仍然需要更长时间才能 ......
AtCoder Beginner Contest 145
AtCoder Beginner Contest 145 https://atcoder.jp/contests/abc145 D - Knight 乍一看以为是dp,但是数据范围不允许。 仔细一看发现,两种操作的次数是固定的,可以枚举出来每种操作分别进行了多少次,如 $(1,2)$ 走了 $a$ ......
AtCoder Beginner Contest 148
AtCoder Beginner Contest 148 https://atcoder.jp/contests/abc148 这场比较简单 D - Brick Break 二分 or LIS #include <bits/stdc++.h> #define ll long long using n ......