自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 牛客网 DP6 连续子数组最大和

牛客网刷题记录

2022-06-09 21:13:00 84 2

原创 Ubuntu下安装Java8,Perhaps you are running on a JRE rather than a JDK

查看本机是否已安装java环境分别执行java和javac命令,出现The program ‘java’ can be found in the following packages:说明java环境没装好升级本机apt-get使用apt-get安装软件时,如果经常遇到Unable to locate package XXX问题的话。说明你的apt-get该更新了。直接使用sudo apt-get update更新之后应该就可以下载软件了。sudo apt-get updatejava8

2020-12-30 20:29:21 182

原创 Error:(14, 20) java: 程序包sun.net.util不存在

IDEA启动项目报错Error:(14, 20) java: 程序包sun.net.util不存在jdk版本导致的问题解决方法:根据1的版本号,将2部分的勾取消掉,在3部分自选对应的版本号,改完效果如下:

2020-09-07 10:59:30 6102

原创 HDU - 2041超级楼梯

有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法?Input输入数据首先包含一个整数N,表示测试实例的个数,然后是N行数据,每行包含一个整数M(1<=M<=40),表示楼梯的级数。Output对于每个测试实例,请输出不同走法的数量Sample Input223Sample Output12思路:最后一步跨上一级+最后一步...

2019-10-10 18:47:31 113

原创 使用SimpleAdapter创建ListView

SimpleAdapter参数简介使用SimpleAdapter的难点之一在于创建SimpleAdapter对象,它需要5个参数。1.Context context:上下文,这个是每个组件都需要的,它指明了SimpleAdapter关联的View的运行环境,也就是我们当前的Activity。2.List<? extends Map< String,?>> data: ...

2019-06-01 18:17:06 533

原创 快速排序C实现

存档以便查阅#include <stdio.h>#include<math.h>#include<string.h>int Partition(int a[], int p, int r){ int i=p+1, j=r; int x=a[p]; int t; while(1){ while(a[i]<x&&i<...

2019-05-21 20:14:37 270

原创 Bi-shoe and Phi-shoe LightOJ - 1370

lucky number表示比x小的且与x互质的数的个数#include&lt;cstring&gt;#include&lt;algorithm&gt;#include&lt;iostream&gt;#include&lt;cstdio&gt;#include&lt;cmath&gt;#include&lt;cctype&gt;using namespace std;const i...

2018-05-17 22:14:14 157

原创 Proper Nutrition

B. Proper Nutrition time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vasya has n burles. One bottle of Ber-Cola costs a burles and one Bars

2017-12-16 20:45:10 363

原创 Harmonic Number (II) LightOJ - 1245

I was trying to solve problem ‘1234 - Harmonic Number’, I wrote the following codelong long H( int n ) { long long res = 0; for( int i = 1; i <= n; i++ ) res = res + n / i; retu

2017-12-14 23:49:28 152

原创 Books CodeForces - 279B

Books CodeForces - 279B When Valera has got some free time, he goes to the library to read some books. Today he’s got t free minutes to read. That’s why Valera took n books in the library and for eac

2017-12-14 23:46:12 877

原创 Point on Spiral CodeForces - 279A

Valera the horse lives on a plane. The Cartesian coordinate system is defined on this plane. Also an infinite spiral is painted on the plane. The spiral consists of segments: [(0, 0), (1, 0)], [(1, 0),

2017-10-28 14:44:52 439

空空如也

空空如也

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

TA关注的人

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