自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Petya and Strings

Codeforces 112A. Petya and Stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output  Little Petya loves presents. His mum bought him two strin...

2020-01-26 11:52:14 195

原创 Bit++

Codeforces 282A. Bit++time limit per test: 1 secondmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  The classic programming language of Bitland is Bit++. This lan...

2020-01-26 11:42:56 165

原创 Domino piling

Codeforces 50A. Domino pilingtime limit per test: 2 secondsmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  You are given a rectangular board of M × N squares. Al...

2020-01-25 22:18:41 325

原创 Team

Codeforces 231A. Team time limit per test: 2 secondsmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  One day three best friends Petya, Vasya and Tonya decided to ...

2020-01-20 13:39:31 79

原创 String Task

Codeforces 118A. String Tasktime limit per test: 2 secondsmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  Petya started to attend programming lessons. On the fir...

2020-01-20 13:35:03 124

原创 Next Round

Codeforces 158A. Next Roundtime limit per test: 3 secondsmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  “Contestant who earns a score equal to or greater than t...

2020-01-19 13:20:37 138

原创 Way Too Long Words

Codeforces 71A. Way Too Long Words time limit per test: 1 secondmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  Sometimes some words like “localization” or “int...

2020-01-19 13:13:43 435 1

原创 寻找两个有序数组的中位数

LeetCode 4. 寻找两个有序数组的中位数  给定两个大小为 m 和 n 的有序数组 nums1 和 nums2。  请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为 O(log(m + n))。  你可以假设 nums1 和 nums2 不会同时为空。  示例 1:nums1 = [1, 3]nums2 = [2]则中位数是 2.0  示例 2:nums1 ...

2020-01-19 12:18:00 86

原创 无重复字符的最长子串

LeetCode 3. 无重复字符的最长子串  给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。  示例 1:输入: "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。  示例 2:输入: "bbbbb"输出: 1解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。  示例 3:输入: "pwwke...

2020-01-18 11:36:07 68

原创 Theatre Square

Codeforces 1A. Theatre Square time limit per test: 1 secondmemory limit per test: 256 megabytesinput: standard inputoutput: standard output  Theatre Square in the capital city of Berland has a r...

2020-01-18 11:09:38 167

原创 两数相加

LeetCode 2.两数之和  给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。  如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。  您可以假设除了数字 0 之外,这两个数都不会以 0 开头。  示例:输入:(2 -> 4 -> 3) + (5 -> 6 -&gt...

2020-01-17 18:29:13 66

原创 watermelon

A. Watermelon time limit per test:1 second memory limit per test:64 megabytesinputstandard: inputoutputstandard: output  One hot summer day Pete and his friend Billy decided to buy a watermelon...

2020-01-17 18:10:33 262

原创 两数之和

LeetCode 1.两数之和  给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那两个整数,并返回他们的数组下标。  你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。  示例:  给定 nums = [2, 7, 11, 15], target = 9  因为 nums[0] + nums[1] = 2 + 7 = 9...

2020-01-16 17:44:08 87

空空如也

空空如也

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

TA关注的人

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