摘要:
链接:https://ac.nowcoder.com/acm/contest/15329/F 来源:牛客网 题目描述 There’s a new art installation in town, and it inspires you... to play a childish game. The 阅读全文
摘要:
Avin is studying series. A series is called "wave" if the following conditions are satisfied: It contains at least two elements; All elements at odd p 阅读全文
摘要:
Avin has two trees which are not connected. He asks you to add an edge between them to make them connected while minimizing the function \(\Sigma_{i = 阅读全文
摘要:
题目描述 在数轴上有 n个闭区间从 1 至 n 编号,第 i 个闭区间为 [li,ri][l**i,r**i] 。 现在要从中选出 m 个区间,使得这 m 个区间共同包含至少一个位置。换句话说,就是使得存在一个 x ,使得对于每一个被选中的区间 [li,ri][l**i,r**i],都有 li≤x≤ 阅读全文
摘要:
You are given three integers a, 𝑏b and c. Find two positive integers x and y (x>0, y>0) such that: the decimal representation of x without leading ze 阅读全文
摘要:
You have a card deck of n cards, numbered from top to bottom, i. e. the top card has index 1and bottom card — index n. Each card has its color: the 𝑖 阅读全文
摘要:
Let's define the cost of a string 𝑠s as the number of index pairs i and j (1≤i<j<|s|) such that si=sj and si+1=sj+1. You are given two positive integ 阅读全文