自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 练习赛7-补题

A - Display The Number有一个大的电子屏幕,可以显示998244353个十进制数字。数字的显示方式与不同的电子闹钟相同:每个数字的位置由7个部分组成,可以打开和关闭,组成不同的数字。下图描述了如何显示所有10位小数:可以看到,不同的数字可能需要打开不同数量的段。例如,如果你想显示1,你必须打开屏幕的2段,如果你想显示8,显示数字的某个地方的所有7段都应该打开。您希望在屏幕上显示一个非常大的整数。不幸的是,屏幕出BUG了:不能同时打开超过n个片段。所以现在你想知道什么是最

2021-06-06 20:28:09 1591

原创 练习赛6--补题

A - Vasya and Isolated VerticesMr. Zhang recently became interested in graphic theory, so he came up with the subject of this sentence.Find the minimum and maximum possible number of orphaned nodes in the undringed and heavy-edged undringed graph o.

2021-05-25 21:06:38 290

原创 Find a multiple

问题描述:The input contains N natural (i.e. positive integer) numbers ( N <= 10000 ). Each of that numbers is not greater than 15000. This numbers are not necessarily different (so it may happen that two or more of them will be equal). Your task is to c.

2021-05-23 15:15:13 96

原创 F--string

Avin has a string. He would like to uniform-randomly select four characters (selecting the same character is allowed) from it. You are asked to calculate the probability of the four characters being ”avin” in order.InputThe first line contains n (1 ≤ n ≤

2021-05-23 00:41:22 139

原创 字符串操作

链接:https://ac.nowcoder.com/acm/contest/11190/A来源:牛客网题目描述小红拿到了一个只含有'R'、'B'、'G'三种字符的、长度为n的字符串。她每次可以选择一个字母改变字母的值(改变的值也必须是'R'、'B'、'G'中的一种)。小红想进行不超过 ⌊n2⌋\lfloor \frac {n}{2} \rfloor⌊2n​⌋次操作,操作结束后字符串不存在相邻两个相等的相同字母。你能帮帮小红吗?只用输出任意一种可行解即可,不需要把操作数最小化。输入描述:

2021-05-22 23:21:37 2246

空空如也

空空如也

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

TA关注的人

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