結果
問題 | No.647 明太子 |
ユーザー | FVRChan |
提出日時 | 2018-05-05 13:23:25 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 10,884 KB |
実行使用メモリ | 10,520 KB |
最終ジャッジ日時 | 2023-09-10 10:24:15 |
合計ジャッジ時間 | 7,626 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,892 KB |
testcase_01 | AC | 16 ms
7,956 KB |
testcase_02 | AC | 16 ms
8,120 KB |
testcase_03 | AC | 17 ms
7,768 KB |
testcase_04 | AC | 16 ms
7,776 KB |
testcase_05 | AC | 17 ms
7,776 KB |
testcase_06 | AC | 16 ms
7,868 KB |
testcase_07 | AC | 17 ms
7,832 KB |
testcase_08 | AC | 16 ms
7,824 KB |
testcase_09 | AC | 33 ms
8,332 KB |
testcase_10 | AC | 51 ms
8,236 KB |
testcase_11 | AC | 23 ms
7,968 KB |
testcase_12 | AC | 44 ms
8,272 KB |
testcase_13 | AC | 80 ms
8,280 KB |
testcase_14 | AC | 697 ms
10,032 KB |
testcase_15 | AC | 113 ms
8,488 KB |
testcase_16 | AC | 41 ms
8,268 KB |
testcase_17 | AC | 887 ms
10,060 KB |
testcase_18 | AC | 954 ms
10,152 KB |
testcase_19 | AC | 276 ms
10,040 KB |
testcase_20 | AC | 289 ms
9,660 KB |
testcase_21 | AC | 117 ms
8,844 KB |
testcase_22 | RE | - |
testcase_23 | AC | 18 ms
7,848 KB |
ソースコード
ab=[list(map(int,input().split())) for i in range(int(input()))] xy=[list(map(int,input().split()))+[0,i+1] for i in range(int(input()))] #print(ab) #print(xy) for w in ab: for v in xy: if w[0]>=v[0] and w[1]<=v[1]: v[2]+=1 mv=max([v[2] for v in xy]) if mv==0: print(0) exit() xy.sort(key=lambda x:x[2],reverse=True) counter=0 while True: if xy[counter][2]==mv: print(xy[counter][3]) counter+=1 else: break