07 2019 档案
摘要:题目描述 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数数加上x 2.求出某一个数的值 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数数加上x 2.求出某一个数的值 输入格式 第一行包含两个整数N、M,分别表示该数列数字的个数和操作的总个数。 第二行包含N个用
阅读全文
摘要:算法内容: 该算法主要用于求解线性方程组的解,其原理是,将增广矩阵化成行最简形矩阵,最终能求出方程是否有解、有解时自由元的个数和非自由元的解。
阅读全文
摘要:Description Description 问题描述 输入A、B,输出A+B。 输入格式 输入的第一行包括两个整数,由空格分隔,分别表示A、B。 输出格式 输出一行,包括一个整数,表示A+B的值。 样例输入 12 45 样例输出 57 数据规模与约定 -10000 < = A, B < = 10
阅读全文
摘要:Description Description 给定长度为n的正整数序列a1,a2,…,an。 令sum=ab1+ab2+…+abm,并且满足:ab1<ab2<…<abm;b1<b2<…<bm;1<=m<=n。 求最大的sum。 n<=1000,0<ai<=109 给定长度为n的正整数序列a1,a2
阅读全文
摘要:Description Description Company A has N employees, this company has lots of departments around the country. The employees who belong to different depa
阅读全文
摘要:Description Description The company have n(n<=100) long cables(the length is not necessarily the same),we assume that the length of every long cable i
阅读全文
摘要:Description Description Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in wh
阅读全文
摘要:Description Description Problem C: Jolly Jumpers A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference betwee
阅读全文
摘要:Description Description Problem C: WERTYU A common typing error is to place the hands on the keyboard one row to the right of the correct position. So
阅读全文
摘要:Description Description 有形如:ax3+bx2+cx+d=0 这样的一个一元三次方程。给出该方程中各项的系数(a,b,c,d 均为实数),并约定该方程存在三个不同实根(根的范围在-100至100之间),且根与根之差的绝对值> =1。要求三个实根。 有形如:ax3+bx2+cx
阅读全文
摘要:Description Description 问题描述 辰辰是个天资聪颖的孩子,他的梦想是成为世界上最伟大的医师。为此,他想拜附近最有威望的医师为师。医师为了判断他的资质,给他出了一个难题。医师把他带到一个到处都是草药的山洞里对他说:“孩子,这个山洞里有一些不同的草药,采每一株都需要一些时间,每一
阅读全文
摘要:Description Description 问题描述 求出区间[a,b]中所有整数的质因数分解。 输入格式 输入两个整数a,b。 输出格式 每行输出一个数的分解,形如k=a1*a2*a3...(a1< =a2< =a3...,k也是从小到大的)(具体可看样例) 样例输入 3 10 样例输出 3=
阅读全文
摘要:Description Description 问题描述 给定一个序列,每次询问序列中第l个数到第r个数中第K大的数是哪个。 问题描述 给定一个序列,每次询问序列中第l个数到第r个数中第K大的数是哪个。 Input Input 输入格式 第一行包含一个数n,表示序列长度。 第二行包含n个正整数,表示
阅读全文
摘要:Description Description 学校里有一个水房,水房里一共装有 m 个龙头可供同学们打开水,每个龙头每秒钟的供水量相等,均为 1。 现在有 n 名同学准备接水,他们的初始接水顺序已经确定。将这些同学按接水顺序从 1到 n 编号,i 号同学的接水量为 wi。接水开始时,1 到 m 号
阅读全文
摘要:Description Description 问题描述 已知一个正整数N,问从1~N中任选出三个数,他们的最小公倍数最大可以为多少。 问题描述 已知一个正整数N,问从1~N中任选出三个数,他们的最小公倍数最大可以为多少。 Input Input 输入一个正整数 N(1<=N<=10^6) 输入一个
阅读全文
摘要:Description Description 杨辉三角形又称Pascal三角形,它的第i+1行是(a+b)i的展开式的系数。 它的一个重要性质是:三角形中的每个数字等于它两肩上的数字相加。 下面给出了杨辉三角形的前4行: 1 1 1 1 2 1 1 3 3 1 给出n,输出它的前n行。 杨辉三角形
阅读全文
摘要:Description Description 问题描述 某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数 轴上的每个整数点,即0,1,2,……,L,都种有一棵树。 由于马路上有一些区域要用来建地铁。这些
阅读全文
摘要:Description Description 123321是一个非常特殊的数,它从左边读和从右边读是一样的。 输入一个正整数n, 编程求所有这样的五位和六位十进制数,满足各位数字之和等于n 。(1< =n< =54) 123321是一个非常特殊的数,它从左边读和从右边读是一样的。 输入一个正整数n
阅读全文
摘要:Description Description 元旦快到了,校学生会让乐乐负责新年晚会的纪念品发放工作。为使得参加晚会的同学所获得的纪念品价值 相对均衡,他要把购来的纪念品根据价格进行分组,但每组最多只能包括两件纪念品,并且每组纪念品的价格之和不能超过一个给定的整数。为了保证在尽量短的时 间内发完所
阅读全文
摘要:Description Description Because of the GFW (Great Firewall), we cannot directly visit many websites, such as Facebook, Twitter, YouTube, etc. But with
阅读全文
摘要:Description Description A Swiss-system tournament is a tournament which uses a non-elimination format. The first tournament of this type was a chess t
阅读全文
摘要:Description Description Ok, now I will introduce this game to you... Isaac is trapped in a maze which has many common rooms… Like this…There are 9 com
阅读全文
摘要:Description Description Alice has a monkey, she must feed fruit to the monkey every day.She has three kinds of fruits, bananas, peaches and apples. Ev
阅读全文
摘要:Problem Description Rock-paper-scissors is a zero-sum hand game usually played between two people, in which each player simultaneously forms one of th
阅读全文
摘要:Problem Description Chen, Adrian (November 7, 2013). “Doge Is An Ac- tually Good Internet Meme. Wow.”. Gawker. Retrieved November 22, 2013. Doge is an
阅读全文
摘要:Problem Description Master Di plans to take his girlfriend for a travel by bike. Their journey, which can be seen as a line segment of length L, is a
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/881/E 题目描述 Bobo has a string of length 2(n + m) which consists of characters `A` and `B`. The string also has a
阅读全文
摘要:Description Description There are many users on SDNU OJ, but only the one who registered can use it. We think different username represent different u
阅读全文
摘要:One cold winter evening Alice and her older brother Bob was sitting at home near the fireplace and giving each other interesting problems to solve. Wh
阅读全文
摘要:Professor Dumbledore is helping Harry destroy the Horcruxes. He went to Gaunt Shack as he suspected a Horcrux to be present there. He saw Marvolo Gaun
阅读全文
摘要:Description Windy has N balls of distinct weights from 1 unit to N units. Now he tries to label them with 1 to N in such a way that: No two balls shar
阅读全文
摘要:Description N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, are participating in a programming contest. As we all know, some cows code better than o
阅读全文
摘要:描述 小Hi和小Ho所在学校的校园网被黑客入侵并投放了病毒。这事在校内BBS上立刻引起了大家的讨论,当然小Hi和小Ho也参与到了其中。从大家各自了解的情况中,小Hi和小Ho整理得到了以下的信息: 校园网主干是由N个节点(编号1..N)组成,这些节点之间有一些单向的网路连接。若存在一条网路连接(u,v
阅读全文
摘要:由于今天上课的老师讲的特别无聊,小Hi和小Ho偷偷地聊了起来。 小Ho:小Hi,你这学期有选什么课么? 小Hi:挺多的,比如XXX1,XXX2还有XXX3。本来想选YYY2的,但是好像没有先选过YYY1,不能选YYY2。 小Ho:先修课程真是个麻烦的东西呢。 小Hi:没错呢。好多课程都有先修课程,每
阅读全文

浙公网安备 33010602011771号