結果
問題 | No.2596 Christmas Eve (Heuristic ver.) |
ユーザー | titia |
提出日時 | 2023-12-24 03:11:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 59 ms / 1,224 ms |
コード長 | 720 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 66,488 KB |
スコア | 2,381,452 |
最終ジャッジ日時 | 2023-12-24 03:11:57 |
合計ジャッジ時間 | 16,929 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
64,280 KB |
testcase_01 | AC | 53 ms
66,484 KB |
testcase_02 | AC | 59 ms
66,488 KB |
testcase_03 | AC | 50 ms
64,280 KB |
testcase_04 | AC | 50 ms
64,280 KB |
testcase_05 | AC | 57 ms
66,488 KB |
testcase_06 | AC | 48 ms
64,280 KB |
testcase_07 | AC | 54 ms
66,488 KB |
testcase_08 | AC | 54 ms
66,484 KB |
testcase_09 | AC | 50 ms
64,280 KB |
testcase_10 | AC | 53 ms
66,488 KB |
testcase_11 | AC | 49 ms
64,280 KB |
testcase_12 | AC | 53 ms
66,484 KB |
testcase_13 | AC | 54 ms
66,484 KB |
testcase_14 | AC | 50 ms
64,280 KB |
testcase_15 | AC | 54 ms
64,280 KB |
testcase_16 | AC | 55 ms
66,484 KB |
testcase_17 | AC | 54 ms
66,484 KB |
testcase_18 | AC | 54 ms
66,488 KB |
testcase_19 | AC | 49 ms
64,280 KB |
testcase_20 | AC | 49 ms
64,280 KB |
testcase_21 | AC | 53 ms
66,488 KB |
testcase_22 | AC | 49 ms
64,280 KB |
testcase_23 | AC | 53 ms
66,484 KB |
testcase_24 | AC | 50 ms
64,280 KB |
testcase_25 | AC | 58 ms
66,484 KB |
testcase_26 | AC | 55 ms
66,488 KB |
testcase_27 | AC | 51 ms
64,280 KB |
testcase_28 | AC | 54 ms
66,484 KB |
testcase_29 | AC | 50 ms
64,280 KB |
testcase_30 | AC | 54 ms
66,488 KB |
testcase_31 | AC | 48 ms
64,280 KB |
testcase_32 | AC | 54 ms
66,484 KB |
testcase_33 | AC | 50 ms
64,280 KB |
testcase_34 | AC | 50 ms
64,280 KB |
testcase_35 | AC | 50 ms
64,280 KB |
testcase_36 | AC | 48 ms
64,280 KB |
testcase_37 | AC | 57 ms
66,484 KB |
testcase_38 | AC | 51 ms
64,280 KB |
testcase_39 | AC | 53 ms
66,484 KB |
testcase_40 | AC | 54 ms
66,484 KB |
testcase_41 | AC | 52 ms
66,488 KB |
testcase_42 | AC | 55 ms
66,484 KB |
testcase_43 | AC | 49 ms
64,280 KB |
testcase_44 | AC | 58 ms
66,476 KB |
testcase_45 | AC | 52 ms
64,280 KB |
testcase_46 | AC | 54 ms
66,484 KB |
testcase_47 | AC | 53 ms
64,280 KB |
testcase_48 | AC | 54 ms
66,484 KB |
testcase_49 | AC | 54 ms
66,484 KB |
testcase_50 | AC | 50 ms
64,280 KB |
testcase_51 | AC | 54 ms
66,484 KB |
testcase_52 | AC | 53 ms
66,488 KB |
testcase_53 | AC | 52 ms
66,484 KB |
testcase_54 | AC | 59 ms
66,484 KB |
testcase_55 | AC | 53 ms
66,488 KB |
testcase_56 | AC | 54 ms
66,484 KB |
testcase_57 | AC | 54 ms
66,484 KB |
testcase_58 | AC | 54 ms
66,488 KB |
testcase_59 | AC | 49 ms
64,280 KB |
testcase_60 | AC | 53 ms
66,484 KB |
testcase_61 | AC | 53 ms
66,484 KB |
testcase_62 | AC | 50 ms
64,280 KB |
testcase_63 | AC | 57 ms
66,484 KB |
testcase_64 | AC | 54 ms
66,484 KB |
testcase_65 | AC | 49 ms
64,280 KB |
testcase_66 | AC | 53 ms
66,484 KB |
testcase_67 | AC | 50 ms
64,280 KB |
testcase_68 | AC | 54 ms
66,484 KB |
testcase_69 | AC | 54 ms
66,488 KB |
testcase_70 | AC | 49 ms
64,280 KB |
testcase_71 | AC | 49 ms
64,280 KB |
testcase_72 | AC | 55 ms
66,484 KB |
testcase_73 | AC | 54 ms
66,484 KB |
testcase_74 | AC | 50 ms
64,280 KB |
testcase_75 | AC | 51 ms
64,280 KB |
testcase_76 | AC | 53 ms
66,484 KB |
testcase_77 | AC | 54 ms
66,484 KB |
testcase_78 | AC | 50 ms
64,280 KB |
testcase_79 | AC | 55 ms
66,480 KB |
testcase_80 | AC | 58 ms
66,484 KB |
testcase_81 | AC | 50 ms
64,280 KB |
testcase_82 | AC | 54 ms
66,484 KB |
testcase_83 | AC | 54 ms
66,484 KB |
testcase_84 | AC | 54 ms
66,488 KB |
testcase_85 | AC | 48 ms
64,280 KB |
testcase_86 | AC | 49 ms
64,280 KB |
testcase_87 | AC | 53 ms
66,488 KB |
testcase_88 | AC | 54 ms
66,484 KB |
testcase_89 | AC | 53 ms
66,488 KB |
testcase_90 | AC | 49 ms
64,280 KB |
testcase_91 | AC | 54 ms
66,488 KB |
testcase_92 | AC | 52 ms
66,484 KB |
testcase_93 | AC | 55 ms
66,484 KB |
testcase_94 | AC | 54 ms
66,484 KB |
testcase_95 | AC | 50 ms
64,280 KB |
testcase_96 | AC | 57 ms
66,484 KB |
testcase_97 | AC | 53 ms
66,488 KB |
testcase_98 | AC | 54 ms
66,488 KB |
testcase_99 | AC | 54 ms
66,484 KB |
testcase_100 | AC | 54 ms
66,484 KB |
testcase_101 | AC | 54 ms
66,484 KB |
testcase_102 | AC | 54 ms
66,488 KB |
testcase_103 | AC | 50 ms
64,280 KB |
testcase_104 | AC | 54 ms
66,484 KB |
testcase_105 | AC | 53 ms
66,488 KB |
testcase_106 | AC | 54 ms
66,484 KB |
testcase_107 | AC | 53 ms
66,488 KB |
testcase_108 | AC | 53 ms
66,484 KB |
testcase_109 | AC | 50 ms
64,280 KB |
testcase_110 | AC | 50 ms
64,280 KB |
testcase_111 | AC | 50 ms
64,280 KB |
testcase_112 | AC | 58 ms
66,484 KB |
testcase_113 | AC | 48 ms
64,280 KB |
testcase_114 | AC | 54 ms
66,488 KB |
testcase_115 | AC | 54 ms
66,484 KB |
testcase_116 | AC | 54 ms
66,484 KB |
testcase_117 | AC | 53 ms
66,484 KB |
testcase_118 | AC | 53 ms
66,480 KB |
testcase_119 | AC | 55 ms
66,484 KB |
testcase_120 | AC | 55 ms
66,484 KB |
testcase_121 | AC | 54 ms
66,484 KB |
testcase_122 | AC | 55 ms
66,484 KB |
testcase_123 | AC | 49 ms
64,280 KB |
testcase_124 | AC | 54 ms
66,488 KB |
ソースコード
from operator import itemgetter N,K=map(int,input().split()) A=list(map(int,input().split())) B=list(map(int,input().split())) C=list(map(int,input().split())) D=list(map(int,input().split())) E=list(map(int,input().split())) F=list(map(int,input().split())) X=[(A[i],i) for i in range(N)] Y=[(C[i],i) for i in range(2*N)] Z=[(E[i],i) for i in range(N)] X.sort(key=itemgetter(0)) Y.sort(key=itemgetter(0)) Z.sort(key=itemgetter(0)) ANS=[] indx=0 indy=0 for i in range(K): z=Z[i][0] while X[indx][0]<=z: indx+=1 while Y[indy][0]<=X[indx][0]: indy+=1 ANS.append((indx,indy,indy+1,i)) indy+=2 indx+=1 for a,b,c,d in ANS: print(X[a][1]+1,Y[b][1]+1,Y[c][1]+1,Z[d][1]+1)