当前位置:网站首页>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
边栏推荐
- Tips in Android Development: requires permission android.permission write_ Settings solution
- 平台商业化能力的另一种表现形式SAAS
- 非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
- 商品管理系统——整合仓库服务以及获取仓库列表
- 程序员都应该知道的URI,一文帮你全面了解
- Travel notes of csp-s 2020
- STS安装
- Do you know how the computer starts?
- First development of STC to stm32
- 基于链表的有界阻塞队列 —— LinkedBlockingQueue
猜你喜欢
Several rolling captions based on LabVIEW
20201108编程练习——练习3
写时复制集合 —— CopyOnWriteArrayList
LTM理解及配置笔记记录
WordPress Import 上传的文件尺寸超过php.ini中定义的upload_max_filesize值--&gt;解决方法。
Introduction to nmon
你有没有想过为什么交易和退款要拆开不同的表
Three ways to operate tables in Apache iceberg
B. protocal has 7000eth assets in one week!
centos7下安装iperf时出现 make: *** No targets specified and no makefile found. Stop.的解决方案
随机推荐
Exception capture and handling in C + +
为什么我们不使用GraphQL? - Wundergraph
Application of cloud gateway equipment on easynts in Xueliang project
作业2020.11.7-8
Why don't we use graphql? - Wundergraph
你有没有想过为什么交易和退款要拆开不同的表
1. What does the operating system do?
Get the first cover image of video through canvas
Introduction to nmon
程序员都应该知道的URI,一文帮你全面了解
Pipedrive如何在每天部署50+次的情况下支持质量发布?
Core knowledge of C + + 11-17 template (2) -- class template
Operation 2020.11.7-8
The vowels in the inverted string of leetcode
Five indispensable open source tools for me
Combine theory with practice to understand CORS thoroughly
通过canvas获取视频第一帧封面图
RabbitMQ脑裂问题解决方案调查
亚马逊的无服务器总线EventBridge支持事件溯源 - AWS
OpenGL ES 框架详细解析(八) —— OpenGL ES 设计指南