摘要:
原题传送阵 个人思路: 建立两个数组,分别把字符和转换后的数字放入不同数组内, 然后累加就完事了! 做完后,发现好多大佬们用二维数组写的, 看了之后, 很懵....... 有位大佬的思路和我的差不多, 就是有个步骤没看明白, #include <algorithm> #include <iostre 阅读全文
摘要:
如果 Windows 主机无法 ping 通 Docker 容器中 CentOS 的 IP 地址,可能是因为容器和主机之间的网络设置问题。 你可以尝试以下步骤来解决这个问题: 查看 Docker 容器的网络模式: docker inspect 容器名称 | grep -i "\"NetworkMod 阅读全文
摘要:
由于鄙人学习链表时太过于肤浅, 故作此篇来铭志! 刚开始学链表时,看各种代码,发现 malloc 函数使用频率特别高, 好奇,动不动就出现 Linklist 的创建,缺乏 对链表头结点的理解: 第一个结点的处理和其他结点是不同的,原因是第一个结点加入时链表为空, 它没有直接前驱结点,它的地址就是整个 阅读全文
摘要:
原题:UNICORN Programming Contest 2021(AtCoder Beginner Contest 225) Time Limit: 2 sec / Memory Limit: 1024 MB Score : 200200 points Problem Statement Yo 阅读全文
摘要:
C allows casting between different numeric data types. For example, suppose variable x is declared as int and u as unsigned. The expression (unsigned) 阅读全文
摘要:
Since binary Values are at the core of how computers encode,store, and manipulate information, a rich body of mathematical knowledge has evolved aroun 阅读全文
摘要:
D - Between Two Arrays Time Limit: 2 sec / Memory Limit: 1024 MB Score : 400400 points The portal Editorial The portal #include <iostream> #include <v 阅读全文
摘要:
五大函数: 析构函数 拷贝构造函数 移动构造函数 拷贝赋值 Operator= 移动赋值 Operator= 析构函数 只要一个对象运行越出范围, 或经受一次 delete, 则析构函数就要被调用 对于 Intcell,这些操作的形式是: ~Intcell(); //析构函数 Intcell(con 阅读全文
摘要:
1. 如何获取一个迭代器(iterator) 2. 迭代器本身能够执行什么操作 3. 哪些表 ADT 方法需要迭代器作为参数 iterator begin(): 返回一个适当的迭代器,表示容器中的第一项 iterator end(): 返回一个适当的迭代器,表示容器的尾端(终端)标记(即容器中最后一 阅读全文
摘要:
来源于ac contest 219 B Time Limit: 2 sec / Memory Limit: 1024 MB Score : 200200 points Problem Statement You are given three strings S_1, S_2, S_3S1,S2 阅读全文