自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(45)
  • 收藏
  • 关注

转载 Mybatis配置

收藏一下mybatis配置,这位博主写的很好 mybatis配置

2017-09-23 01:02:26 214

原创 配置Vue开发环境

配置VUE开发环境1.在node.js官网下载node.js安装包,然后安装,如果不是用安装包安装的可能需要手动配置nodejs环境变量. 2.依次设置npm安装和缓存路径: //这里路径我指定的是nodejs安装包所在的文件夹下npm config set prefix "D:\nodejs\node_global"npm config set cache "D:\nodejs\node_c

2017-09-15 18:06:02 518

原创 内部类

内部类1.//内部类一/*内部类:当B类想要调用A类私有的成员函数时,可以将B类移入A类中作为内部类访问方式-内部类访问外部类:可直接访问外部类的所有成员和函数,包含私有的 -外部类访问内部类:外部类必须创建内部类的对象*///内部类的访问方式:内部类在成员位置,可以被修饰符修饰public class Outer{ public static void main(S

2017-05-09 21:31:37 224

原创 多态

多态–01/*多态*/public class TestPolymorphism{ public static void main(String[] args){ TestPolymorphism p=new TestPolymorphism(); Animal a=new Dog();//多态的体现:父类的引用或者接口指向了自己的子类 An

2017-05-05 21:26:55 205

原创 Problem--61A--Codeforces--A. Ultra-Fast Mathematician

A. Ultra-Fast Mathematician time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Shapur was an extremely gifted student. He wa

2017-04-12 19:52:53 649

原创 Problem--379A--Codeforces--A. New Year Candles

A. New Year Candles time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasily the Programmer loves romance, so this year he d

2017-04-12 19:33:38 707

原创 Problem--460A--Codeforces--A. Vasya and Socks

A. Vasya and Socks time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasya has n pairs of socks. In the morning of each day

2017-04-08 07:21:14 360

原创 Problem--617A--Codeforces-- A. Elephant

A. Elephant time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output An elephant decided to visit his friend. It turned out that th

2017-04-07 23:57:55 1148

原创 Problem--318A--Codeforces--A. Even Odds

A. Even Odds time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Being a nonconformist, Volodya is displeased with the current

2017-04-07 23:43:09 924

原创 Problem--148A--Codeforces--A. Insomnia cure

A. Insomnia cure time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output «One dragon. Two dragon. Three dragon», — the princess w

2017-04-06 23:12:42 779

原创 Problem--133A--Codeforces--A. HQ9+

A. HQ9+ time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output HQ9+ is a joke programming language which has only four one-chara

2017-04-06 20:55:32 570

原创 Problem--131A--Codeforces--A. cAPS lOCK

A. cAPS lOCK time limit per test0.5 second memory limit per test256 megabytes inputstandard input outputstandard output wHAT DO WE NEED cAPS LOCK FOR? Caps lock is a comp

2017-04-06 20:36:50 349

原创 Problem--339A--Codeforces-- A. Helpful Maths

A. Helpful Maths time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Xenia the beginner mathematician is a third year student

2017-04-06 16:11:11 1622

原创 Problem--112A--Codeforces--A. Petya and Strings

A. Petya and Strings time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Little Petya loves presents. His mum bought him two

2017-04-06 15:52:31 775

原创 Problem--69A--Codeforces-- Young Physicist

A. Young Physicist time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output A guy named Vasya attends the final grade of a high sc

2017-03-31 00:10:18 1911

原创 Problem--486A--Codeforces-- Calculating Function

A. Calculating Function time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output For a positive integer n let’s define a function f

2017-03-30 23:03:36 499

原创 Problem--41A--Codeforces--Translation

A. Translation time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output The translation from the Berland language into the Birland

2017-03-30 16:54:12 805

原创 Problem-337A-Codeforces--Puzzles

A. Puzzles time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The end of the school year is near and Ms. Manana, the teacher,

2017-03-30 16:35:59 305

原创 Problem-263A-Codeforces- Beautiful Matrix

A. Beautiful Matrix time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You’ve got a 5 × 5 matrix, consisting of 24 zeroes an

2017-03-22 20:47:15 1306

原创 Problem-236A-Codeforces-Boy or Girl

A. Boy or Girl time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Those days, many boys use beautiful girls’ photos as avatar

2017-03-22 20:27:43 1722

原创 Problem-467A-Codeforces-George and Accommodation

A. George and Accommodation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output George has recently entered the BSUCP (Berland

2017-03-22 19:53:53 381

原创 Problem--266B--Codeforces--Queue at the School

B. Queue at the School time limit per test:2 seconds memory limit per test:256 megabytes inputstandard input outputstandard output During the break the schoolchildren, boys and gi

2017-03-13 17:55:25 451

转载 String函数详解

String 函数详解#include <iostream>#include <string>#include <sstream>using namespace std;int main(){ //1.string类重载运算符operator>>用于输入,同样重载运算符operator<<用于输出操作 string str1; cin >> str1;//当用cin

2017-03-12 09:51:24 401

原创 Problem--82A--Codeforces--Double Cola

Double Cola time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sheldon, Leonard, Penny, Rajesh and Howard are in the queue fo

2017-03-11 13:34:46 650

原创 Problem--136A--Codeforces--Presents

Present time limit per test:2 seconds memory limit per test:256 megabytes inputstandard input outputstandard output Little Petya very much likes gifts. Recently he has receive

2017-03-10 16:34:59 376

原创 Problem--110A--Codeforces--Nearly Lucky Number

Nearly Lucky Number time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Petya loves lucky numbers. We all know that lucky num

2017-03-10 13:07:18 480

原创 Problem--546A--Codeforces--Soldier and Bananas

A.Soldier and Bananas time limit per test:1 second memory limit per test:256 megabytes inputstandard input A soldier wants to buy w bananas in the shop. He has to pay k dollars for t

2017-03-10 12:06:22 532

原创 交换两个变量值

交换变量值的方法一:借助第三变量直接利用第三变量t作为容器,帮助a,b交换值 #include<stdio.h>int main(){ int a=3,b=7; int t=a; a=b; b=t; printf("%d %d",a,b); return 0;}二:不借助第三变量1.算术法:容易溢出#include<stdio.h>int m

2017-03-07 14:13:19 185

原创 Problem--281A--Codeforces--Word Capitalization

Word Capitalization time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Capitalization is writing a word with its first lette

2017-03-06 13:55:17 1541

原创 Problem--266A--Codeforces--Stones on the Table

Stones on the Tablestime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n stones on the table in a row, each of them can be red, gre

2017-03-06 12:14:12 554

原创 Problem--116A--Codeforces--Tram

Tramtime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard outputLinear Kingdom has exactly one tram line. It has n stops, numbered from 1 to n in the ord

2017-03-06 11:55:29 317

原创 Problem--158B--Codeforces--Taxi

Taxi time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard outputAfter the lessons n groups of schoolchildren went outside and decided to visit Polycarp

2017-03-05 20:59:12 446

原创 Problem--96A--Codeforces--Football

Footballtime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard outputPetya loves football very much. One day, as he was watching a football match, he was

2017-03-05 17:10:58 454

原创 Problem--282A--Codeforces--BIt++

BIt++time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outputThe classic programming language of Bitland is Bit++. This language is so peculiar and co

2017-03-05 16:24:46 677

原创 Problem--231A--Codeforces--Team

Team time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output One day three best friends Petya, Vasya and Tonya decided to form a team and take par

2017-02-28 22:56:06 525

原创 Problem--50A--Codeforces--Domino piling

**Domino piling**

2017-02-28 22:18:07 615

原创 Problem--118A--Codeforces--String Task

A. String Tasktime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard outputPetya started to attend programming lessons. On the first lesson his task was

2017-02-14 14:18:22 455

原创 Problem--158A--Codeforces--Next Round

A. Next Round

2017-01-20 16:34:42 681

原创 Problem--71A--Codeforces--Way Too Long Words

A. Way Too Long Words

2017-01-17 18:44:27 733

原创 Problem--4A--Codeforces--Watermelon

A. Watermelon

2017-01-17 16:42:55 237

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除