自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (1)
  • 收藏
  • 关注

原创 CSU 1105

http://acm.csu.edu.cn/csuoj/problemset/problem?pid=11051105: 打怪升级Submit Page    Summary    Time Limit: 1 Sec     Memory Limit: 64 Mb     Submitted: 357     Solved: 104    

2017-08-30 16:07:56 311

原创 计蒜客复赛——百度地图导航

https://nanti.jisuanke.com/t/15969百度地图上有 nn 个城市,城市编号依次为 11 到 nn。地图中有若干个城市群,编号依次为 11 到 mm。每个城市群包含一个或多个城市;每个城市可能属于多个城市群,也可能不属于任何城市群。地图中有两类道路。第一类道路是 城市之间的快速路,两个城市 u,vu,v 之间增加一条距离为 cc的边;第二类道路是 城

2017-07-08 20:15:11 259

原创 2017计蒜之道程序设计大赛初赛第五场

https://www.jisuanke.com/contest/730第一题:只要从大到小排序再取即可。#includeusing namespace std;int a[105];int cmp(int a,int b){ return a>b;}int main(){ int n,m; scanf("%d%d",&n,&m); for(i

2017-06-04 10:34:30 382

原创 2017计蒜之道程序设计大赛初赛第五场

https://www.jisuanke.com/contest/730第一题,从大到小排序,依次取就可以#includeusing namespace std;int a[105];int cmp(int a,int b){ return a>b;}int main(){ int n,m; scanf("%d%d",&n,&m); for

2017-06-04 10:28:11 357

原创 leetcode_54. Spiral Matrix

//https://leetcode.com/problems/spiral-matrix/#/descriptionGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the follo

2017-05-17 23:03:46 230

原创 4.18今日头条编程题

1、map解决2、set解决3、大模拟,写了近300行,只要不手残一般能写出来吧~4、不会做,先写了个搜索,然而超内存了,求教~~1、 #includeusing namespace std;typedef long long LL;map ma;int main(){    int n,m;    scanf("%d",&n);  

2017-04-18 22:09:44 369

原创 携程技术类2018届春招笔试编程

携程技术类2018届春招 安卓开发工程师 在线考试编程题|20分1/1有序字符串搜索时间限制:C/C++语言 1000MS;其他语言 3000MS内存限制:C/C++语言 204800KB;其他语言 729088KB题目描述:给定一些字符串,请写一个算法,从中搜索出包含您输入的字符序列的那些字符串,按匹配度的高低排序输出。没有任何一个字符

2017-04-11 20:25:23 2478

原创 阿里实习生测试二面(2017.4.11)

4.1接到电话,预约我10号下午视频面试~~ 10号上午接到电话,说临时有事情,改到11号上午10点~~ 11号,真是很紧张啊,跑到实验室去,幸好人不多,可以面。 对方有两个人,一男一女。 首先是自我介绍。 然后针对我的项目(一个驾考题库app)问了一点问题,功能是怎么实现的,数据是怎么爬的啊,开发中有没有遇到内存泄漏的情况,是怎么定位调试的等等。

2017-04-11 11:53:57 641

原创 leetcode_31. Next Permutation

https://leetcode.com/problems/next-permutation/#/descriptionImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arra

2017-04-10 20:10:12 214

原创 leetcode_209. Minimum Size Subarray Sum

https://leetcode.com/problems/minimum-size-subarray-sum/#/descriptionGiven an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the

2017-04-10 18:37:30 284

原创 hihocode——#1498 : Diligent Robots

http://hihocoder.com/problemset/problem/1498#1498 : Diligent Robots时间限制:10000ms单点时限:1000ms内存限制:256MB描述There are N jobs to be finished. It takes a robot 1 hour to

2017-04-08 22:38:41 1091 2

原创 hihocode——#1497 : Queen Attack

http://hihocoder.com/problemset/problem/1497时间限制:10000ms单点时限:1000ms内存限制:256MB描述There are N queens in an infinite chessboard. We say two queens may attack each other if they are

2017-04-08 22:35:04 884

原创 CSU——1009

http://acm.csu.edu.cn/csuoj/problemset/problem?pid=1009DescriptionJames得到了一堆有趣的硬币,于是决定用这些硬币跟朋友们玩个小游戏。在一个N行M列的表格上,每一个第i行第j列的格子上都放有一枚James的硬币,抛该硬币正面朝上的概率为Pij,所有抛硬币事件两两之间是相互独立的。现在,玩家在M列硬币中,从每

2017-04-08 22:32:30 494

原创 腾讯校招笔试——小Q今天在上厕所时想到了这个问题:有n个数,两两组成二元组,差最小的有多少对呢?差最大呢?

题目:小Q今天在上厕所时想到了这个问题:有n个数,两两组成二元组,差最小的有多少对呢?差最大呢?输入描述:输入包含多组测试数据。对于每组测试数据:N - 本组测试数据有n个数a1,a2…an - 需要计算的数据保证:1输出描述:对于每组数据,输出两个数,第一个数表示差最小的对数,第二个数表示

2017-04-01 21:55:21 2858

原创 腾讯校招编程题——算法基础-字符移位

[编程题] 算法基础-字符移位小Q最近遇到了一个难题:把一个字符串的大写字母放到字符串的后面,各个字符的相对位置不变,且不能申请额外的空间。你能帮帮小Q吗?输入描述:输入数据有多组,每组包含一个字符串s,且保证:1<=s.length<=1000. 输出描述:对于每组数据,输出移位后的字符串。输入例子:AkleBiCei

2017-04-01 20:58:11 470

原创 阿里实习生测试一面(2017.3.29)

终于迎来了我的第一次面试,下午电话打来居然这么巧的没带手机,晚上终于重新接到了面试电话。 是个妹子,哈哈~兴奋 先做自我介绍~ 我来自某某大学…… 然后着重问了我的APP项目,问我实现了哪些功能,数据库的构表是怎么样的,顺便问Android的存储方式有哪些。 再就是各科的杂问题了~~ 数据库:如果表冗余,查询慢应该怎么优化呢? 网络:tcp和

2017-03-31 19:55:41 425

原创 Android Fragment间的通信

其实进行通信就是一个Fragment把数据传递给Activity,然后Activity再传给另外一个Fragment所以实现了通信。其中Activity实现了第一个Fragment中定义的一个接口。展示~所有代码如下:主类:MainActivitypackage com.example.fragmenttest;import android.ap

2017-03-30 11:03:00 500 1

原创 编程题——推箱子

https://www.nowcoder.com/question/next?pid=4111169&qid=76262&tid=7218208大家一定玩过“推箱子”这个经典的游戏。具体规则就是在一个N*M的地图上,有1个玩家、1个箱子、1个目的地以及若干障碍,其余是空地。玩家可以往上下左右4个方向移动,但是不能移动出地图或者移动到障碍里去。如果往这个方向移动推到了箱子,箱子也

2017-03-18 12:47:50 4577

原创 ccf__201604-4游戏

问题描述试题编号:201604-4试题名称:游戏时间限制:1.0s内存限制:256.0MB问题描述:问题描述  小明在玩一个电脑游戏,游戏在一个n×m的方格图上进行,小明控制的角色开始的时候站在第一行第一列,目标是前往第n行第m列。  方格图上有一些方格是始终安全

2017-03-15 21:37:26 298

原创 leetcode_75. Sort Colors

https://leetcode.com/problems/sort-colors/?tab=DescriptionGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors

2017-03-08 23:25:24 215

原创 leetcode_17.Letter Combinations of a Phone Number

https://leetcode.com/problems/letter-combinations-of-a-phone-number/?tab=DescriptionGiven a digit string, return all possible letter combinations that the number could represent.A mapping of

2017-03-08 23:12:21 186

原创 leecode_11. Container With Most Water

https://leetcode.com/problems/container-with-most-water/Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn suc

2017-03-08 22:18:11 175

原创 leetcode_9. Palindrome Number

题目:https://leetcode.com/problems/palindrome-number/?tab=Description题意:问一个数字串是不是回文串只要分解它,然后从两边往前面比较即可。class Solution {public:    bool isPalindrome(int x) {        if(x

2017-03-05 20:43:45 194

原创 leetcode_7. Reverse Integer

题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Note:The input is assumed to be a 32-bit signed integer. Your fun

2017-03-05 20:33:27 179

原创 hdu 5950

http://acm.hdu.edu.cn/showproblem.php?pid=5950Recursive sequenceTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 329    Accepted Submis

2016-11-04 16:29:04 314

原创 codeforces 196b

http://codeforces.com/contest/196/problem/BB. Infinite Mazetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

2016-10-31 16:34:54 352

原创 codeforces558e,好题

http://codeforces.com/problemset/problem/558/EE. A Simple Tasktime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard

2016-10-30 16:48:40 1156

fragment间的通信

fragment间的通信

2017-03-30

空空如也

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

TA关注的人

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