結果

問題 No.647 明太子
ユーザー dangodango
提出日時 2023-06-06 20:53:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 974 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 274,528 KB
最終ジャッジ日時 2023-08-28 10:49:39
合計ジャッジ時間 6,040 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
71,184 KB
testcase_02 AC 69 ms
71,176 KB
testcase_03 AC 70 ms
71,308 KB
testcase_04 AC 75 ms
71,244 KB
testcase_05 AC 70 ms
71,248 KB
testcase_06 AC 70 ms
71,344 KB
testcase_07 AC 76 ms
75,952 KB
testcase_08 AC 78 ms
75,892 KB
testcase_09 AC 96 ms
76,716 KB
testcase_10 AC 105 ms
77,060 KB
testcase_11 AC 89 ms
75,912 KB
testcase_12 AC 102 ms
76,888 KB
testcase_13 AC 122 ms
77,564 KB
testcase_14 AC 315 ms
95,616 KB
testcase_15 AC 135 ms
78,248 KB
testcase_16 AC 100 ms
76,840 KB
testcase_17 AC 362 ms
100,552 KB
testcase_18 AC 354 ms
101,224 KB
testcase_19 AC 127 ms
78,176 KB
testcase_20 AC 124 ms
77,784 KB
testcase_21 AC 114 ms
77,560 KB
testcase_22 MLE -
testcase_23 AC 141 ms
75,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
members = [tuple(map(int, input().split())) for _ in range(N)]
M = int(input())

count = [0] * M
for i in range(1, M):
    X, Y = map(int, input().split())
    count[i] = len([{a, b} for a, b in members if X <= a and Y >= b])

if max(count) == 0:
  print(0)
else:
  for x in [i for i in range(M) if count[i] == max(count)]:
    print(x)
0