結果
問題 |
No.647 明太子
|
ユーザー |
|
提出日時 | 2022-05-19 09:25:08 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 141 ms |
コンパイル使用メモリ | 82,100 KB |
実行使用メモリ | 77,024 KB |
最終ジャッジ日時 | 2024-09-17 14:54:03 |
合計ジャッジ時間 | 2,516 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 17 WA * 3 |
ソースコード
N = int(input()) member = [] for _ in range(N): a,b = map(int,input().split()) member.append((a,b)) M = int(input()) dat = [0] * M m = -1 for _ in range(M): x,y = map(int,input().split()) count = 0 for a,b in member: if x <= a and y >= b: count += 1 dat[_] = count if count > m:m = count for i in range(M): if dat[i] == m: print(i + 1)