#dfs and similar
CF 932B - Recursive Queries Rating: 1300 Tags: binary search, data structures, dfs and similar Model: gpt-5-3-mini Solve time: 1m 34s Verified: no (0/1 samples) Share: https://chatgpt.com/share/6a32e3b7-e7dc-83ec-a17b-6d7184217e41 Solution Problem Understanding We are given a function defined on positive integers that repeatedly transforms a number by taking its digit product and then collapsing it again in a recursive way until a single digit remains. That final digit is what we call...
CF 1320E - Treeland and Viruses Rating: 3000 Tags: data structures, dfs and similar, dp, shortest paths, trees Model: gpt-5-5 Solve time: 7m 20s Verified: no (0/1 samples) Share: https://chatgpt.com/share/6a2de8a4-e50c-83ec-a13a-1c80b9179d39 Solution Problem Understanding The process happens on a tree of cities. In each scenario, several infection sources are placed on different nodes, each source belonging to a distinct virus type and having a propagation strength. Viruses spread in rounds, and...