pat_a 1067 sort with
【五期李伟平】CCF-A(S&P'20)The Value of Collaboration in Convex Machine Learning with Differential Privacy
Nan W., et al. “The Value of Collaboration in Convex Machine Learning with Differential Privacy.” 2020 IEEE Symposium on Security and Privacy. 304-317 ......
AtCoder Regular Contest 168 E Subsegments with Large Sums
洛谷传送门 AtCoder 传送门 尝试二分答案,问题变为要求恰好选 \(x\) 段 \(\ge s\),最大化选的段数。 发现我们不是很会算段数的 \(\max\),因为要求段不重不漏地覆盖 \([1, n]\)。考虑给每个 \(\ge s\) 段 \([l, r]\) 一个 \(r - l\) ......
Floyd判联通(传递闭包) & poj1049 sorting it all out
Floyd判联通(传递闭包) Floyd传递闭包顾名思义就是把判最短路的代码替换成了判是否连通的代码,它可以用来判断图中两点是否连通。板子大概是这个样的: for(int k=1; k<=n; k++){ for(int i=1; i<=n; i++){ for(int j=1; j<=n; j++ ......
Quake recovery starts with a bowl of hot beef noodles 地震恢复从一碗热牛肉面开始
In freezing temperatures, a simple bowl of beef noodles brings hope to thousands of residents who lost their homes in the magnitude-6.2 earthquake in ......
关于cin,cout的 I/O 性能优化【ios::sync_with_stdio(false);】
遇到大数据量(cin、cout 数据量级达到 1e5、1e6 ),因为考虑 IO 性能会报错 TLE,一般选择 scanf、printf 替代 cin、cout 但是加上这两段代码,它们之间的速度就相差无几了 ios::sync_with_stdio(false); cin.tie(nullptr) ......
FLAC: Federated Learning with Autoencoder Compression and Convergence Guarantee-2022
目的:减少通信量(成本),例如VGGNet架构具有大约1.38亿个参数(4264 Mb) 方法:具有自动编码器压缩(Autoencoder Compression)且具有收敛保证(Convergence Guarantee);利用冗余信息(the redundant information)和FL的 ......
Configuration 'compile' is obsolete and has been replaced with 'implementati解决方案
Android Studio更新到3.1.2编译之前的项目直接抛出下面的异常,这让我很是头疼,经过一翻查找发现是我们配置文件中的API已经过期,我对过期的API进行修改就Over了 1、异常显示 Configuration ‘compile’ is obsolete and has been rep ......
『LeetCode』4. 寻找两个正序数组的中位数 Median of Two Sorted Arrays
『1』合并两个正序数组 我的想法: 先借鉴归并排序的关键步骤将两个数组合并,然后根据数组长度是奇数还是偶数返回中位数。 实现代码: class Solution { // Using the Key Thinking of Merge Sort // M is the length of nums1 ......
《OneLLM: One Framework to Align All Modalities with Language》论文学习
一、Abstract 随着LLM的兴起,由于其强大的语言理解和推理能力,在学术和工业界中越来越受欢迎。LLM的进展也启发了研究人员将LLM作为多模态任务的接口,如视觉语言学习、音频和语音识别、视频理解等,因此多模态大语言模型(Multimodal Large Language Model, MLLM ......
Game with Marbles
引言 题目链接:https://codeforces.com/contest/1914/problem/E2 思路 假设有数组 \(a_1,a_2, \cdots a_n\) 和数组 \(b_1,b_2, \cdots b_n\) 分别表示 \(Alice\) 和 \(Bob\) 的弹珠数。 假设有 ......
论文阅读-Self-supervised and Interpretable Data Cleaning with Sequence Generative Adversarial Networks
1. GARF 简介 代码地址:https://github.com/PJinfeng/Garf-master 基于 SeqGAN 提出了一种自监督、数据驱动的数据清洗框架——GARF。 GARF 的数据清洗分为两个步骤: 规则生成 (Rule generation with SeqGAN):利用 ......
E2. Game with Marbles (Hard Version)
原题链接 导论,有点博弈论的感觉? 每个人轮流选一个大家都有的球,然后自己扣一个球,对方扣完。问女生剩下的球减去男生剩下的球,最大值是多少? 一些条件 1.初始每个人每种球都有 2.女生想使这个值大一点,男生想使这个值小一点,换句话说,每个人都尽量多扣对面的球,多保留自己的球。 3.如果选择扣掉对面 ......
MySQL server is running with the --super-read-only option的解决办法
原因 数据库是只读模式 解决办法 修改为读写模式 mysql -uroot -p你的密码 进入mysql select @@read_only; set global read_only=0; # 顺便设置可远程连接(不需要可跳到flush privileges) use mysql; update ......
SSH失败:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
一、表象 二、分析 由报错信息可以看出“公钥”是错误的 检查 **服务器 **~/.ssh/authorized_keys文件公钥配置 也有可能是配置问题,解决问题如下 三、解决 vim /etc/ssh/sshd_config # 增加如下修改: PasswordAuthentication ye ......
Unable to negotiate with ip port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
一、解决 cd ~/.ssh vim config # 添加以下内容 Host * HostkeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa ......
CF1866B Battling with Numbers 题解
前置知识:如果 \(p=x^a,q=x^b\),那么 \(\gcd(p,q)=x^{\min(a,b)},\operatorname{lcm}(p,q)=x^{\max(a,b)}\)。 对于每个 \(x \in a_i\),令 \(x\) 在 \(Y\) 中的指数为 \(d_i\)(实际上不一定) ......
Build Secure Web Services With SOAP Headers and Extensions
原文如下: https://www.developer.com/microsoft/dotnet/build-secure-web-services-with-soap-headers-and-extensions/ 摘录我最想要的Extensions部分 <%@ WebService Langua ......
[AGC054C] Roughly Sorted 题解
题意 定义一种操作为交换 \(a_{i}\) 和 \(a_{i-1}\)。对于一个长度为 \(n\) 的排列,你需要操作若干次,使这个序列变合法,一个序列合法指:满足对于每一个 \(1\le i \le n\),都满足包含 \(a_i\) 的逆序对的个数不超过 \(k\),并且要求最小化操作次数。现 ......
Freezing with Style 题解?
好像不是题解,算是记录。 记一个 Trick:当求路径边权的中位数的最大值的时候,可以先二分一个答案 \(mid\),然后把大于 \(mid\) 的边设为 \(1\),否则设为 \(-1\)。这样只需要看路径长度是否大于零就可以判断出有没有中位数大于等于 \(mid\) 的情况了。 当然类似到求一个 ......
报错 MEDIA_URL setting must end with a slash
报错 MEDIA_URL setting must end with a slash 构建Django报错, MEDIA_URL setting must end with a slash 分析 根据报错找到media url配置,查看官方文档 MEDIA_URL 必须以/结尾 #根据报错找到med ......
C. Game with Multiset
原题链接 反思:要把各种可能的情况都判断一遍再提交!不要急着提交 简介 仓库里有若干个二次方数,请问是否能取出若干数使得刚好等于给定数? 情况讨论 情况1.仓库里只有一个4,但是我要求2,求不得 情况2.仓库里有三个1,我要求3,能求 大概思路 从\(i\in[log2(v),0]\)遍历(从大到小 ......
Docker error: "host" network_mode is incompatible with port_bindings
原因 这个错误的原因是在Docker的配置中,使用了"host"网络模式,同时又试图绑定端口(port_bindings)。"host"网络模式意味着容器将直接使用主机的网络,而不是使用Docker创建的虚拟网络。在这种模式下,容器的网络栈不会被隔离,容器可以直接监听主机的网络端口。 因此,当使用" ......
Vision Transformer with Super Token Sampling
Vision Transformer with Super Token Sampling * Authors: [[Huaibo Huang]], [[Xiaoqiang Zhou]], [[Jie Cao]], [[Ran He]], [[Tieniu Tan]] Local library 初读 ......
InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions 可变形卷积v3
InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions * Authors: [[Wenhai Wang]], [[Jifeng Dai]], [[Zhe Chen]], [[Z ......
SegViT: Semantic Segmentation with Plain Vision Transformers
SegViT: Semantic Segmentation with Plain Vision Transformers * Authors: [[Bowen Zhang]], [[Zhi Tian]], [[Quan Tang]], [[Xiangxiang Chu]], [[Xiaolin We ......
BiFormer: Vision Transformer with Bi-Level Routing Attention 使用超标记的轻量ViT
alias: Zhu2023a tags: 超标记 注意力 rating: ⭐ share: false ptype: article BiFormer: Vision Transformer with Bi-Level Routing Attention * Authors: [[Lei Zhu] ......
Adaptive Sparse Convolutional Networks with Global Context Enhancement for Faster Object Detection on Drone Images
Adaptive Sparse Convolutional Networks with Global Context Enhancement for Faster Object Detection on Drone Images * Authors: [[Bowei Du]], [[Yecheng ......
PORSCHE PIWIS 3 VCI Tool with V43.300.22+V38.250 Software Free Download
PORSCHE PIWIS 3 is the latest professional workshop diagnostic tool available in the market. It is designed specifically for Porsche vehicles and offe ......
Django报错UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list
Django报错UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list 报错 报错信息如下: Django报错Django报错UnorderedObject ......
打包后运行不了,错误:"WebAssembly.instantiatestreaming’ failed because your server does not serve wasm with "application/wasm’MIME typeraln a8esa1yntantenwmich as a rre ME type Bpected "aplication/wam'
页面访问不了,错误截图: 解决方式:Nginx是在配置文件里面编辑: 保存后重启Nginx,清除缓存后生效 ......