Показать все ветки Спрятать все ветки Показать все сообщения Спрятать все сообщения |
HINT | Dhaval Rathod | 1742. Тим-билдинг | 15 мар 2024 22:33 | 2 |
HINT Dhaval Rathod 26 фев 2022 23:07 first make a SCC , u will get max iterate through scc graph root nodes and in dfs the node size is great than 2 increment answer u will get min is great than 2 no, great than 1! I got AC using it |
test 4 | Enots: Revolution | 1742. Тим-билдинг | 1 янв 2022 12:08 | 5 |
test 4 Enots: Revolution 24 янв 2010 08:52 What is test nubmer 4? Anybody know? Re: test 4 Zayakin Andrey[PermSU] 24 янв 2010 13:23 maybe 6 1 1 1 1 1 1 My program can`t pass this test and i have WA4. It's like this: 15 2 5 6 3 8 2 3 6 10 10 12 13 14 15 11 The right answer is: 5 8 Edited by author 24.01.2010 23:08 No the right answer is 3 8 |
WA8 need help | Harshita Sharma | 1742. Тим-билдинг | 7 ноя 2021 17:49 | 1 |
I keep getting WA8 but I don't have any test cases that may go wrong. Please help. |
How to find minimum teams using SCC? | ajay jadhav | 1742. Тим-билдинг | 14 май 2020 20:45 | 1 |
I got AC for maximum temas using Kosaraju. and for minimum I started with nodes with no incoming edge and searched until it hit previously found node (cycle) this is 1 team. For disconnected cycles, run dfs in similar fashion incrementing teams by 1. |
Hint | Ishmeet Singh Saggu | 1742. Тим-билдинг | 14 май 2020 19:47 | 2 |
Hint Ishmeet Singh Saggu 28 апр 2020 22:51 This question requires knowledge of Strongly Connected Component. If you don't know read about it. Good Luck !!! for max = number of strongly connected components. for min = ? |
how to get ac in 0.031 sec? | muhammad | 1742. Тим-билдинг | 6 дек 2016 15:06 | 4 |
i just found no of storngly connected components and got ac in 0.562 sec after eliminating stack overflow with pragma. how to make it so fast as 0.031 sec and so little memory? You don't have to find strongly connected components. You can just sort vertices topologically and here you will find an answer :) But for topological sorting, graph must be DAG(directed acyclic)? i just keep getting stack overflow,could you please tell me how to eliminate it? |
TEST for WA9 | lallala | 1742. Тим-билдинг | 9 фев 2016 01:03 | 1 |
|
to get AC you might want to use this formulas | esbybb | 1742. Тим-билдинг | 26 сен 2015 18:01 | 1 |
min = leaves + disconnectedCycles max = acyclicNodes + disconnectedCycles + connectedCycles |
Some tests for #WA7 and #WA8 | Pinky | 1742. Тим-билдинг | 11 апр 2015 21:17 | 1 |
May be this tests can help you, my friends: 7 4 4 4 5 6 7 5 Answer: 3 5 5 4 4 4 5 5 Answer: 3 5 10 2 3 4 1 1 2 3 4 7 9 Answer: 4 7 Good luck! Edited by author 11.04.2015 21:18 |
#pragma is useful ! | 吕蒙子明 | 1742. Тим-билдинг | 4 окт 2012 13:10 | 1 |
|
WA 2 | minib00mpola | 1742. Тим-билдинг | 4 окт 2012 13:09 | 2 |
WA 2 minib00mpola 12 дек 2011 21:08 Does anyone know what second test might be like? I pass all tests posted here, but can't solve this. Thanks. |
Stack overflow? | MOPDOBOPOT (USU) | 1742. Тим-билдинг | 31 авг 2012 16:51 | 1 |
If you have problems with size of program stack just read FAQ and use special directives :) In pascal it is {$M 16777216} |
tricky problem | scythe | 1742. Тим-билдинг | 6 мар 2012 04:34 | 1 |
This was one of the hardest problem i implemented ( conceptually was simple ), adhoc solution, corner cases ( i had to rewrite the solution a couple of times ). Good luck with it. |
tricky problem | scythe | 1742. Тим-билдинг | 6 мар 2012 04:34 | 1 |
This was one of the hardest problem i implemented ( conceptually was simple ), adhoc solution, corner cases ( i had to rewrite the solution a couple of times ). Good luck with it. Edited by author 06.03.2012 04:35 |
Need help; keep getting WA 7 | vlyubin | 1742. Тим-билдинг | 25 янв 2012 10:02 | 1 |
Hi! I have tested my program for about 30 min. and still cannot find what is wrong with it. I keep getting WA 7. Can you please give a hint of what may be a reason or point some tricky part that I missed? Thanks ! |
hint: use dot (+) | ASK | 1742. Тим-билдинг | 14 ноя 2010 02:34 | 1 |
Use dot from http://www.graphviz.org/ to test with random graphs, e.g., 21 1 2 1 2 1 2 5 3 4 3 4 5 6 5 4 3 5 1 2 7 20 #13 21 |
WA7 | Paval Marius | 1742. Тим-билдинг | 25 окт 2010 18:01 | 1 |
WA7 Paval Marius 25 окт 2010 18:01 Can I have a sample input that would pass test 7? thanks |
WA5 | fuch_prog_er | 1742. Тим-билдинг | 6 фев 2010 21:35 | 1 |
WA5 fuch_prog_er 6 фев 2010 21:35 Hello, I've WA5 can you give me some tests,please? |