ICode9

精准搜索请尝试: 精确搜索
  • Transformer——Attention Is All You Need经典论文翻译2022-08-30 12:03:17

    转载自:Transformer——Attention Is All You Need经典论文翻译(邓范鑫——致力于变革未来的智能技术)   本文为Transformer经典论文《Attention Is All You Need》的中文翻译https://arxiv.org/pdf/1706.03762.pdf   注意力满足一切 Ashish Vaswani Google Brain avaswani@googl

  • Codeforces Round #810 (Div. 2) C.Color the Picture,大胆猜测+一点模拟2022-07-28 11:01:40

    题目给定若干段颜色,还有每个颜色能涂的max个数 求能否满足相邻方格必须同一个颜色,规定相邻方格必定为4个,如果跨边界了也要考虑(比如第1行的上面的方块就是第n行   样例给出的染色方案是整列整列染过去,现场的时候思考了一下除了整列整行的染,有没有其他方案? 没有,因为如果有的话,必然

  • 这工具,这翻译,看来软件还是不够智能啊2022-07-18 20:31:33

    The rapidly evolving character of war has significant implications for the Sea Services. As with every major war in the past, tomorrow’s competitions and conflicts will need new doctrine, new organizations, and new service cultures to prevail.百度翻译:战争的

  • CF1691B Shoe Shuffling2022-06-04 08:02:01

    洛谷题面 题目大意 求出每一个大小相同的“块”,如果有块的大小为 \(1\) 则无解。 否则,我们对于每个“块”,设组成此“块”的每个元素的下标为 \([i,i+1,\cdots,i+k]\),则答案排列为 \([i+k,i,i+1,\cdots,i+k-1]\)。 注意求无解和输出要分开操作。 代码 #include <iostream> #include

  • 2.括号题目2022-05-22 14:01:39

    括号题目 遇到左括号就入栈,遇右括号就去栈中寻找最近的左括号,看是否匹配 public boolean isValid(String str) { Stack<Character> left = new Stack<Character>(); for(char c : str.toCharArray()){ if(c=='(' || c=='{' || c=='['

  • Windows10 Docker报错 ERROR: Couldn't connect to Docker daemon - you might need to run `docker-mac2022-05-19 10:31:42

    问题描述:Windows10 家庭版 docker确认已启动,但是执行 docker-compose up -d 时报错,提示需启动docker: ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`. 成因:由于权限不足,以管理员身份运行命令行窗口即可解决。 解决:搜索CMD,右

  • 【数组&双指针】LeetCode 76. 最小覆盖子串【困难】2022-04-27 20:34:03

    给你一个字符串 s 、一个字符串 t 。返回 s 中涵盖 t 所有字符的最小子串。如果 s 中不存在涵盖 t 所有字符的子串,则返回空字符串 "" 。 注意: 对于 t 中重复字符,我们寻找的子字符串中该字符数量必须不少于 t 中该字符数量。如果 s 中存在这样的子串,我们保证它是唯一的答案。  示

  • BZOJ2654 tree (wqs二分)2022-04-05 10:04:47

    题目描述 给你一个无向带权连通图,每条边是黑色或白色。让你求一棵最小权的恰好有need条白色边的生成树。 题目保证有解。   一个最小生成树问题,但是我们要选need条白边,我们用g(i)表示选取i条白边的最优方案(生成树的权值最小),那么可以大致猜出g(i)是关于i的一个下凸函数,可以发现斜

  • Web架构学习2022-03-21 08:02:57

    背景知识 零复制 (zero copy) 技术 https://www.junmajinlong.com/coding/zero_copy/ 五种 IO 模型分析(精) https://www.junmajinlong.com/coding/IO_Model 不可不知的 socket 和 TCP 连接过程(精) https://www.junmajinlong.com/coding/tcp_socket/ 简单说明 CGI 和动态请求是

  • linux kernel makefile 分析 - 22022-03-19 12:36:27

    上一篇:https://www.cnblogs.com/zhangzhiwei122/p/16025859.html 背景说明 版本: 5.10.0 - 下面分析中 使用的行号,都是 参考 这个 版本的 Makefile 。 在线浏览: https://lxr.missinglinkelectronics.com/linux/Makefile   使用场景: 在源码文件夹下面建立一个build 文件夹,然后使

  • 准确来说应该是求助吧……ALGO-990,Sticks2022-03-07 15:31:06

    完全不理解为什么这个TLE了,nmmd #include <iostream> #include <vector> #include <algorithm> using namespace std; int count1 = 0; bool compare(int a, int b) { return a > b; } vector<int> read_in(int n, int &sum) { vector<int>

  • Creating .deb to install bash script program2022-02-15 23:31:08

    https://stackoverflow.com/questions/12288357/creating-deb-to-install-bash-script-program   Basically (install and) run dh-make to set up the debian/ directory, edit the generated files (mainly remove the many you do not need, and fill in a package descrip

  • 2022-2-10数学day42022-02-10 13:02:55

    题1: 227. 基本计算器 II 给你一个字符串表达式 s ,请你实现一个基本计算器来计算并返回它的值。 整数除法仅保留整数部分。   示例 1: 输入:s = "3+2*2" 输出:7 示例 2: 输入:s = " 3/2 " 输出:1 示例 3: 输入:s = " 3+5 / 2 " 输出:5   提示: 1 <= s.length <= 3 * 105 s 由

  • Git教程3-undo your changes2022-02-08 13:03:40

    I didn't really know how I can name this chapter so basically I used the worst name,perhaps. I don't really have a website to show you even though we need codes of a website to help explain how git works in this situation,but I'm just too l

  • AWS白皮书 中文版(中英对照版) - 002 什么是云计算?2022-02-05 12:00:52

    什么是云计算? Cloud computing is the on-demand delivery of compute power, database, storage, applications, and other IT resources through a cloud services platform via the Internet with pay-as-you-go pricing. Whether you are running applications that share

  • 剑指 Offer 15. 二进制中1的个数2022-02-05 01:01:16

    剑指 Offer 15. 二进制中1的个数 因为题目限定了是\(32\)位整数,故而我们可以枚举\(n\)的每一位即可。 \((1 << i)\)表示\(n\)的二进制数中的第\(i + 1\)位,因此我们枚举即可。 public class Solution { // you need to treat n as an unsigned value public int hammingWe

  • LeetCode —— 76. 最小覆盖子串2022-02-03 19:04:01

    文章目录 题目描述示例示例一示例二示例三 解题思路代码呈现参考文献 题目描述 给你一个字符串 s 、一个字符串 t 。返回 s 中涵盖 t 所有字符的最小子串。如果 s 中不存在涵盖 t 所有字符的子串,则返回空字符串 “” 。 注意: 对于 t 中重复字符,我们寻找的子字符串中该字

  • 均分纸牌 洛谷2022-02-01 15:58:15

    解题思路 这道题用贪心算法,先计算出每个牌堆应有多少牌,然后从左往右遍历每一牌堆,如果当前牌堆多于应有牌数,则移动多余部分至下一牌堆,如果当前牌堆少于应有牌数,则将后边的牌堆遍历并累加,直到这些牌堆的牌数大于等于这些牌堆总的应有牌数,通过这种移动方式,最终便可以计算

  • Android Doc 之 Aidl2022-01-25 11:04:00

    android IPC: AIDL thread is not blocked. AIDL线程是不被阻塞的 Using AIDL is necessary only if you allow clients from different applications to access your service for IPC and want to handle multithreading in your service. 使用AIDL是必要的(你允许来自不同应用

  • Codeforces Round #764 (Div. 3)(CF1624)题解2022-01-24 13:02:36

    1624D. Palindromes Coloring 题意: 给定一个字符串,长度为n,顺序任意调换。取k个字串,要求为回文,求回文子串字串最短长度。 解法: 考虑每个字母的贡献,如果有成对的字母,则可以放在首尾,而单个只能放在中间。如果无法均匀分配,则剩下的配对字母应当拆分成单个以最大化答案。 #include <bit

  • Attention Is All You Need2022-01-12 22:35:37

    本文告诉我们attention机制可以不仅用于联系编码器和解码器,也可以用于模型的全部部分的构筑。 arXiv:1706.03762v5 贡献小引: Equal contribution. (先驱)Jakob proposed replacing RNNs with self-attention and started the effort to evaluate this idea. (模型实现)Ashish, wi

  • MQ (Message Queue) 消息队列2022-01-08 10:03:33

      Disadvantages of MQ Reduced system availability: System availability is reduced to some extent, why do you say this? Before joining MQ, you don't need to consider the situation of message loss or MQ hang, but after the introduction of MQ, you need

  • 用自定义数据集训练YOLO2022-01-04 02:01:09

    YOLO Training Conclusion on Custom Dataset and FAQs YOLO official website Prepare dataset You can google how to prepare your custom dataset. There are lots of tutorials available. I recommend this article. My custom dataset has ~15k images and 3 classes

  • 字符串的重新排列2022-01-01 22:34:22

    字符串的重新排列 一、题目描述二、套入模板 一、题目描述 LeetCodeOJ链接: 字符串的重新排序 二、套入模板 滑动窗口模板介绍代码实现 class Solution { public boolean checkInclusion(String s1, String s2) { HashMap<Character,Integer> need=new HashM

  • 操作系统 | 银行家算法举例2021-12-30 14:03:23

    举例说明:“若系统状态目前是安全的,若对某个申请评估时 在假定分配状态中,只要找到一个可满足线程就可断定系统是安全的”结论是错的。请构造一个例子进行证明。 例:在银行家算法中,若出现下述分配情况,试问: 若进程P2提出请求Request(1,2,2,2)后,系统能否将资源分配给它? 答:不能,按照银行家

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有