摘要:
题目描述 Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs ex 阅读全文
摘要:
题目描述 Let aa and bb be two arrays of lengths nn and mm, respectively, with no elements in common. We can define a new array merge(a,b) of length n+mn+m 阅读全文
摘要:
题目描述 You are given a graph consisting of nn vertices and mm edges. It is not guaranteed that the given graph is connected. Some edges are already dire 阅读全文
摘要:
D. Xenia and Colorful Gems 题目大意:给你三个数组a , b , c ,在这三个数组中找每个数组找一个数,这三个数为x,y,z, 令ans=(x-y)^2+(y-z)^2+(z-x)^2,求ans的最 小值为多少。 解题思路: 第一种:最小值一定是三个值最接近的时候,则此时 阅读全文
摘要:
D - Nastya and Scoreboard 题意:给你n串由0和1组成的长度为7的字符串,n串表示一个n位数,每个串的第n个位置有1则表示这个位置的火柴是亮着的, 位置的表示如下图所示,而每个数字可以由指定位置上的火柴组成,给你每个位上已有火柴的位置,再给你k根火柴,问你由这k 根火柴和已有 阅读全文