码迷,mamicode.com
首页 >  
搜索关键字:change vector    ( 18629个结果
1037 Magic Coupon (25 分)
水题~。 魔鬼变量名。 vector<int> positive_coupon,negative_coupon; vector<int> positive_product,negative_product; int nc,np; int main() { cin>>nc; for(int i=0;i ...
分类:其他好文   时间:2021-02-20 11:51:01    阅读次数:0
第三节:观察者模式——JDK应用的源码分析
一、观察者模式在 JDK 应用的源码分析 1、JDK 的 Observable 类就使用了观察者模式 2、源码分析 Observable 通过 Vector 来管理 Observer 其中提供了 add/delete/notify 等方法来管理观察者; Observer 是一个接口,提供了一个 up ...
分类:其他好文   时间:2021-02-20 11:49:24    阅读次数:0
CCF 201809-1 卖菜
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { ...
分类:其他好文   时间:2021-02-19 13:54:37    阅读次数:0
1047 Student List for Course (25 分)
兄弟题1039 Course List for Student (25 分),一样很水。 vector<string> course[2510]; int n,m; int main() { cin>>n>>m; for(int i=0;i<n;i++) { string name; name.re ...
分类:其他好文   时间:2021-02-19 12:59:54    阅读次数:0
移动端网页--better-scroll容易采坑合集
移动端网页--better-scroll容易采坑合集 一、better-scroll源码bug,浏览器需要刷新一次才能正常滑动 在new BScroll时,在options中加入 mouseWheel: true,//开启鼠标滚轮 disableMouse: false,//启用鼠标拖动 disab ...
分类:移动开发   时间:2021-02-19 12:59:19    阅读次数:0
常用的Dos命令
盘符切换 D: 查看当前目录下的所有文件 dir 切换目录 cd(change directory) 返回上一级目录 cd.. 清理屏幕 cls(clear screen) 退出终端 exit 查看电脑ip ipconfig 打开应用 calc(计算器) mspaint(画图) notepad(记事 ...
分类:其他好文   时间:2021-02-18 13:44:18    阅读次数:0
剑指 Offer 59 - I. 滑动窗口的最大值
一、题目描述 给定一个数组 nums 和滑动窗口的大小 k,请找出所有滑动窗口里的最大值。 示例: 输入: nums = [1,3,-1,-3,5,3,6,7], 和 k = 3输出: [3,3,5,5,6,7] 解释: 滑动窗口的位置 最大值 [1 3 -1] -3 5 3 6 7 3 1 [3 ...
分类:其他好文   时间:2021-02-18 13:06:38    阅读次数:0
leetcode1539 第k个缺失的正整数
思路1: 暴力枚举。 实现1: 1 class Solution 2 { 3 public: 4 int findKthPositive(vector<int>& arr, int k) 5 { 6 int n = arr.size(); 7 vector<int> cnt(2001, 0); 8 ...
分类:其他好文   时间:2021-02-18 12:54:30    阅读次数:0
完数与盈数
试除法求约数。 int check(int n) { int res=1; for(int i=2;i*i<=n;i++) if(n % i == 0) { res+=i; if(i != n/i) res+=n/i; } return res; } int main() { vector<int> ...
分类:其他好文   时间:2021-02-17 14:12:57    阅读次数:0
常用Dos的命令
常用的Dos命令 查看当前目录下所有文件 Dir 跨盘切换目录 cd /d 盘:\文件名字 返回上一级 cd.. 清理屏幕 cls 进入文件 cd 文件名字 退出终端 exit 进入管理员模式,查看电脑ip ipconfig 还可以打开软件 管理员模式ping www.bilibili.com 可以 ...
分类:其他好文   时间:2021-02-16 12:47:26    阅读次数:0
18629条   上一页 1 ... 21 22 23 24 25 ... 1863 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!