自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 表达式求值-AcWing 3302

题目如下:给定一个表达式,其中运算符仅包含+,-,*,/(加 减 乘 整除),可能包含括号,请你求出表达式的最终值。

2023-07-06 14:48:47 66 1

原创 L1-058 6翻了 (15 分) C语言

“666”是一种网络用语,大概是表示某人很厉害、我们很佩服的意思。最近又衍生出另一个数字“9”,意思是“6翻了”,实在太厉害的意思。如果你以为这就是厉害的最高境界,那就错啦 —— 目前的最高境界是数字“27”,因为这是 3 个 “9”! 本题就请你编写程序,将那些过时的、只会用一连串“6666……6”表达仰慕的句子,翻译成最新的高级表达。 输入格式: 输入在一行中给出一句话,即一个非空字符串,由不超过 1000 个英文字母、数字和空格组成,以回车结束。 输出格式: 从左到右扫描输入的句子:如果..

2022-04-10 21:37:35 233

原创 CodeForces - 192A

A. Funky Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output As you very well know, this year's funkiest numbers are so called triangular numbers (that is, integers that are represe

2022-03-24 22:46:23 316

原创 Gym - 103107K

K. Keep Eating time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Megumi is a girl who likes to eat. Today there will be a party at Aki's home. There areNNcakes for Megumi of different w..

2022-03-24 22:43:49 216

原创 CodeForces 750A

A. New Year and Hurry time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Limak is going to participate in a contest on the last day of the 2016. The contest will start at 20:00 and will las

2022-03-24 22:40:18 82

原创 【无标题】

小明成功加入某高校ACM集训队并成功担任队长职位,队内新引进了一台超级计算机,大家都想试一试。 集训队共有nn名队员,他们由[1, n][1,n]进行编号,编号为ii的队员计划使用超级计算机的时长为a_iai​,由于只有一台,所以下一个人使用前需要等待上一个人使用完毕,并且等待的时间也计算在使用者的使用时间中。 现在,小明想要构造出让所有人的平均使用时间最短的排队顺序(如果存在平均等待时间相同的两个顺序,编号较小的人优先排在前面)。 Input 共两行: ​ 第一行,一个整数nn,代表nn名队员。

2022-03-23 20:12:14 43

原创 AtCoder - abc171_d

Time Limit: 2 sec / Memory Limit: 1024 MB Score :400400points Problem Statement You have a sequenceAAcomposed ofNNpositive integers:A_{1}, A_{2}, \cdots, A_{N}A1​,A2​,⋯,AN​. You will now successively do the followingQQoperations: In theii-th...

2022-03-23 20:02:54 99

原创 CodeForces - 670A

A. Holidays time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output On the planet Mars a year lasts exactlyndays (there are no leap years on Mars). But Martians have the same weeks as earth...

2022-03-23 19:57:57 321

原创 CodeForces - 546B

B. Soldier and Badges time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Colonel hasnbadges. He wants to give one badge to every of hisnsoldiers. Each badge has acoolness factor, w...

2022-03-23 19:53:35 129

原创 贪吃蛇项目(C语言版本)

C语言实现贪吃蛇

2022-02-16 13:07:37 773 1

原创 【无标题】《数据结构(线性表)学习笔记|CSDN创作打卡》

不知道大家是否有这样的情况,在学习数据结构时,总感觉自己理解了,但是真正到实际操作时,却又无从下手,不知所措。 这篇适用于对线性表有初步认知的小伙伴,内容是顺序存储结构的线性表和单链表的创建,插入,删除几个基本操作的代码,我把它们整理出来是希望对于无从下手的小伙伴可以先尝试照抄打代码,当然得先理解,但是这玩意也不是说理解了就能够实操,所以可以先照抄,然后再自己尝试着打出来!! 加油!冲啊! 顺序存储结构 用数组表示的线性表 创建顺序存储结构的线性表 #define MAXSIZE 20 //储..

2022-02-11 15:38:11 172 1

原创 DFS(深度优先搜索)学习笔记(C语言版本)

DFS(深度优先搜索)大一笔记

2022-01-28 21:34:11 1449 2

空空如也

空空如也

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

TA关注的人

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