| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 141 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
|
0
I think you didn't understand where I'm getting the k value... lemme explain it :) I'm counting the wasted triangles.. the wasted triangle forms with connected 3 edges. (1 Bob's edge and 2 Alice's edge.. or otherwise). and it store 2 of vertices which connecting bob's edge with alice's.. I take one vertex, then I'm counting how many wasted triangles with that vertex can form (triangle's vertex connecting both Alice's and Bob's edges). di contains degree of vertex. number of edges going from that vertex (also choosen that is choosen edge by Alice).. I'm multiplying it with Bob's edges starts with that vertex.. that is (n-1-di) and we get the wasted triangle's vertex number's sum... as we said every wasted triangle stores 2 of vertex with that property (connects bob's edge and Alice's), we have to divide k with 2... we get wasted triangle's number... then remove it from all possible triangle's number. ;-) |
|
+21
"wish you successful hack" it is not bad wish. It means you help someone who coded wrong to know that his/her solution wrong! If he/she didn't locked that problem he/she will resubmit it. Otherwise if he/she already locked that problem wil not wait for that problem while judging. If someone didn't hack your problem while you submitted wrong solution. You will think your solution is acceptable Hacker gain 50 more point for their goodness ;) |
|
+1
Lucky codings and hackings to everybody ;) Just Have Fun! |
|
0
thanks a lot bro :) |
|
0
Yeah I know. But I wonder about my friends. Are they will pass me or not. I'm wondering that... :D |
|
0
And in blog there was not written "Contest will be rated!" or something like this |
|
0
Is this contest will rated? I'm waiting... for 3:30 hours... |
|
0
What is it mean ACM-ICPC rules? I can't find about ACM-ICPC rules. Can you explain or give a link for me please? |
|
+3
in Div1 C we can solve it easier: let t = number of all possible triangles (n(n-1)(n-2)) / (1*2*3); we restore degree of vertex like when we scan ai and bi -> x[ai]+=1; x[bi]+=1; where 1<= i <=n let k = sum of all (di * (n-1-di)); where di = degree of i'th vertex; then k=k/2; because we count each wasted triangle twice ;) then answer is t-k :D in here you must use long long or __int64 in this solution I just removed wasted (made with bob's and alice's edges) triangles from all possible triangle |
|
0
I want to change my HANDLE. How can I do this? Thanks for help. When I'm entering to Esc>Settings>Handle there is message : "The page is temporary blocked by administrator. We are doing it because of increased load. Do not panic, we will unblock the page soon. Thank you for your understanding." and When it will unblock? Thanks for help :D |
| Name |
|---|


