自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小龙的博客

多思考多睡觉

  • 博客(9)
  • 收藏
  • 关注

转载 (转) PAT L1-006 连续因子

L1-006 连续因子(20 分)一个正整数N的因子中可能存在若干连续的数字。例如630可以分解为3*5*6*7,其中5、6、7就是3个连续的数字。给定任一正整数N,要求编写程序求出最长连续因子的个数,并输出最小的连续因子序列。输入格式:输入在一行中给出一个正整数N(1<N<2^31^)。输出格式:首先在第1行输出最长连续因子的个数;然后在第2行中按“因子1*因子2*……*因子k”的格...

2018-05-18 00:41:32 471 2

原创 c++ string常用用法

substr函数string a = "01234567";//从下标2开始,长度为4,s不变string b = a.substr(2,4);//从下标2开始到结束 string c = a.substr(2);insert函数string a = "01234567";//s会改变 a.insert(2,"000");erase函数string a = ...

2018-05-11 17:47:58 281

原创 Codeforces C. Less or Equal

C. Less or Equaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence of integers of length nn and integer number kk. You shoul...

2018-05-08 18:33:00 645

原创 ACM—JAVA最快的输入方式

Codeforces著名世界级选手Petr大爷写的Java输入内部类:static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new...

2018-05-08 00:03:40 4741 9

原创 Codeforces C. Destroying Array

C. Destroying Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array consisting of n non-negative integers a1, a2, ..., an.You...

2018-05-05 17:59:31 390 1

原创 Codeforces B. New Year Permutation

B. New Year Permutationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputUser ainta has a permutation p1, p2, ..., pn. As the New Year is coming, he...

2018-05-05 12:20:46 214

原创 CF C. A and B and Team Training

C. A and B and Team Trainingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA and B are preparing themselves for programming contests.An important ...

2018-05-04 10:32:03 226

转载 CF A. Domino piling

You are given a rectangular board of M × N squares. Also you are given an unlimited number of standard domino pieces of 2 × 1squares. You are allowed to rotate the pieces. You are asked to place as ma...

2018-05-03 00:30:57 266

原创 极光推送—服务端

极光推送简介:JPush是一种专业而免费的第三方云推送推送平台,又名极光推送。集成步骤:登陆极光官网—>注册用户—>开发者服务—>立即体验—>创建自己的应用。创建应用后你会看到两个关键字(了解一下):Appkey:SDK与服务器端通过Appkey互相识别Master Secret:用于服务器端 API 调用时与 AppKey 配合使用达到鉴权的目的接下来我是通过maven方...

2018-05-01 17:24:41 925

空空如也

空空如也

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

TA关注的人

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