{“name”:“Local: P10789”,“url”:“c:\Users\qwqer233\Desktop\OI\P10789.cpp”,“tests”:[{“id”:1741079658752,“input”:“0 1\n5\n1 1 1 0\n2 1 1 0\n2 1 2 1\n4 2 3 0”,“output”:“3 3 2 4”},{“id”:1741080011853,“input”:“0 1\n6\n1 1 1 0\n2 1 2 0\n3 1 3 2\n4 1 4 1\n5 1 5 3”,“output”:“5 9 3 21 6”},{“id”:1741080038951,“input”:“0 1\n6\n1 1 1 0\n2 1 2 0\n2 1 2 0\n3 1 2 0\n3 2 3 2”,“output”:“4 10 5 14 1”}],“interactive”:false,“memoryLimit”:1024,“timeLimit”:3000,“srcPath”:“c:\Users\qwqer233\Desktop\OI\P10789.cpp”,“group”:“local”,“local”:true}