結果
問題 |
No.647 明太子
|
ユーザー |
|
提出日時 | 2020-12-08 09:41:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 2,973 ms / 4,500 ms |
コード長 | 297 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,672 KB |
最終ジャッジ日時 | 2024-09-17 14:27:47 |
合計ジャッジ時間 | 9,446 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
n = int(input()) l = [list(map(int,input().split())) for _ in range(n)] m = int(input()) c=[0]*m for i in range(m): p,s=map(int, input().split()) t=0 for j in range(n): if p<=l[j][0] and s>=l[j][1]: t+=1 c[i]=t if sum(c)==0: print(0) else: for i in range(m): if c[i]==max(c): print(i+1)