Anyone help me with constant factor of counting 3-cirlcles and 4-circles :(

Правка en1, от zhiyangfan, 2022-01-15 04:40:02

`I am trying to solve https://codeforces.net/gym/103470/problem/K.

My solution is similar to the official tutorial(If you don't understand Chineses, it's ok! I write annotation in the code),but I'm troubled with constant factor(maybe not? If my time complexity is not good enough, please point out. qwq ), keeping getting TLE on test 38. :(

I wonder if someone can help me with it, pointing out something wrong with my implementations. qwq

My code.

Теги graphs, implementations

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский zhiyangfan 2022-01-15 04:40:02 621 Initial revision (published)