- 博客(47)
- 资源 (3)
- 收藏
- 关注
原创 A. String Similarity
传送门A. String Similaritytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA binary string is a string where each character is either 0 or 1. Two binary strings aand b of equal length are similar
2020-08-26 00:07:43 262
原创 B. Ternary Sequence
传送门B. Ternary Sequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two sequences a1,a2,…,an and b1,b2,…,bn. Each element of both sequences is either 0, 1 or 2. The number of e
2020-08-22 00:35:50 1609
原创 A. Distance and Axis
传送门A. Distance and Axistime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe have a point Awith coordinate x=n on OX-axis. We’d like to find an integer point B (also on OX-axis), such that the abs
2020-08-22 00:29:44 469
原创 A. Fafa and his Company
传送门935A. Fafa and his Companytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFafa owns a company that works on huge projects. There are n employees in Fafa’s company. Whenever the company has a
2020-08-18 17:19:15 182
原创 A. Vanya and Cubes
传送门492A. Vanya and Cubestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya got n cubes. He decided to build a pyramid from them. Vanya wants to build the pyramid as follows: the top level of
2020-08-18 17:02:33 235
原创 A. Add Odd or Subtract Even
传送门A. Add Odd or Subtract Eventime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two positive integers a and b In one move, you can change a in the following way:Choose any positiv
2020-08-18 15:24:29 315
原创 A. Frog Jumping
传送门A. Frog JumpingA frog is currently at the point 00 on a coordinate axis OxOx. It jumps by the following algorithm: the first jump is aa units to the right, the second jump is bb units to the left, the third jump is aa units to the right, the fourth ju
2020-08-18 11:28:22 367
原创 A. Collecting Coins
传送门A. Collecting Coinstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has three sisters: Alice, Barbara, and Cerene. They’re collecting coins. Currently, Alice has acoins, Barbara ha
2020-08-18 11:05:13 145
原创 A. Brain‘s Photos
传送门A. Brain’s Photostime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSmall, but very brave, mouse Brain was not accepted to summer school of young villains. He was upset and decided to postpone
2020-08-18 10:17:50 237
原创 B. Omkar and Infinity Clock
传送门B. Omkar and Infinity Clocktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBeing stuck at home, Ray became extremely bored. To pass time, he asks Lord Omkar to use his time bending power: I
2020-08-17 20:36:45 291
原创 A. Omkar and Password
A. Omkar and Passwordtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLord Omkar has permitted you to enter the Holy Church of Omkar! To test your worthiness, Omkar gives you a password which yo
2020-08-17 19:54:02 720
原创 数塔(动态规划)
添加链接描述数塔Problem Description在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述的:有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多少?已经告诉你了,这是个DP的题目,你能AC吗?Input输入数据首先包括一个整数C,表示测试实例的个数,每个测试实例的第一行是一个整数N(1 <= N <= 100),表示数塔的高度,接下来用N行数字表示数塔,其中第i行有个i个整数,且所有的整数均在区间[0,99]内
2020-08-15 17:02:57 1584
原创 B - Longest Ordered Subsequence(动态规划)
传送门B - Longest Ordered SubsequenceA numeric sequence of ai is ordered if a1 < a2 < … < aN. Let the subsequence of the given numeric sequence (a1, a2, …, aN) be any sequence (ai1, ai2, …, aiK), where 1 <= i1 < i2 < … < iK <= N. For
2020-08-15 16:59:24 304 2
原创 数塔 hdu2084(动态规划)
添加链接描述数塔Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 79796 Accepted Submission(s): 45884Problem Description在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述的:有如下所示的数塔,要求从顶层走到底层,若每一步只能走到相邻的结点,则经过的结点的数字之和最大是多
2020-08-15 16:01:17 116
原创 C. Good Subarrays
传送门C. Good Subarraystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a1,a2,…,anconsisting of integers from 0 to 9. A subarray al,al+1,al+2,…,ar−1,ar is good if the sum o
2020-08-15 10:46:35 469
原创 B. Substring Removal Game
B. Substring Removal Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob play a game. They have a binary string s(a string such that each character in it is either 0 or 1). Alice
2020-08-15 10:37:58 903
原创 A. Bad Triangle
传送门A. Bad Triangletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a1,a2,…,an, which is sorted in non-decreasing order (ai≤ai+1)Find three indices i, j, k such that 1≤i<
2020-08-15 00:16:18 383
原创 A. Maximum GCD(最大公约数)
传送门A. Maximum GCDtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet’s consider all integers in the range from 1 to n(inclusive).Among all pairs of distinct integers in this range, find the max
2020-08-14 17:08:20 532
原创 A. Gennady and a Card Game(字符匹配)
传送门A. Gennady and a Card Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGennady owns a small hotel in the countryside where he lives a peaceful life. He loves to take long walks, watch sun
2020-08-14 16:37:12 883
原创 A. Fancy Fence(思维)
传送门A. Fancy Fencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputEmuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot.He want
2020-08-14 11:22:10 516
原创 A. Dawid and Bags of Candies
传送门A. Dawid and Bags of Candiestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDawid has four bags of candies. The i-th of them contains ai candies. Also, Dawid has two friends. He wants to giv
2020-08-11 20:21:15 144
原创 C. Substring Game in the Lesson
传送门C. Substring Game in the Lessontime limit per test2 secondsmemory limit per test256 mebibytesinputstandard inputoutputstandard outputMike and Ann are sitting in the classroom. The lesson is boring, so they decided to play an interesting game.
2020-08-11 11:24:49 208
原创 A. Cards
传送门A. Cardstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen Serezha was three years old, he was given a set of cards with letters for his birthday. They were arranged into words in the way
2020-08-11 10:46:47 176
原创 B. Equal Rectangles
传送门B. Equal Rectanglestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given 4n sticks, the length of the i-th stick is ai.You have to create n rectangles, each rectangle will consist o
2020-08-07 17:42:50 223
原创 A. Circle of Students
传送门A. Circle of Studentstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n students standing in a circle in some order. The index of the i-th student is pi. It is guaranteed that all
2020-08-07 16:47:53 210
原创 A. Hotelier
传送门A. Hoteliertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmugae has a hotel consisting of 10 rooms. The rooms are numbered from 0 to 9 from left to right.The hotel has two entrances — one
2020-08-07 16:03:37 152
原创 B. Zero Array
传送门B. Zero Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a1,a2,…,an.In one operation you can choose two elements ai and aj (i≠j) and decrease each of them by one.
2020-08-06 17:03:39 209
原创 B. Water Lily
传送门B. Water Lilytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile sailing on a boat, Inessa noticed a beautiful water lily flower above the lake’s surface. She came closer and it turned out
2020-08-06 15:18:45 200
原创 A. City Day
传送门A. City Daytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFor years, the Day of city N was held in the most rainy day of summer. New mayor decided to break this tradition and select a not-s
2020-08-06 11:44:45 149
原创 B. Odd Sum Segments
传送门B. Odd Sum Segmentstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array aa consisting of nn integers a1,a2,…,ana1,a2,…,an. You want to split it into exactly kk non-empty n
2020-08-06 10:52:44 205
原创 A. Three Piles of Candies
传送门A. Three Piles of Candiestime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputAlice and Bob have received three big piles of candies as a gift. Now they want to divide these candies as fair as po
2020-08-06 09:59:14 296 1
原创 B. Tokitsukaze and Mahjong
传送门B. Tokitsukaze and Mahjongtime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputTokitsukaze is playing a game derivated from Japanese mahjong. In this game, she has three tiles in her hand. Each t
2020-08-04 21:00:28 272 4
原创 A. Tokitsukaze and Enhancement
传送门A. Tokitsukaze and Enhancementtime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputTokitsukaze is one of the characters in the game “Kantai Collection”. In this game, every character has a common
2020-08-04 19:38:57 150
原创 B. Number Circle
传送门B. Number Circletime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputYou are given n numbers a1,a2,…,an. Is it possible to arrange them in a circle in such a way that every number is strictly les
2020-08-04 11:29:03 258
原创 A. Keanu Reeves
传送门A. Keanu Reevestime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputAfter playing Neo in the legendary “Matrix” trilogy, Keanu Reeves started doubting himself: maybe we really live in virtual rea
2020-08-04 10:23:44 166
原创 A. Vus the Cossack and a Contest
传送门A. Vus the Cossack and a Contesttime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard output题目描述Vus the Cossack holds a programming competition, in which nn people participate. He decided to award them
2020-08-04 09:21:40 212
原创 hdu 2043 密码
传送门密码Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 92265 Accepted Submission(s): 36822Problem Description网上流传一句话:“常在网上飘啊,哪能不挨刀啊~”。其实要想能安安心心地上网其实也不难,学点安全知识就可以。首先,我们就要设置一个安全的密码。那什么样的密码才叫安全的呢?
2020-08-02 20:31:27 169
原创 hdu 2042 不容易系列之二
传送门不容易系列之二Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48021 Accepted Submission(s): 38530Problem Description你活的不容易,我活的不容易,他活的也不容易。不过,如果你看了下面的故事,就会知道,有位老汉比你还不容易。重庆市郊黄泥板村的徐老汉(大号徐东海,简称XDH)这两
2020-08-02 20:09:13 117
原创 hdu2040 亲和数
传送门亲和数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 67605 Accepted Submission(s): 40949Problem Description古希腊数学家毕达哥拉斯在自然数研究中发现,220的所有真约数(即不是自身的约数)之和为:1+2+4+5+10+11+20+22+44+55+110=284。而284的所
2020-08-02 17:39:55 163
原创 A. Raising Bacteria
传送门579A. Raising Bacteriatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are a lover of bacteria. You want to raise some bacteria in a box.Initially, the box is empty. Each morning, y
2020-08-02 16:00:04 254
有关YOLO的介绍、心得体会、相关项目和练习内容
2024-03-03
智能车竞赛是一项涉及机器人技术、自动化控制和人工智能的竞赛活动,参赛者需要设计、开发和优化能够自主导航的智能车辆
2024-02-18
大创(大学生创新创业训练计划)是国内高校开展的一个重要科研训练项目,涉及创新创业、项目研发和实践能力培养
2024-02-18
美赛(美国大学生数学建模竞赛,也称为MCMICM)是一个涉及数学建模、数据分析和文档写作的竞赛,以下是一些资源推荐
2024-02-18
ACM、NOI和CSP是国内外知名的程序设计竞赛,以下是一些资源推荐
2024-02-18
计算机二级考试通常包括计算机基础知识、计算机操作系统、Office办公软件、数据库基础、网页设计与制作等内容
2024-02-18
Visual Basic语言教程、案例和相关项目资源的推荐
2024-02-18
Scratch语言教程、案例和相关项目资源的推荐
2024-02-18
Kotlin语言教程、案例和相关项目资源的推荐
2024-02-13
Swift语言教程、案例和相关项目资源的推荐
2024-02-13
Python语言教程、案例和相关项目资源的推荐
2024-02-13
Java语言教程、案例和相关项目资源的推荐
2024-02-13
汇编语言教程、案例和相关项目资源的推荐
2024-02-13
python生成春节烟花项目代码
2024-02-13
基于JSP的学生宿舍管理系统
2024-01-19
基于vue的英语单词App
2024-01-19
基于Cocos Creator的水果忍者游戏
2024-01-19
网页设计与制作课程设计之摄影分享网站
2024-01-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人