题目链接 https://atcoder.jp/contests/agc035/tasks/agc035_f 题解 B题难度的F题……然而我还是不会 假设第$i$行染的长度是$a_i$, 第$j$列是$b_j$ 考虑什么情况下两种方案会重复: 若存在$i,j$使得$a_i+1=j$且$b_j=i$, ...
分类:
其他好文 时间:
2020-02-02 01:22:38
阅读次数:
143
1 """ 2 Given an array of integers, return indices of the two numbers such that they add up to a specific target. 3 4 You may assume that each input w ...
分类:
其他好文 时间:
2020-02-01 23:27:36
阅读次数:
86
1、题目 21. Merge Two Sorted Lists Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes ...
分类:
其他好文 时间:
2020-02-01 19:06:49
阅读次数:
102
Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line of ...
分类:
其他好文 时间:
2020-02-01 16:13:15
阅读次数:
69
C.Two ArraysYou are given two integers n and m. Calculate the number of pairs of arrays (a,b) such that: the length of both arrays is equal to m;each ...
分类:
其他好文 时间:
2020-02-01 12:45:43
阅读次数:
197
make_moons是函数用来生成数据集,在sklearn.datasets里,具体用法如下: Parameters: n_samples : int, optional (default=100) The total number of points generated. shuffle : bo ...
分类:
其他好文 时间:
2020-02-01 12:39:56
阅读次数:
529
You are given an array a consisting of 500000 integers (numbered from 1 to 500000). Initially all elements of a are zero. You have to process two type ...
分类:
其他好文 时间:
2020-02-01 10:57:47
阅读次数:
74
Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should return the largest palindro ...
分类:
编程语言 时间:
2020-02-01 10:47:36
阅读次数:
78
"传送门" 题意: 给出$n,n\leq 3000$个互不重合的点,现在将点分为两组,使得不同组中点的距离不等于任何两个在同一组中点的距离。 给出一个分组方案。 思路: 这是一个构造题。 将点按照坐标的奇偶分类,一共只有四类: $$ (0,0),(0,1),(1,0),(1,1) $$ 会发现我们这 ...
分类:
其他好文 时间:
2020-02-01 00:28:52
阅读次数:
91
You are given two integers nn and mm . Calculate the number of pairs of arrays (a,b)(a,b) such that: the length of both arrays is equal to mm ; each e ...
分类:
其他好文 时间:
2020-01-31 22:40:17
阅读次数:
78