当前位置:网站首页>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
边栏推荐
猜你喜欢

EasyNTS上云网关设备在雪亮工程项目中的实战应用

Combine theory with practice to understand CORS thoroughly

android开发中提示:requires permission android.permission write_settings解决方法

20201108 programming exercise exercise 3

How to get started with rabbitmq

1.操作系统是干什么的?

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

The file size uploaded by WordPress import exceeds php.ini Upload defined in_ max_ Filesize value -- & gt; solution.

23张图,带你入门推荐系统

For the first time open CSDN, this article is for the past self and what is happening to you
随机推荐
服务器性能监控神器nmon使用介绍
A solution to the problem that color picker (palette) cannot use shortcut keys in sublime Text3 plug-in
Apache Iceberg 中三种操作表的方式
Review of API knowledge
LTM理解及配置笔记记录
OpenGL ES 框架详细解析(八) —— OpenGL ES 设计指南
BIOS of operating system
leetcode之反转字符串中的元音字母
Operation 2020.11.7-8
API部分的知识点复习
LeetCode-11:盛水最多的容器
从实践谈 Ruby 语法上的几个设计不一致带来的问题。
Ten year itch of programmer
Why choose f for the back end of dark website? - darklang
STS安装
Linked list
Five indispensable open source tools for me
深度优先搜索和广度优先搜索
linx7.5 初始安装
Linked blocking queue based on linked list