当前位置:网站首页>1450. 在既定时间做作业的学生人数
1450. 在既定时间做作业的学生人数
2020-11-09 08:25:00 【osc_6jhxf9ab】
题解
简单常规题目
class Solution:
def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int:
num = 0
for i in range(len(endTime)):
if endTime[i]>= queryTime and startTime[i]<= queryTime:
num+=1
return num
版权声明
本文为[osc_6jhxf9ab]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4286372/blog/4708534
边栏推荐
- Start learning discrete mathematics again
- 作业2020.11.7-8
- BIOS of operating system
- Do you know how the computer starts?
- A solution to the problem that color picker (palette) cannot use shortcut keys in sublime Text3 plug-in
- 基于LabVIEW实现的几种滚动字幕
- 20201108编程练习——练习3
- Web上的分享(Share)API
- 从实践谈 Ruby 语法上的几个设计不一致带来的问题。
- Concurrent linked queue: a non blocking unbounded thread safe queue
猜你喜欢
![[Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler](/img/e8/dd70ddf3c2027907f64674676d676e.jpg)
[Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler

Adding OpenGL form to MFC dialog

从实践谈 Ruby 语法上的几个设计不一致带来的问题。

作业2020.11.7-8

Combine theory with practice to understand CORS thoroughly

App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!

Android 解决setRequestedOrientation之后手机屏幕的旋转不触发onConfigurationChanged方法

FC 游戏机的工作原理是怎样的?

首次开通csdn,这篇文章送给过去的自己和正在发生的你

简单介绍c#通过代码开启或关闭防火墙示例
随机推荐
C + + adjacency matrix
After Android solves the setrequested orientation, the rotation of the mobile phone screen does not trigger the onconfigurationchanged method
程序员都应该知道的URI,一文帮你全面了解
如何通过Sidecar自定义资源减少Istio代理资源消耗
搭建全分布式集群全过程
2020,Android开发者打破寒冬的利器是什么?
Windows环境下如何进行线程Dump分析
结合阿里云 FC 谈谈我对 FaaS 的理解
一堆代码忘了缩进?快捷方式教你无忧无虑!
In 2020, what are the best tools for Android developers to break the cold winter?
Common feature pyramid network FPN and its variants
Why don't we use graphql? - Wundergraph
六家公司CTO讲述曾经历的“宕机噩梦”
自然语言处理(NLP)路线图 - kdnuggets
3.你知道计算机是如何启动的吗?
亚马逊的无服务器总线EventBridge支持事件溯源 - AWS
Sublime text3 插件ColorPicker(调色板)不能使用快捷键的解决方法
Operation 2020.11.7-8
Several common playing methods of sub database and sub table and how to solve the problem of cross database query
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!