摘要: J - Til the Cows Come Home Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her 阅读全文
posted @ 2023-02-22 22:38 Keith- 阅读(14) 评论(0) 推荐(0) 编辑
摘要: E - Networking You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a 阅读全文
posted @ 2023-02-22 22:26 Keith- 阅读(18) 评论(0) 推荐(0) 编辑
摘要: D - Equals Problem Statement We have a permutation of the integers from 1 through$ N, p_1, p_2, .., p_N$. We also have $M$ pairs of two integers betwe 阅读全文
posted @ 2023-02-22 21:56 Keith- 阅读(13) 评论(0) 推荐(0) 编辑
摘要: C - The Suspects 2019冠状病毒病(英语:Coronavirus disease 2019,缩写:COVID-19 ),是一种由严重急性呼吸系统综合症冠状病毒2型(缩写:SARS-CoV-2)引发的传染病。此病在全球各国大规模爆发并急速扩散,成为人类历史上致死人数最多的流行病之一。 阅读全文
posted @ 2023-02-22 21:37 Keith- 阅读(12) 评论(0) 推荐(0) 编辑
摘要: A - Largest Rectangle in a Histogram A histogram(直方图)is a polygon(多边形) composed of a sequence of rectangles(矩形) aligned at a common base line. The rec 阅读全文
posted @ 2023-02-22 21:17 Keith- 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 单调栈 给定一个长度为 N 的整数数列,输出每个数左边第一个比它小的数,如果不存在则输出 −1。 输入格式 第一行包含整数 N,表示数列长度。 第二行包含 N 个整数,表示整数数列。 输出格式 共一行,包含 N 个整数,其中第 i 个数表示第 i 个数的左边第一个比它小的数,如果不存在则输出 −1。 阅读全文
posted @ 2023-02-22 11:57 Keith- 阅读(33) 评论(0) 推荐(0) 编辑