zeyad.alaaeldin2016's blog

By zeyad.alaaeldin2016, history, 4 years ago, In English

https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=734

https://ideone.com/vgdu74

so i was trying to practice on DSU but idk why i get runtime error.. stuck on problem for like 2 days .. idk where is the bug can you help me ?

Full text and comments »

By zeyad.alaaeldin2016, history, 4 years ago, In English

https://codeforces.net/gym/101992/problem/H

I was solving this problem by BFS from start node and checking what is the max edge while moving to level K.

https://ideone.com/IcEBeh

I dont know why codeforces sample gives me a lot of zero. while on my codeblocks give me 104 and 7 ... anyone know where is the problem ?

Full text and comments »