标签div lt gt
HydroOJ 从入门到入土(7)Hydro自带数据生成器使用说明(>=4.10.1)
Hydro更新了一个新功能, 可以直接用自带的数据生成器, 在线生成数据, 简单记录一下使用方法 目录1. 文件准备2.使用步骤3. 注意事项4. 文件模版 1. 文件准备 gen.py (数据生成器, 后附模版) std.cpp (标准程序, 后附模版) 文件名随意, 其他的类型应该也行, 不过没 ......
Codeforces Round 855 (Div. 3)
Codeforces Round 855 (Div. 3) A. Is It a Cat? 题意:要求: 字符串必须以只包含字母 "m "或 "M "的非空序列开始 必须紧跟由'e'或'E'字符组成的非空序列 必须紧接着仅由字符'o'或'O'组成的非空序列 必须紧接着是仅由字符'w'或'W'组成的非 ......
Codeforces Round 863 (Div. 3)
Codeforces Round 863 (Div. 3) A. Insert Digit 题意:插入一个字母使得这个数字最大化 思路:只要从前往后便利就行 #include <iostream> using namespace std; void solve() { int n, k; cin > ......
Codeforces Round 913 (Div. 3)
Codeforces Round 913 (Div. 3) A:ABC A. Rook 简单题,就两个循环搞定(直接上码) #include <bits/stdc++.h> using namespace std; void solve() { char a; int b; cin >> a >> ......
Codeforces Round 867 (Div. 3)
Codeforces Round 867 (Div. 3) A:ABCD (E差一点点,最后把那种特殊情况想出来然后没写上去就结束了) A. TubeTube Feed 题意:给两个数组分别是时间和价值,要价值最大但是只能选一个 思路:最开始以为是01背包,结果只选一个,一个一个枚举就行 #incl ......
Codeforces Round 913 (Div. 3)
CF1907总结 A.Rook 题面翻译 给出车在国际象棋棋盘中的位置,输出其可到达的坐标(不必在意顺序)。 车可以横着或竖着走任意格数。 分析 题意明了,输出车所在行和列所有格子的序号(除车所在位置外)。 code #include <bits/stdc++.h> using namespace ......
Codeforces Round 891 (Div3)
Codeforces Round 891 (Div. 3) A. Array Coloring 这个我vp的时候写复杂了,想不到答案的思路这么清晰,将两部分分别看,将偶数加进去其奇偶性不变,只有奇数加进去才会改变奇偶性,so只有改变偶数次奇偶性才能使其奇偶性相同,所以cnt%2==0. #inclu ......
Codeforces Round 816 (Div. 2) VP
基本情況 A秒了,B错一次之后也过了,C没思路。 B. Beautiful Array Problem - B - Codeforces void solve() { long long n, k, b, s; memset(ans, 0, sizeof(ans)); std::cin >> n > ......
Codeforces Round 815 (Div. 2)
基本情况 脑子太不清楚了。 A题有思路,但是各种细节问题(数论题太不熟练了),错了好几次才过。 B题直接分析数据愣猜一个解,猜对了。 A. Burenka Plays with Fractions Problem - A - Codeforces 难点在分析输出 \(1\) 的情况。 我的想法是通分 ......
Codeforces Round 915 (Div. 2)
A. Constructive Problems 看了一眼数据,猜测可能是n,m里的最大 #include<bits/stdc++.h> using namespace std; void solve(){ int a,b; cin>>a>>b; int ans=max(a,b); cout<<an ......
Codeforces Round 915 (Div. 2)
Codeforces Round 915 (Div. 2) 唉,菜狗。 A - Cover in Water int main() { IOS; for (cin >> _; _; --_) { cin >> n >> m; cout << max(n, m) << '\n'; } return 0 ......
Codeforces Round 915 (Div
Codeforces Round 915 (Div. 2) 题解 A.Constructive Problems 直接找规律,或者手玩一下发现按照对角线斜着放最优(不会证),答案即为 \(max(n, m)\) 。 B.Begginer's Zelda 每次我们选择的端点一定是叶子结点,最优性是显然 ......
Codeforces Round 910 (Div. 2) D. Absolute Beauty(数论)
Codeforces Round 910 (Div. 2) D. Absolute Beauty 思路: 将每个 \(a_i\) 与 \(b_i\) 转化为线段,大数在后,小数在前 即 L ( min) —— R (max) 对于 \(b_i\) 和 \(b_j\) 的 交换 : L1 —— R ......
Codeforces Round 910 (Div. 2) B. Milena and Admirer(数论)
Codeforces Round 910 (Div. 2) B. Milena and Admirer 思路: 要使数组非递减,则可以先进行倒序遍历,对于当前的 \(a_i\) , 要使 \(a_i\le a_{i+1}\) 我们可以进行贪心,让 \(a_i\) 分完尽可能使每个 \(a_i / k ......
Educational Codeforces Round 139 (Rated for Div. 2) D. Lucky Chains(数论)
Educational Codeforces Round 139 (Rated for Div. 2) D. Lucky Chains 思路: 假设幸运为k , 则 gcd(x+k,y+k) ≠ 1 , k取最小整数(k>=0) 由此可设 因子为 d , (x+k)%d = 0 , (y+k)%d ......
Codeforces Round 891 (Div. 3) F. Sum and Product (数论)
Codeforces Round 891 (Div. 3) F. Sum and Product 思路: 对于x,y:ai+aj=x —> aj=x-ai 因此 ai*(x-ai) = y ——> ai = (x 土 sqr( x^2 - 4y ) ) /2 对应的 ai 就是要的两个值 若两个值不 ......
Educational Codeforces Round 159 (Rated for Div. 2) C. Insert and Equalize (贪心+数论)
Educational Codeforces Round 159 (Rated for Div. 2) C. Insert and Equalize 思路: 首先对 \(a\) 进行排序, 然后对所有差值取gcd ,获得可用的最大因子 \(gc\), 答案有两种情况: 一种是 \(a_{n+1}\) ......
nodejs使用sequelize vscode报错:Type 'Model<any, any, any>' is not a constructor function type.的解决办法
我的模型定义如下: import { Model, DataTypes } from "sequelize"; // 定义资源模型 class Rule extends Model { } 问题: vscdoe报错: Type 'Model<any, any, any>' is not a cons ......
电脑时间不同步导致的上网报错:core/proxy/vmess/encoding: failed to read response header > websocket: close 1006 (abnormal closure): unexpected EOF
报错内容: 2023/12/16 14:08:56 [Warning] [775541588] xxxxx.com/core/app/proxyman/outbound: failed to process outbound traffic > xxxxx.com/core/proxy/vmess/ ......
Educational Codeforces Round 158 (Rated for Div. 2)C. Add, Divide and Floor(思维/数学)
C. Add, Divide and Floor 这里我们选择固定最小数不变,然后每次让其他数向最小数靠近,模拟一下可以发现,只要最大值变为和最小值一样,其他都会和最小值一样。 #include <bits/stdc++.h> #define rep(i,a,b) for(register int ......
从嘉手札<2023-12-15>
荒原 朔方 2023.12.15 人生实属是很愁的时间 愁到听不见一点雪花飘落的声音 愁到连随便写点文章都算得上拼尽全力 萧瑟的北风吹散了为数不多的倔强 漫天的雪花飞舞 埋葬的是那么多年走过的春秋 时光的幻象影影绰绰 将就地留下一滴泪水 在无边无际的茫茫大雪中 我仿佛看到 素白的灯笼草摇曳在寂静的荒 ......
如何用JS判断div中内容为空,当为空时隐藏div
<div class="right_con_div" id="nodiv"> <h2>标题1</h2> <ul class="id_inner"></ul> </div> <div class="right_con_div" id="nodiv"> <h2>标题2</h2> <ul class="i ......
Ant Design Vue <a-tabs>标签内嵌使用
<a-tabs :activeKey="activeKey" @change="handleTabChange"> <a-tab-pane v-for="(item, index) in menuList" :key="item.id" :tab="item.name" :index="index" ......
HTML5 Audio/Video 标签、属性、方法、事件汇总
audio用于播放网络上的音频文件,video用于播放网络上的视频文件。audio和video 标签的属性、方法和事件大部分都是共通的。在不同的浏览器中,它们会有不同的样式。 audio 基本语法 src 指定当前播放的音频文件,controls播放控制器,loop歌曲循环,autoplay自动播放 ......
C# 重新认识一下 IEnumerable<T>,IAsyncEnumerable<T> 以及搭配异步可能遇到的问题
C# 重新认识一下 IEnumerable<T>,IAsyncEnumerable<T> 以及搭配异步可能遇到的问题 前言# 为啥会想到写这个 为了这碟醋,包了这顿饺子 作为老鸟不免犯迷糊 因为 在使用异步中使用IEnumerable<T>,IAsyncEnumerable<T>遇到了一些细节(对于 ......
开源CMS (Content Management System)内容管理系统 => ECM (Enterprise Content Management)企业内容管理
* [求推荐几个java开发的开源CMS内容管理系统? - 知乎](https://www.zhihu.com/question/68264654)* [Content Management Workflow | dotCMS](https://www.dotcms.com/product/feat ......
【TCP】并发服务器<线程>
// 并发服务器-线程 #include <stdio.h> #include <strings.h> //bzero #include <unistd.h> //close #include <sys/socket.h> //socket #include <netinet/in.h> //str ......
【TCP】并发服务器<进程>
1 #include <stdio.h> 2 #include <strings.h> //bzero 3 #include <unistd.h> //close 4 #include <sys/socket.h> //socket 5 #include <netinet/in.h> //struc ......
html 5(三)之框架标签
iframe 嵌入 嵌入广告 <iframe src="网址" height="" width="" frameborder=""></iframe> 与超链接 target 关联 <a href="httos://www.toutiao.com" target="container">头条</a> ......
dgl AttributeError: Can't get attribute 'DGLGraph' on <module 'dgl.heterograph' from '/home/user/anaconda3/envs/mymodel/lib/python3.7/site-packages/dgl/heterograph.py'>
由于服务器重装了系统,因此cuda版本和ubuntu系统版本也换了,不得不重装系统,导致以前可以正常运行的代码出了各种故障(注:现在的ubuntu版本是18.04,cuda版本是11.3) AttributeError: Can't get attribute 'DGLGraph' on <modu ......