結果
問題 | No.647 明太子 |
ユーザー | ssmkzk |
提出日時 | 2018-07-26 18:33:20 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 10,960 KB |
実行使用メモリ | 9,036 KB |
最終ジャッジ日時 | 2023-09-13 18:45:50 |
合計ジャッジ時間 | 13,726 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,968 KB |
testcase_01 | AC | 19 ms
7,956 KB |
testcase_02 | AC | 15 ms
7,812 KB |
testcase_03 | AC | 17 ms
7,828 KB |
testcase_04 | AC | 17 ms
7,840 KB |
testcase_05 | AC | 16 ms
7,816 KB |
testcase_06 | AC | 16 ms
7,904 KB |
testcase_07 | AC | 19 ms
7,816 KB |
testcase_08 | AC | 18 ms
7,880 KB |
testcase_09 | AC | 125 ms
7,992 KB |
testcase_10 | AC | 249 ms
7,900 KB |
testcase_11 | AC | 62 ms
7,820 KB |
testcase_12 | AC | 187 ms
7,792 KB |
testcase_13 | AC | 442 ms
8,356 KB |
testcase_14 | TLE | - |
testcase_15 | AC | 707 ms
8,296 KB |
testcase_16 | AC | 182 ms
7,812 KB |
testcase_17 | TLE | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
ソースコード
N = int(input()) l = [input() for i in range(N)] M = int(input()) l1 = [input() for i in range(M)] ans = [0 for i in range(M)] for i in l: A, B = map(int, i.split()) for j, ment in enumerate(l1): X, Y = map(int, ment.split()) if X <= A and Y >= B: ans[j] += 1 K = max(ans) if K == 0: print(0) else: for i in range(M): if K == ans[i]: print(i + 1)