码迷,mamicode.com
首页 >  
搜索关键字:card marking    ( 1752个结果
EC round 33 D. Credit Card 贪心
因为到为0的点,充钱的范围都是不确定的,我们维护一个满足条件的最小值以及满足条件的最大值。 当min>d时,代表已经满足条件限制了 当a[ i ] = 0 并且 max<0,代表需要充钱,充钱能够保证当前 minn=0 maxx = d 其他情况则对minn, maxx相应的增加和减少进行操作就可以 ...
分类:其他好文   时间:2019-09-09 19:38:40    阅读次数:80
so easy(并查集+unordered_map)
There are nn points in an array with index from 11 to nn, and there are two operations to those points. 1: 1 \ x1 x marking the point xx is not availa ...
分类:其他好文   时间:2019-09-09 17:53:50    阅读次数:83
LeetCode 837. New 21 Game
原题链接在这里:https://leetcode.com/problems/new-21-game/ 题目: Alice plays the following game, loosely based on the card game "21". Alice starts with 0 points ...
分类:其他好文   时间:2019-09-09 12:56:07    阅读次数:86
static/dynamic cast
#include <vector>#include <iostream> struct B { int m = 0; void hello() const { std::cout << "Hello world, this is B!\n"; }};struct D : B { void hello ...
分类:其他好文   时间:2019-09-08 09:35:21    阅读次数:77
shell编程实战9
1. 根据网卡名输出IP #!/bin/bash ip addr|grep ^[0-9]|awk -F '[: ]+' '{print $2}'>/tmp/eth.list ##利用死循环来提示用户输入正确的网卡名,输入正确的网卡名后跳出死循环while :do echo "The network ...
分类:系统相关   时间:2019-09-06 01:13:40    阅读次数:94
C++智能指针
#include #include using namespace std; class PokerGame{ public: int cards; int mumber; string name; PokerGame(int cards, int mumber){ this->cards = ca... ...
分类:编程语言   时间:2019-09-04 21:50:54    阅读次数:93
PAT A1153 Decode Registration Card of PAT [硬核模拟]
题目描述 "链接" 给出一组学生的准考证号和成绩,准考证号包含了等级(乙甲顶),考场号,日期,和个人编号信息,并有三种查询方式 查询一:给出考试等级,找出该等级的考生,按照成绩降序,准考证升序排序 查询二:给出考场号,统计该考场的考生数量和总得分 查询三:给出考试日期,查询改日期下所有考场的考试人数 ...
分类:其他好文   时间:2019-09-04 18:54:06    阅读次数:95
Vue-CLI项目路由案例汇总
0901自我总结 Vue CLI项目路由案例汇总 router.js components/Nav.vue views/Course.vue components/CourseCard.vue vue <! 逻辑跳转 {{ card.title }} <! 链接跳转 <! 第一种 <! <route ...
分类:其他好文   时间:2019-09-01 19:05:33    阅读次数:81
js根据身份证号码解析获取出生年月日、性别、年龄
function getAnalysisIdCard(card, num) { if (num == 1) { //获取出生日期 let birth = card.substring(6, 10) + "-" + card.substring(10, 12) + "-" + card.substri ...
分类:Web程序   时间:2019-09-01 01:41:06    阅读次数:344
Vue - 跳转和传参
[TOC] 页面跳转 第一种:有名分组传参,$route.params接收参数 第二种:通过params携带数据包传参 第三种:通过query传参 常用的是有名分组第一种方式,如果参数不想让人看到就通过第二种params方式,想确切显示参数名与参数就用第三种方式 逻辑转跳 是点击之后立即跳转,而我们 ...
分类:其他好文   时间:2019-08-31 17:44:00    阅读次数:106
1752条   上一页 1 ... 30 31 32 33 34 ... 176 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!