Discription This task is very simple. Given a string S of length n and q queries each query is on the format i j k which means sort the substring cons ...
分类:
其他好文 时间:
2018-02-02 23:11:13
阅读次数:
221
【链接】 "我是链接,点我呀:)" 【题意】 在这里输入题意 【题解】 优先把不是10的倍数的变成10的倍数。 (优先%10比较大的数字增加 如果k还有剩余。 剩下的数字都是10的倍数了。 那么先加哪一个都可以了。 【代码】 cpp include using namespace std; cons ...
分类:
其他好文 时间:
2018-02-01 13:23:09
阅读次数:
131
(define (make-rat n d) (let ((g (gcd n d))) (cons (/ n g) (/ d g)))) (define (numer x) (car x)) (define (denom x) (cdr x)) (define (print-rat x) (newl... ...
分类:
其他好文 时间:
2018-02-01 00:08:00
阅读次数:
162
一、变量提升 在ES6之前,JavaScript没有块级作用域(一对花括号{}即为一个块级作用域),只有全局作用域和函数作用域。变量提升即将变量声明提升到它所在作用域的最开始的部分。上个简单的例子如: console.log(a); // undefined var a= 'hello'; cons ...
分类:
Web程序 时间:
2018-01-26 17:08:29
阅读次数:
169
获取表的主键列名 SQL select * from user_cons_columns where constraint_name = (select constraint_name from user_constraints where table_name = 'BST_FAVORITE' a ...
分类:
数据库 时间:
2018-01-25 18:18:21
阅读次数:
194
1.+ +: :+ :: ++ :::的区别 :: 该方法被称为cons,意为构造,向队列的头部追加数据,创造新的列表。用法为 x::list,其中x为加入到头部的元素,无论x是列表与否,它都只将成为新生成列表的第一个元素,也就是说新生成的列表长度为list的长度+1(btw, x::list等价于 ...
分类:
其他好文 时间:
2018-01-14 19:38:05
阅读次数:
178
198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only cons ...
分类:
编程语言 时间:
2018-01-08 22:30:02
阅读次数:
200
id:唯一一个,可直接获取对应元素 name:可以多个name相同,在form中的表单,提交的时候会以name中的值=‘xxx’的形式,相当于键值的形式把数据提交到action中的页面。 只是有一个地方值得注意,下面这一个输入用户名的input标签中,如果令id='name',在后面的代码中cons ...
分类:
其他好文 时间:
2018-01-05 01:17:45
阅读次数:
186
A. Rounding Vasya has a non-negative integer n. He wants to round it to nearest integer, which ends up with 0. If n already ends up with 0, Vasya cons ...
分类:
其他好文 时间:
2017-12-30 21:26:53
阅读次数:
197
const是用来声明一个常量的,当你不想让一个值被改变时就用const,const int max && int const max 是没有区别的,都可以。不涉及到指针const很好理解。 涉及到指针的情况:conat int b=100; 顶层constint const c=11; 顶层cons ...
分类:
编程语言 时间:
2017-12-28 14:36:36
阅读次数:
167