摘要: c++ lambda function Course csdiy.wiki CS 97SI: Introduction to Programming Contests CS224n: Natural Language Processing with Deep Learning CS231n: Con 阅读全文
posted @ 2021-04-27 17:22 2inf 阅读(49) 评论(0) 推荐(0) 编辑
摘要: GoogLeNet 的图像分类 复制代码后依次运行下面命令 python3 net_model.py python3 train.py python3 test.py net_model.py import torch import torch.nn as nn import torch.nn.fu 阅读全文
posted @ 2022-05-17 02:13 2inf 阅读(41) 评论(0) 推荐(0) 编辑
摘要: vim set number syntax on "colorscheme industry set tabstop=4 set shiftwidth=4 set autoindent set expandtab set softtabstop=4 set cursorline autocmd fi 阅读全文
posted @ 2022-05-07 18:40 2inf 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Editorial 题意:长度为 \(n(1\le n\le2\times10^5)\) 的序列,可以重复以下三种操作之一任意次任意顺序使得序列递增。 选择一个 \(i\),消耗 \(a_i\) 将第 \(i\) 个数移到任意位置 选择一个 \(i\),消耗 \(b_i\) 将第 \(i\ 阅读全文
posted @ 2021-05-21 15:03 2inf 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 树状数组 电子速度 题意:平面 \(n\) 个电子,初始速度分别为 \(\vec{v_i}\),飙升系数 \(\sum_{1\le i\lt j\le n}|v_i\times v_j|^2\),有两种操作: 1 p x y: 将 \(\vec{v_p}\) 改为 \((x, y)\) 2 l r: 阅读全文
posted @ 2021-05-14 22:23 2inf 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Editorial Ref 题意: 在正方体的六个面各写一个正整数, 求有多少种方案使六个数和为 \(S(6\le S\le10^{18})\). 可以参考下这个 Burnside’s Lemma 法一: Polya 计数定理, 一共 24 种置换, 对骰子, 1 对 6, 2 对 5, 阅读全文
posted @ 2021-05-05 19:46 2inf 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 想提高 cf rating 还是得突破自己的瓶颈,分类做下一些题。 1527D MEX Tree 题目链接 题意:给出一棵 \(n(2\le n\le2\cdot10^5)\) 个节点的树,对 \(k\) 从 \(0\) 到 \(n\),求无序对 \((u,v),u\neq v\) 的数量使得从 \ 阅读全文
posted @ 2021-03-12 23:38 2inf 阅读(168) 评论(0) 推荐(0) 编辑
摘要: seaborn 数据集: https://github.com/mwaskom/seaborn-data matplotlib cheatsheet: https://github.com/rougier/matplotlib-cheatsheet 柱形图 import matplotlib.pyp 阅读全文
posted @ 2021-01-22 12:47 2inf 阅读(111) 评论(0) 推荐(0) 编辑
摘要: C Knapsack 贪心,如果一件物品的重量 \(C\) 满足 \(\lceil \frac{W}{2}\rceil\le C\le W\),则只选这一件,排除重量比 \(W\) 大的物品,不断加重量小于等于 \(\lceil \frac{W}{2}\rceil\) 的物品,直到总重量大于等于 \ 阅读全文
posted @ 2020-11-17 22:25 2inf 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 复变函数积分 设 \(\gamma:[a,b]\to\mathbb{C}\) 为一条可求长曲线,取分点 \(a=z_0,z_1,\cdots,z_n=b\),把 \(\gamma\) 分成 \(n\) 小段,第 \(k\) 段记做 \(\gamma_k\),在 \(\gamma_k\) 上取点 \( 阅读全文
posted @ 2020-11-08 00:50 2inf 阅读(746) 评论(0) 推荐(0) 编辑