結果
問題 |
No.647 明太子
|
ユーザー |
![]() |
提出日時 | 2018-10-07 20:40:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,776 KB |
最終ジャッジ日時 | 2024-10-12 14:17:13 |
合計ジャッジ時間 | 9,641 ms |
ジャッジサーバーID (参考情報) |
judge / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 2 |
other | AC * 6 WA * 2 RE * 12 |
ソースコード
N=int(input()) A=[] B=[] for i in range(N): a,b=map(int,input().split()) A.append(a) B.append(b) M=int(input()) ans=[0 for i in range(M+1)] for j in range(M): X,Y=map(int,input().split()) for k in range(N): if X<=A[k] and Y>=B[k]: ans[j+1]+=1 m=ans.count(max(ans)) if max(ans)==0: print(0) else: for l in range(N+1): if ans[l]==max(ans): print(l)