結果
問題 | No.5010 Better Mo's Algorithm is Needed!! (Unweighted) |
ユーザー | titia |
提出日時 | 2022-12-17 02:34:00 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 1,018 ms / 5,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 821 ms |
実行使用メモリ | 51,832 KB |
スコア | 139,175,831 |
最終ジャッジ日時 | 2022-12-17 02:36:46 |
合計ジャッジ時間 | 164,184 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 981 ms
51,608 KB |
testcase_01 | AC | 984 ms
51,740 KB |
testcase_02 | AC | 990 ms
51,652 KB |
testcase_03 | AC | 1,009 ms
51,732 KB |
testcase_04 | AC | 982 ms
51,660 KB |
testcase_05 | AC | 999 ms
51,716 KB |
testcase_06 | AC | 1,005 ms
51,688 KB |
testcase_07 | AC | 975 ms
51,740 KB |
testcase_08 | AC | 993 ms
51,532 KB |
testcase_09 | AC | 964 ms
51,724 KB |
testcase_10 | AC | 974 ms
51,572 KB |
testcase_11 | AC | 972 ms
51,652 KB |
testcase_12 | AC | 976 ms
51,672 KB |
testcase_13 | AC | 996 ms
51,684 KB |
testcase_14 | AC | 968 ms
51,748 KB |
testcase_15 | AC | 1,011 ms
51,768 KB |
testcase_16 | AC | 984 ms
51,700 KB |
testcase_17 | AC | 971 ms
51,656 KB |
testcase_18 | AC | 968 ms
51,784 KB |
testcase_19 | AC | 949 ms
51,736 KB |
testcase_20 | AC | 978 ms
51,660 KB |
testcase_21 | AC | 1,004 ms
51,600 KB |
testcase_22 | AC | 967 ms
51,620 KB |
testcase_23 | AC | 976 ms
51,684 KB |
testcase_24 | AC | 961 ms
51,764 KB |
testcase_25 | AC | 1,018 ms
51,656 KB |
testcase_26 | AC | 1,011 ms
51,644 KB |
testcase_27 | AC | 949 ms
51,832 KB |
testcase_28 | AC | 966 ms
51,580 KB |
testcase_29 | AC | 977 ms
51,764 KB |
testcase_30 | AC | 960 ms
51,732 KB |
testcase_31 | AC | 987 ms
51,616 KB |
testcase_32 | AC | 970 ms
51,684 KB |
testcase_33 | AC | 975 ms
51,676 KB |
testcase_34 | AC | 978 ms
51,572 KB |
testcase_35 | AC | 972 ms
51,644 KB |
testcase_36 | AC | 973 ms
51,564 KB |
testcase_37 | AC | 1,012 ms
51,652 KB |
testcase_38 | AC | 963 ms
51,740 KB |
testcase_39 | AC | 964 ms
51,716 KB |
testcase_40 | AC | 1,004 ms
51,572 KB |
testcase_41 | AC | 973 ms
51,688 KB |
testcase_42 | AC | 978 ms
51,740 KB |
testcase_43 | AC | 967 ms
51,572 KB |
testcase_44 | AC | 930 ms
51,580 KB |
testcase_45 | AC | 981 ms
51,724 KB |
testcase_46 | AC | 1,015 ms
51,736 KB |
testcase_47 | AC | 998 ms
51,648 KB |
testcase_48 | AC | 1,011 ms
51,524 KB |
testcase_49 | AC | 1,004 ms
51,740 KB |
testcase_50 | AC | 993 ms
51,684 KB |
testcase_51 | AC | 1,001 ms
51,648 KB |
testcase_52 | AC | 994 ms
51,660 KB |
testcase_53 | AC | 976 ms
51,740 KB |
testcase_54 | AC | 948 ms
51,652 KB |
testcase_55 | AC | 988 ms
51,624 KB |
testcase_56 | AC | 987 ms
51,720 KB |
testcase_57 | AC | 1,010 ms
51,760 KB |
testcase_58 | AC | 989 ms
51,524 KB |
testcase_59 | AC | 1,012 ms
51,628 KB |
testcase_60 | AC | 1,001 ms
51,588 KB |
testcase_61 | AC | 1,009 ms
51,556 KB |
testcase_62 | AC | 1,008 ms
51,736 KB |
testcase_63 | AC | 1,002 ms
51,648 KB |
testcase_64 | AC | 972 ms
51,676 KB |
testcase_65 | AC | 964 ms
51,764 KB |
testcase_66 | AC | 956 ms
51,740 KB |
testcase_67 | AC | 983 ms
51,676 KB |
testcase_68 | AC | 981 ms
51,652 KB |
testcase_69 | AC | 989 ms
51,768 KB |
testcase_70 | AC | 1,011 ms
51,648 KB |
testcase_71 | AC | 998 ms
51,672 KB |
testcase_72 | AC | 994 ms
51,700 KB |
testcase_73 | AC | 1,003 ms
51,664 KB |
testcase_74 | AC | 965 ms
51,664 KB |
testcase_75 | AC | 978 ms
51,624 KB |
testcase_76 | AC | 976 ms
51,732 KB |
testcase_77 | AC | 970 ms
51,688 KB |
testcase_78 | AC | 973 ms
51,580 KB |
testcase_79 | AC | 980 ms
51,536 KB |
testcase_80 | AC | 989 ms
51,636 KB |
testcase_81 | AC | 1,008 ms
51,764 KB |
testcase_82 | AC | 1,010 ms
51,508 KB |
testcase_83 | AC | 986 ms
51,652 KB |
testcase_84 | AC | 987 ms
51,704 KB |
testcase_85 | AC | 991 ms
51,576 KB |
testcase_86 | AC | 966 ms
51,576 KB |
testcase_87 | AC | 955 ms
51,692 KB |
testcase_88 | AC | 1,014 ms
51,620 KB |
testcase_89 | AC | 1,012 ms
51,652 KB |
testcase_90 | AC | 1,009 ms
51,680 KB |
testcase_91 | AC | 1,007 ms
51,780 KB |
testcase_92 | AC | 1,004 ms
51,664 KB |
testcase_93 | AC | 994 ms
51,744 KB |
testcase_94 | AC | 990 ms
51,620 KB |
testcase_95 | AC | 961 ms
51,688 KB |
testcase_96 | AC | 977 ms
51,740 KB |
testcase_97 | AC | 970 ms
51,644 KB |
testcase_98 | AC | 987 ms
51,636 KB |
testcase_99 | AC | 1,004 ms
51,644 KB |
testcase_100 | AC | 986 ms
51,628 KB |
testcase_101 | AC | 994 ms
51,664 KB |
testcase_102 | AC | 993 ms
51,660 KB |
testcase_103 | AC | 1,004 ms
51,732 KB |
testcase_104 | AC | 1,016 ms
51,664 KB |
testcase_105 | AC | 974 ms
51,576 KB |
testcase_106 | AC | 965 ms
51,712 KB |
testcase_107 | AC | 965 ms
51,556 KB |
testcase_108 | AC | 993 ms
51,664 KB |
testcase_109 | AC | 1,002 ms
51,644 KB |
testcase_110 | AC | 986 ms
51,748 KB |
testcase_111 | AC | 972 ms
51,668 KB |
testcase_112 | AC | 980 ms
51,552 KB |
testcase_113 | AC | 987 ms
51,748 KB |
testcase_114 | AC | 996 ms
51,676 KB |
testcase_115 | AC | 961 ms
51,620 KB |
testcase_116 | AC | 957 ms
51,740 KB |
testcase_117 | AC | 952 ms
51,688 KB |
testcase_118 | AC | 1,010 ms
51,620 KB |
testcase_119 | AC | 959 ms
51,556 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)