Submission #67510511
Source Code Expand
'''
Author: Sarvajnya Pujari
Language: PyPy3
GitHub: https://github.com/sarvajnya
'''
def main():
n,l,r=li()
ans=0
for i in range(n):
x,y=li()
if x<=l and y>=r:
ans+=1
print(ans)
#Header_Files
import os
import sys
from io import BytesIO, IOBase
import random
import os
from bisect import *
from typing import *
from collections import *
from copy import *
from functools import *
from heapq import *
from itertools import *
from string import *
import math
mod = 1e9+7
def input(): return sys.stdin.readline().strip()
BUFSIZE = 4096
#Fast IO using PyRival
RANDOM = random.randrange(2**62)
def Wrapper(x):
return x ^ RANDOM
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = file.fileno()
self.buffer = BytesIO()
self.writable = "x" in file.mode or "r" not in file.mode
self.write = self.buffer.write if self.writable else None
def read(self):
while True:
b = os.read(self._fd, max(
os.fstat(self._fd).st_size, BUFSIZE))
if not b:
break
ptr = self.buffer.tell()
self.buffer.seek(0, 2), self.buffer.write(
b), self.buffer.seek(ptr)
self.newlines = 0
return self.buffer.read()
def readline(self):
while self.newlines == 0:
b = os.read(self._fd, max(
os.fstat(self._fd).st_size, BUFSIZE))
self.newlines = b.count(b"\n") + (not b)
ptr = self.buffer.tell()
self.buffer.seek(0, 2), self.buffer.write(
b), self.buffer.seek(ptr)
self.newlines -= 1
return self.buffer.readline()
def flush(self):
if self.writable:
os.write(self._fd, self.buffer.getvalue())
self.buffer.truncate(0), self.buffer.seek(0)
class IOWrapper(IOBase):
def __init__(self, file):
self.buffer = FastIO(file)
self.flush = self.buffer.flush
self.writable = self.buffer.writable
self.write = lambda s: self.buffer.write(s.encode("ascii"))
self.read = lambda: self.buffer.read().decode("ascii")
self.readline = lambda: self.buffer.readline().decode("ascii")
sys.stdout = IOWrapper(sys.stdout)
def print(*args, end='\n', sep=''):
for i in args:
sys.stdout.write(str(i))
sys.stdout.write(sep)
sys.stdout.write(end)
def si(types=None):
if not types:
return int(input().strip())
return int(types)
def sf(types=None):
if not types:
return float(input().strip())
return float(types)
def ss(types=None):
if not types:
return input().strip()
return str(types)
def li(types=None):
if not types:
return list(map(int, input().strip().split()))
return list(map(int, str(types)))
def mi(types):
return map(int, str(types))
def ms(types):
return map(str, str(types))
def mf(types):
return map(float, str(types))
def lf(types=None):
if not types:
return list(map(float, input().strip().split()))
return list(map(float, str(types)))
def ls(types=None):
if not types:
return list(input().strip().split())
return list(map(str, str(types)))
if __name__ == '__main__':
main()
Submission Info
| Submission Time |
|
| Task |
A - Streamer Takahashi |
| User |
raiseIQUnderflow |
| Language |
Python (PyPy 3.10-v7.3.12) |
| Score |
100 |
| Code Size |
3486 Byte |
| Status |
AC |
| Exec Time |
171 ms |
| Memory |
91068 KiB |
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
100 / 100 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All |
00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt |
| Case Name |
Status |
Exec Time |
Memory |
| 00_sample_00.txt |
AC |
166 ms |
90708 KiB |
| 00_sample_01.txt |
AC |
168 ms |
90708 KiB |
| 00_sample_02.txt |
AC |
167 ms |
90992 KiB |
| 01_test_00.txt |
AC |
169 ms |
90896 KiB |
| 01_test_01.txt |
AC |
167 ms |
90804 KiB |
| 01_test_02.txt |
AC |
168 ms |
91068 KiB |
| 01_test_03.txt |
AC |
168 ms |
90684 KiB |
| 01_test_04.txt |
AC |
171 ms |
90920 KiB |
| 01_test_05.txt |
AC |
171 ms |
90968 KiB |
| 01_test_06.txt |
AC |
167 ms |
90680 KiB |
| 01_test_07.txt |
AC |
170 ms |
90952 KiB |
| 01_test_08.txt |
AC |
170 ms |
91012 KiB |
| 01_test_09.txt |
AC |
170 ms |
90888 KiB |