除法 整数 符号div

Codeforces Round 904 (Div. 2)

[Codeforces Round 904 (Div. 2)](https://codeforces.com/contest/1894) A. Simple Design 暴力就行了 1e9跑不满的 #include <bits/stdc++.h> #define int long long #de ......
Codeforces Round 904 Div

Codeforces Round 801 (Div. 2)

基本情况 A就开始犯病,导致+2. B、C 都过样例了,但是都错。 B. Circle Game 赛时推出来奇数必输,也知道偶数不是必赢,但是思路不清楚。 这里我没意识到一个很关键的性质。 奇数堆拿的石堆会变,这也导致了必输,比如三个堆 \(1,2,3\)。表粗的为JOE。 1 2 3 1 2 3 ......
Codeforces Round 801 Div

Codeforces Round 909 (Div. 3)

https://codeforces.com/contest/1899 一个小游戏 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int n; int ma ......
Codeforces Round 909 Div

2023-12-09:用go语言,给你两个整数数组 arr1 和 arr2, 返回使 arr1 严格递增所需要的最小「操作」数(可能为 0)。 每一步「操作」中,你可以分别从 arr1 和 arr2

2023-12-09:用go语言,给你两个整数数组 arr1 和 arr2, 返回使 arr1 严格递增所需要的最小「操作」数(可能为 0)。 每一步「操作」中,你可以分别从 arr1 和 arr2 中各选出一个索引, 分别为 i 和 j,0 <= i < arr1.length 和 0 <= j ......
arr arr1 整数 数组 arr2

Codeforces Round 811 (Div. 3)

基本情况 ABC秒了。 DE都给了我希望,但都做不下去。 两道题反复横跳,结果最后谁也没做出来。 E还是比D亲切的,先补E吧。 E. Add Modulo 10 做的时候想着说对每个个位数的变化找找规律,但是没有进一步的发现。 实际上就应该从这里下手。 首先共识:相同的两个数经过操作后必然相同。 分 ......
Codeforces Round 811 Div

Codeforces Round 913 (Div. 3)

A. Rook 打印出象棋车的下一步 using namespace std; void solve(){ string s; cin>>s; char a=s[0]; char b=s[1]; set<string>ans; for(char i='1';i<='8';i++){ string t ......
Codeforces Round 913 Div

【LGR-168-Div.4】洛谷入门赛 #18

打表过样例 题目描述 很不幸,你遇到了不负责任的出题人。 在某道试题里,共有 \(N\) 个测试点,组成了 \(k\) 个 Subtask,第 \(i\) 个 Subtask 包含 \(p_i\) 个测试点,第 \(j\) 个测试点的编号为 \(w_{i,j}\)。请注意,一个测试点可能属于多个 S ......
LGR 168 Div 18

linux:符号文件的访问权限 与 实际文件访问权限的关系

Linux中,符号链接 自身是全部权限的(7777) 其访问的控制,是由实际(正规)文件的权限及上级目录的访问权限控制的。 即:符号链接仅仅是一种访问文件系统的简洁表示方式,虽然是一种linux文件,但其自身并没有权限控制的概念。 其权限是由实际(正规)文件控制的。 如此,linux可以一种简单的、 ......
权限 文件 符号 实际 linux

Symbol Namespaces (符号命名空间)(翻译 by chatgpt)

原文:https://www.kernel.org/doc/html/latest/core-api/symbol-namespaces.html 以下文件描述了如何使用符号命名空间来构造通过EXPORT_SYMBOL()宏系列导出的内核符号的导出表面。 1. 介绍 符号命名空间被引入作为结构化内核 ......
Namespaces 符号 chatgpt Symbol 空间

Codeforces Round 913 (Div. 3)

Codeforces Round 913 (Div. 3) 比赛链接 ROOK 题目 思路: 我没有下过国际象棋,但这个题跟国际象棋真是没有一点关系,就是一个简单的输出 代码: #include<bits/stdc++.h> using namespace std; #define int long ......
Codeforces Round 913 Div

Codeforces Round 913 (Div. 3)

Codeforces Round 913 (Div. 3) div3 两题 新纪录.. 我再也不喝完酒打cf了 A. Rook #include <bits/stdc++.h> //#define int long long #define endl '\n' using namespace std ......
Codeforces Round 913 Div

字符串转换为整数

1.parseInt () JavaScript 中的函数parseInt是将字符串转换为整数的方法。Number与函数或一元加运算符 ( )不同+,parseInt它专门专注于从字符串中解析整数。 以下是您可以使用的方法parseInt: 整数转换: parseInt将字符串显式转换为整数,并丢弃 ......
整数 字符串 字符

Educational Codeforces Round 158 (Rated for Div. 2)

Preface 补题,妈的现在Edu E都做不来这搞毛啊 A. Line Trip 签到 #include<cstdio> #include<iostream> #include<utility> #include<vector> #include<cstring> #include<cmath> ......
Educational Codeforces Round Rated 158

Codeforces Round 913 (Div. 3)(A~F)

A. Rook 题意:在一个国际象棋棋盘中,横坐标为a-h,纵坐标为1-8,字母在前,数字在后,输入一个棋子的位置,输出该棋子所在的行与列中非棋子本身位置的所有位置。 分析:模拟。 代码: #include <iostream> #include <algorithm> using namespac ......
Codeforces Round 913 Div

Codeforces Round 912 (Div. 2)

Preface 这场题莫名很对我胃口,因为F是个究极套路题,还是我最拿手的2-SAT,想+写不到半小时就搞定了 然后E的核心思想和上周末VP的一场省赛的题一样,因此看一眼就会了 唯一抽象的是D2要用对超集的sosdp,由于之前没写过就不知道还能这么搞 A. Halloumi Boxes 当\(k\g ......
Codeforces Round 912 Div

Educational Codeforces Round 154 (Rated for Div. 2)

Educational Codeforces Round 154 (Rated for Div. 2) # Name A Prime Deletion x14422 B Two Binary Strings x10743 C Queries for the Array x3639 D Sorting ......
Educational Codeforces Round Rated 154

Codeforces Round 913 (Div. 3)

A. Rook #include <bits/stdc++.h> using namespace std; #define int long long using pii = pair<int, int>; using node = pii; using i32 = int32_t; void so ......
Codeforces Round 913 Div

Codeforces Round 913 (Div. 3)

Codeforces Round 913 (Div. 3) 基本情况 A、B题秒了。 C题找了好几个规律,一开始一直找错,但是最后终于对的。 因为C题耗时太久,D、E题看都没看。准备先做一下再补题。 ......
Codeforces Round 913 Div

CodeTON Round 7 (Div. 1 + Div. 2, Rated, Prizes!)

Preface 补题,经典不会F,看了会题解发现看不懂,索性直接开摆 A. Jagged Swaps 判断\(a_1\)是否为\(1\)即可 #include<cstdio> #include<iostream> #include<utility> #include<vector> #include ......
Div CodeTON Prizes Round Rated

Codeforces Round 913 (Div. 3)B(预处理)

[Codeforces Round 913 (Div. 3)B]{https://codeforces.com/contest/1907} 预处理: 如果说一个数据是静态的,那可用预处理来减少运行时间。 在这里,我们对字符串的大小写字母做一个预处理,提前用数组记录下他们的位置,然后再根据题目要求对对 ......
Codeforces Round 913 Div

Codeforces Round 805 (Div. 3)

Codeforces Round 805 (Div. 3) 基本情况 A、B、C题秒了。 D题一开始读错题了,以为是DP,后面发现是简单贪心,拖了点时间才AC。 不过无所谓,因为E题没思路了。 但是总感觉 C 做的太不优雅。 C. Train and Queries 我的做法 就纯用STL无脑模拟。 ......
Codeforces Round 805 Div

[Codeforces Round 855 (Div. 3)](https://codeforces.com/contest/1800)

Codeforces Round 855 (Div. 3) A. Is It a Cat? 为什么这个A这么麻烦 #include <bits/stdc++.h> #define int long long #define endl '\n' using namespace std; void so ......
Codeforces codeforces contest Round https

Codeforces Round 590 (Div. 3)

Codeforces Round 590 (Div. 3) A Equalize Prices Again x10664 B1 Social Network (easy version) x8758 B2 Social Network (hard version) x6295 C Pipes x38 ......
Codeforces Round 590 Div

Educational Codeforces Round 159 (Rated for Div. 2)

A - Binary Imbalance 如果全是 0 则显然输出 YES。对至少有一个 1 的情况,如果存在 0 则一定存在一个 0 和 1 挨在一起的位置,一直往这中间加 0 即可满足要求。 于是只要字符串包含 0 就是 YES,全 1 就是 NO。 Submission B - Getting ......
Educational Codeforces Round Rated 159

Codeforces Beta Round 18 (Div. 2 Only) E

111 感觉写的好多都是2000分 dp + 路径 这个dp 很明显发现只和 行相关 然后我们发现每行最多俩个 那么肯定就是ababab这种交叉 dp i a b 就是我们第i行选了 a b 交叉的min 转移也是26*26 预处理 cost i a b 作为每行的转移代价即可 最后要注意就是m== ......
Codeforces Round Beta Only Div

[Educational Codeforces Round 159 (Rated for Div. 2)](https://codeforces.com/contest/1902)

Educational Codeforces Round 159 (Rated for Div. 2) 好困,差点没打 A - Binary Imbalance #include <bits/stdc++.h> #define int long long #define endl '\n' usin ......

分页符号的作用

一、需求 1、比如在下面的三页文章中,需要对中间的一个页面做横向设置,并且需要添加页框的设置如何进行操作 二、分页符的作用 打开word,插入--分页 创建三个空白的word纸张 开始--分页符,空白页面中会显示 分页符 字样,当需要删除时,鼠标放在分页符前面,点击delete可删除 布局 分隔符 ......
符号 作用

Codeforces Round 800 (Div. 2)

Codeforces Round 800 (Div. 2) 基本情况 A题秒了。 B题写了个递推,但是T了,这种构造题还是得多练。 B. Paranoid String 我的解法 #include <iostream> #include <cstdio> #include <cstring> #in ......
Codeforces Round 800 Div

Codeforces Round 912 (Div. 2) - sol

Codeforces Round 912 (Div. 2) - sol Codeforces Round 912 (Div. 2) 一直是因为晚上打太晚了就没有打过 cf,所以只能 vp 了。/kk 四道题有关位运算——不好评价。 A. Halloumi Boxes 给出 \(n\) 个数 \(a_ ......
Codeforces Round 912 Div sol

Codeforces Round 909 (Div. 3)

Codeforces Round 909 (Div. 3) A #include <bits/stdc++.h> #define int long long #define endl '\n'; using namespace std; int n; void solve(){ cin>>n; fo ......
Codeforces Round 909 Div