結果
問題 | No.5011 Better Mo's Algorithm is Needed!! (Weighted) |
ユーザー | titia |
提出日時 | 2022-12-17 02:34:37 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 1,045 ms / 5,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 494 ms |
実行使用メモリ | 51,840 KB |
スコア | 313,109,518 |
最終ジャッジ日時 | 2022-12-17 02:37:22 |
合計ジャッジ時間 | 164,209 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge16 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 941 ms
51,736 KB |
testcase_01 | AC | 967 ms
51,612 KB |
testcase_02 | AC | 980 ms
51,676 KB |
testcase_03 | AC | 979 ms
51,760 KB |
testcase_04 | AC | 980 ms
51,720 KB |
testcase_05 | AC | 969 ms
51,808 KB |
testcase_06 | AC | 956 ms
51,652 KB |
testcase_07 | AC | 945 ms
51,580 KB |
testcase_08 | AC | 955 ms
51,544 KB |
testcase_09 | AC | 974 ms
51,568 KB |
testcase_10 | AC | 982 ms
51,640 KB |
testcase_11 | AC | 968 ms
51,704 KB |
testcase_12 | AC | 965 ms
51,584 KB |
testcase_13 | AC | 966 ms
51,628 KB |
testcase_14 | AC | 993 ms
51,652 KB |
testcase_15 | AC | 990 ms
51,692 KB |
testcase_16 | AC | 944 ms
51,680 KB |
testcase_17 | AC | 937 ms
51,724 KB |
testcase_18 | AC | 943 ms
51,752 KB |
testcase_19 | AC | 971 ms
51,692 KB |
testcase_20 | AC | 980 ms
51,696 KB |
testcase_21 | AC | 977 ms
51,676 KB |
testcase_22 | AC | 964 ms
51,608 KB |
testcase_23 | AC | 951 ms
51,760 KB |
testcase_24 | AC | 971 ms
51,584 KB |
testcase_25 | AC | 963 ms
51,488 KB |
testcase_26 | AC | 969 ms
51,760 KB |
testcase_27 | AC | 957 ms
51,680 KB |
testcase_28 | AC | 950 ms
51,724 KB |
testcase_29 | AC | 962 ms
51,840 KB |
testcase_30 | AC | 960 ms
51,744 KB |
testcase_31 | AC | 974 ms
51,524 KB |
testcase_32 | AC | 972 ms
51,732 KB |
testcase_33 | AC | 961 ms
51,600 KB |
testcase_34 | AC | 963 ms
51,576 KB |
testcase_35 | AC | 997 ms
51,540 KB |
testcase_36 | AC | 957 ms
51,584 KB |
testcase_37 | AC | 951 ms
51,556 KB |
testcase_38 | AC | 988 ms
51,736 KB |
testcase_39 | AC | 935 ms
51,712 KB |
testcase_40 | AC | 966 ms
51,596 KB |
testcase_41 | AC | 978 ms
51,720 KB |
testcase_42 | AC | 956 ms
51,780 KB |
testcase_43 | AC | 974 ms
51,552 KB |
testcase_44 | AC | 933 ms
51,572 KB |
testcase_45 | AC | 963 ms
51,756 KB |
testcase_46 | AC | 996 ms
51,508 KB |
testcase_47 | AC | 942 ms
51,712 KB |
testcase_48 | AC | 954 ms
51,576 KB |
testcase_49 | AC | 986 ms
51,708 KB |
testcase_50 | AC | 955 ms
51,608 KB |
testcase_51 | AC | 964 ms
51,664 KB |
testcase_52 | AC | 1,011 ms
51,636 KB |
testcase_53 | AC | 957 ms
51,672 KB |
testcase_54 | AC | 985 ms
51,664 KB |
testcase_55 | AC | 958 ms
51,668 KB |
testcase_56 | AC | 972 ms
51,756 KB |
testcase_57 | AC | 992 ms
51,820 KB |
testcase_58 | AC | 963 ms
51,748 KB |
testcase_59 | AC | 942 ms
51,624 KB |
testcase_60 | AC | 1,001 ms
51,652 KB |
testcase_61 | AC | 993 ms
51,636 KB |
testcase_62 | AC | 962 ms
51,644 KB |
testcase_63 | AC | 992 ms
51,676 KB |
testcase_64 | AC | 961 ms
51,604 KB |
testcase_65 | AC | 953 ms
51,824 KB |
testcase_66 | AC | 1,001 ms
51,660 KB |
testcase_67 | AC | 949 ms
51,532 KB |
testcase_68 | AC | 967 ms
51,736 KB |
testcase_69 | AC | 992 ms
51,672 KB |
testcase_70 | AC | 957 ms
51,648 KB |
testcase_71 | AC | 967 ms
51,660 KB |
testcase_72 | AC | 1,003 ms
51,712 KB |
testcase_73 | AC | 968 ms
51,660 KB |
testcase_74 | AC | 990 ms
51,716 KB |
testcase_75 | AC | 1,006 ms
51,720 KB |
testcase_76 | AC | 963 ms
51,692 KB |
testcase_77 | AC | 994 ms
51,808 KB |
testcase_78 | AC | 967 ms
51,608 KB |
testcase_79 | AC | 968 ms
51,708 KB |
testcase_80 | AC | 994 ms
51,640 KB |
testcase_81 | AC | 964 ms
51,712 KB |
testcase_82 | AC | 988 ms
51,636 KB |
testcase_83 | AC | 996 ms
51,620 KB |
testcase_84 | AC | 985 ms
51,636 KB |
testcase_85 | AC | 982 ms
51,664 KB |
testcase_86 | AC | 989 ms
51,672 KB |
testcase_87 | AC | 966 ms
51,804 KB |
testcase_88 | AC | 987 ms
51,596 KB |
testcase_89 | AC | 1,027 ms
51,572 KB |
testcase_90 | AC | 999 ms
51,536 KB |
testcase_91 | AC | 979 ms
51,484 KB |
testcase_92 | AC | 961 ms
51,548 KB |
testcase_93 | AC | 978 ms
51,552 KB |
testcase_94 | AC | 1,007 ms
51,504 KB |
testcase_95 | AC | 972 ms
51,664 KB |
testcase_96 | AC | 975 ms
51,576 KB |
testcase_97 | AC | 985 ms
51,616 KB |
testcase_98 | AC | 970 ms
51,520 KB |
testcase_99 | AC | 986 ms
51,728 KB |
testcase_100 | AC | 994 ms
51,660 KB |
testcase_101 | AC | 984 ms
51,680 KB |
testcase_102 | AC | 1,017 ms
51,612 KB |
testcase_103 | AC | 980 ms
51,712 KB |
testcase_104 | AC | 959 ms
51,692 KB |
testcase_105 | AC | 997 ms
51,564 KB |
testcase_106 | AC | 999 ms
51,512 KB |
testcase_107 | AC | 967 ms
51,660 KB |
testcase_108 | AC | 1,018 ms
51,660 KB |
testcase_109 | AC | 1,027 ms
51,512 KB |
testcase_110 | AC | 974 ms
51,616 KB |
testcase_111 | AC | 1,003 ms
51,716 KB |
testcase_112 | AC | 984 ms
51,500 KB |
testcase_113 | AC | 968 ms
51,612 KB |
testcase_114 | AC | 1,045 ms
51,600 KB |
testcase_115 | AC | 974 ms
51,616 KB |
testcase_116 | AC | 1,027 ms
51,608 KB |
testcase_117 | AC | 1,013 ms
51,700 KB |
testcase_118 | AC | 966 ms
51,740 KB |
testcase_119 | AC | 979 ms
51,520 KB |
ソースコード
import sys input = sys.stdin.readline from operator import itemgetter N,Q,WT,ST=map(int,input().split()) W=list(map(int,input().split())) LR=[list(map(int,input().split()))+[i+1] for i in range(Q)] LR.sort(key=itemgetter(1)) LR.sort(key=itemgetter(0)) ANS=[LR[i][2] for i in range(Q)] print(*ANS)