結果
問題 |
No.647 明太子
|
ユーザー |
|
提出日時 | 2018-07-26 18:33:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 16,768 KB |
最終ジャッジ日時 | 2024-07-01 03:23:42 |
合計ジャッジ時間 | 7,958 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 TLE * 1 -- * 9 |
ソースコード
N = int(input()) l = [input() for i in range(N)] M = int(input()) l1 = [input() for i in range(M)] ans = [0 for i in range(M)] for i in l: A, B = map(int, i.split()) for j, ment in enumerate(l1): X, Y = map(int, ment.split()) if X <= A and Y >= B: ans[j] += 1 K = max(ans) if K == 0: print(0) else: for i in range(M): if K == ans[i]: print(i + 1)