- 博客(17)
- 收藏
- 关注
原创 前端-JQuery笔记
这部分内容之前学过了一便,但是到后面做前端项目的时候还是看别人的解释可以看懂,自己还是写不出来,所以再来过一遍。希望后面可以有所成长吧。1.获取元素(1)取值<script>$(function(){ $("#b1").click(function(){ alert($("#input1").val()); });}); ...
2020-04-18 19:27:22
229
原创 java-2 数字与字符串-2
1.字符串字符串即字符的组合,在Java中,字符串是一个类,所以我们见到的字符串都是对象创建字符串一般可以1. 每当有一个字面值出现的时候,虚拟机就会创建一个字符串2. 调用String的构造方法创建一个字符串对象3. 通过+加号进行字符串拼接也会创建新的字符串对象 String garen ="sad"; //字面值,虚拟机碰到字面值就会创建一个字符串对象 ...
2019-12-03 17:33:35
203
原创 java-2 数字与字符串-1
1.装箱与拆箱数字封装类有Byte,Short,Integer,Long,Float,Double这些类都是抽象类Number的子类把一个基本类型的变量,转换为Integer对象(封装类) int i = 5;Integer it = new Integer(i);封装类型转换成基本类型int i2 = it.intValue();自动装箱与拆箱自动...
2019-12-01 22:00:30
242
原创 java-1 接口与继承-2
1.内部类非静态内部类非静态内部类可以直接在一个类里面定义比如:战斗成绩只有在一个对象存在的时候才有意义所以实例化非静态内部类的时候,必须建立在一个存在的英雄的基础上语法:new 外部类().new 内部类()作为一个类的非静态内部类,是可以直接访问外部类的private实例属性变量的在一个类里面声明一个静态内部类比如篮球比赛,当终场结束己方比分比对面高的时候,己方所有球...
2019-12-01 19:47:24
138
原创 java-1 接口与继承-1
1.创建一个接口 File->New->Interface创建一个接口ADpublic interface AD { public void physicAttack();}实现某个接口,就相当于承诺了某种约定所以实现一个接口就必须提供接口中的方法接口语法实现关键字implemwntspublic class ADHero implements AD{...
2019-12-01 19:02:59
125
原创 Ayoub and Lost Array CodeForces - 1105C
Ayoub had an array a of integers of size nand this array had two interesting properties:All the integers in the array were between land r(inclusive). The sum of all the elements was divisible ...
2019-05-15 20:59:09
128
原创 Fox and Cross
Fox Ciel has a board with n rows and n columns. So, the board consists of n × n cells. Each cell contains either a symbol '.', or a symbol '#'.A cross on the board is a connected set of exactly five...
2019-01-29 21:21:31
192
原创 Tanning Salon
Tan Your Hide, Inc., owns several coin-operated tanning salons. Research has shown that if a customer arrives and there are no beds available, the customer will turn around and leave, thus costing the...
2019-01-27 20:30:36
379
原创 A Simple Task
Given a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.ExampleFor n = 24, o = 3 and p = 3.TaskWrite a program which for each data set:reads a positiv...
2019-01-27 20:04:46
202
原创 The Drunk Jailer
A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.One night, the jailer gets bored and decides to play a game. ...
2019-01-26 21:32:07
184
原创 Magic Square
In recreational mathematics, a magic square of n-degree is an arrangement of n 2 numbers, distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to th...
2019-01-26 21:28:49
670
原创 Parencodings
Let S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways:By an integer sequence P = p1 p2 ... pn where pi is the number of left parentheses before the ith...
2019-01-26 21:11:32
107
原创 New Year Book Reading
柯南准备去读n本书,标号为1~n,每本书的重量为wi.柯南家太小啦,没办法放下一个书橱,于是就只好将这些书堆成一个垂直的堆,他现在想要读第x本书,他要这么做。1.举起在x上面的所有的书2.然后将x书从堆里面拿出来3.将x上面的书不改变顺序地放回去4.将x放到最上面他决定在m天内读书,在第j天,他会读第bj (1 ≤ bj ≤ n)本书. 他取出书的方式就如同上面说的那样...
2018-08-22 15:19:09
206
1
原创 King of Karaoke
It's Karaoke time! DreamGrid is performing the song Powder Snow in the game King of Karaoke. The song performed by DreamGrid can be considered as an integer sequence , and the standard version of the ...
2018-05-14 06:11:45
881
转载 异或
#include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <algorithm>#include <queue>#include <vector>#include <cmath>#include <map>#include <set>#include <ctim
2018-05-13 07:39:24
116
原创 Farm Irrigation
Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square has a different type o...
2018-05-09 07:25:28
213
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人