結果

問題 No.3085 Easy Problems
ユーザー Meso Meso
提出日時 2025-07-18 10:13:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 309 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 38,436 KB
最終ジャッジ日時 2025-07-18 10:14:04
合計ジャッジ時間 9,249 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other TLE * 1 -- * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
test = [0 for _ in range(n)]
for i in range(n):
    a, b = map(int, input().split())
    test[i] = (a, b)

q = int(input())
for i in range(q):
    x, y = map(int, input().split())
    ans = 0
    for a, b in test:
        if y != b and a <= x:
            ans += 1
    print(ans)
            
0