Playrix Codescapes Cup (Codeforces Round #413, rated, Div. 1 + Div. 2), problem: (B) T-shirt buying Solution In C/C++

By |2017-07-24T13:22:54+00:00July 24th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , , , |

from heapq import heappush, heappop n = input() p = map(int, raw_input().split()) a = map(int, raw_input().split()) b = map(int, raw_input().split()) m = input() c = map(int, raw_input().split()) colors = {} for i in range(1, 4): colors[i] = [] for i in range(n): heappush(colors[a[i]], (p[i], [...]