上一页 1 ··· 42 43 44 45 46
摘要: 链接:https://ac.nowcoder.com/acm/contest/3800/G来源:牛客网 题目描述 小 sun 非常喜欢放假,尤其是那种连在一起的长假,在放假的时候小 sun 会感到快乐,快乐值等于连着放假的天数,现在小 sun 把他的安排表告诉你,希望你告诉他在他的安排表中, 他的最 阅读全文
posted @ 2020-01-03 23:24 lipu123 阅读(262) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/problem/15164 题目描述 给一个数列,会有多次询问,对于每一次询问,会有两种操作: 1:给定两个整数x, y, 然后在原数组的第x位置上加y; 2:给定两个整数l,r,然后输出数组从第l位加到第r位数字的和并换行 输入描述: 阅读全文
posted @ 2020-01-03 18:16 lipu123 阅读(204) 评论(0) 推荐(0)
摘要: A. Suits A new delivery of clothing has arrived today to the clothing store. This delivery consists of aa ties, bb scarves, cc vests and dd jackets. T 阅读全文
posted @ 2020-01-03 17:01 lipu123 阅读(275) 评论(0) 推荐(0)
摘要: Three Friends Three friends are going to meet each other. Initially, the first friend stays at the position x=a, the second friend stays at the positi 阅读全文
posted @ 2020-01-03 15:35 lipu123 阅读(246) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/challenge/terminal money White Cloud has built n stores numbered from 1 to n.White Rabbit wants to visit these stores i 阅读全文
posted @ 2020-01-03 14:03 lipu123 阅读(210) 评论(0) 推荐(0)
摘要: P1739 表达式括号匹配 网站链接;https://www.luogu.com.cn/problem/P1739 假设一个表达式有英文字母(小写)、运算符(+,—,*,/)和左右小(圆)括号构成,以“@”作为表达式的结束符。请编写一个程序检查表达式中的左右圆括号是否匹配,若匹配,则返回“YES”; 阅读全文
posted @ 2020-01-03 11:05 lipu123 阅读(779) 评论(0) 推荐(0)
摘要: 题目描述 设有n个正整数(n≤20),将它们联接成一排,组成一个最大的多位整数。 例如:n=3时,3个整数13,312,343联接成的最大整数为:34331213 又如:n=4时,4个整数7,13,4,246联接成的最大整数为:7424613 输入格式 第一行,一个正整数n。 第二行,n个正整数。 阅读全文
posted @ 2020-01-03 10:32 lipu123 阅读(316) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/3800/D来源:牛客网 题目描述 Rinne 喜欢使用一种奇怪的方法背单词,现在这些单词被放在了一个 n×mn \times mn×m 的格子里。由于背单词是一个令人烦躁的事情,所以她决定每天只背同一行或者同一列的单词。 阅读全文
posted @ 2020-01-02 23:14 lipu123 阅读(212) 评论(0) 推荐(0)
摘要: 来源:http://codeforces.com/problemset/problem/1265/B B. Beautiful Numbers You are given a permutation p=[p1,p2,…,pn]p=[p1,p2,…,pn] of integers from 11 t 阅读全文
posted @ 2020-01-02 21:57 lipu123 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46