上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: ##题目 题目背景 第二次世界大战期间,英国皇家空军从沦陷国征募了大量外籍飞行员。由皇家空军派出的每一架飞机都需要配备在航行技能和语言上能互相配合的两名飞行员,其中一名是英国飞行员,另一名是外籍飞行员。在众多的飞行员中,每一名外籍飞行员都可以与其他若干名英国飞行员很好地配合。 题目描述 一共有 nn 阅读全文
posted @ 2020-08-20 19:53 Luglucky 阅读(153) 评论(0) 推荐(0) 编辑
摘要: ##problem A ###题意 Let LCM(x,y) be the minimum positive integer that is divisible by both x and y. For example, LCM(13,37)=481, LCM(9,6)=18. You are gi 阅读全文
posted @ 2020-08-20 14:34 Luglucky 阅读(359) 评论(0) 推荐(0) 编辑
摘要: ##Problem A ###题目 You are given the array a consisting of n positive (greater than zero) integers. In one move, you can choose two indices i and j (i≠ 阅读全文
posted @ 2020-08-16 21:37 Luglucky 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ##Problem C ###题面 You are given an array a1,a2,…,an consisting of integers from 0 to 9. A subarray al,al+1,al+2,…,ar−1,ar is good if the sum of elemen 阅读全文
posted @ 2020-08-15 14:54 Luglucky 阅读(252) 评论(0) 推荐(0) 编辑
摘要: ##题目 A binary matrix is called good if every even length square sub-matrix has an odd number of ones. Given a binary matrix a consisting of n rows and 阅读全文
posted @ 2020-08-14 20:43 Luglucky 阅读(73) 评论(0) 推荐(0) 编辑
摘要: ##题目 Problem Description DZY has a sequence a[1..n]. It is a permutation of integers 1∼n. Now he wants to perform two types of operations: 0lr: Sort a 阅读全文
posted @ 2020-08-14 14:15 Luglucky 阅读(66) 评论(0) 推荐(0) 编辑
摘要: ##题面 Problem Description John has several lines. The lines are covered on the X axis. Let A is a point which is covered by the most lines. John wants 阅读全文
posted @ 2020-08-14 00:27 Luglucky 阅读(88) 评论(0) 推荐(0) 编辑
摘要: ##题目 农民约翰正在指挥他的N头牛进行清理工作。 他将一天划分为了T个班次(1~T)。 每头牛都只能在一天中的某一个时间段内进行不间断的工作。 你需要帮助约翰排列出一个合理的奶牛的清理班次,使得每个班次都有奶牛在进行清理,而且动用的奶牛数量可以尽可能的少。 输入格式 第1行:两个空格隔开的整数N和 阅读全文
posted @ 2020-08-11 22:13 Luglucky 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ##题目 定义 conn(s,n) 为 n 个字符串 s 首尾相接形成的字符串,例如: conn(“abc”,2)=”abcabc” 称字符串 a 能由字符串 b 生成,当且仅当从字符串 b 中删除某些字符后可以得到字符串 a。 例如“abdbec”可以生成“abc”,但是“acbbe”不能生成“a 阅读全文
posted @ 2020-08-11 00:39 Luglucky 阅读(157) 评论(0) 推荐(1) 编辑
摘要: ##题目 小A和小B决定利用假期外出旅行,他们将想去的城市从1到N编号,且编号较小的城市在编号较大的城市的西边,已知各个城市的海拔高度互不相同,记城市 i 的海拔高度为 Hi。 城市 i 和城市 j 之间的距离 d[i,j] 恰好是这两个城市海拔高度之差的绝对值,即 d[i,j]=|Hi−Hj|。 阅读全文
posted @ 2020-08-10 22:00 Luglucky 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页