摘要: Given an array of integers, a, count the number of pairs of i and ... 阅读全文
posted @ 2020-10-09 05:07 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)
摘要: Given an array of integers, a, count the number of pairs of i and ... 阅读全文
posted @ 2020-10-09 05:07 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要: 就是对于每个b_i来说都去找离它最近的那个a_k,然后gain_i就是|b_i - a_i| - |b_i - a_k|,意为如果... 阅读全文
posted @ 2020-10-09 04:43 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要: 就是对于每个b_i来说都去找离它最近的那个a_k,然后gain_i就是|b_i - a_i| - |b_i - a_k|,意为如果... 阅读全文
posted @ 2020-10-09 04:43 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要: for example: input: [[6, 5], [2, 3], [4, 3], [4, 5], [1, 2]] outpu... 阅读全文
posted @ 2020-10-09 03:06 EvanMeetTheWorld 阅读(27) 评论(0) 推荐(0)
摘要: for example: input: [[6, 5], [2, 3], [4, 3], [4, 5], [1, 2]] outpu... 阅读全文
posted @ 2020-10-09 03:06 EvanMeetTheWorld 阅读(16) 评论(0) 推荐(0)
摘要: Python Version: def figureEnderGravity(matrix): if not matrix ... 阅读全文
posted @ 2020-10-09 02:40 EvanMeetTheWorld 阅读(18) 评论(0) 推荐(0)
摘要: Python Version: def figureEnderGravity(matrix): if not matrix ... 阅读全文
posted @ 2020-10-09 02:40 EvanMeetTheWorld 阅读(37) 评论(0) 推荐(0)