Mahmoud..Adel's blog

By Mahmoud..Adel, history, 6 weeks ago, In English,

I was wondering why (on educational rounds) they only post the overall winners while winners from both division are posted separately on rated-for-div 2-only codeforces rounds.

Another question is: At first, Educational rounds were unrated for all divisions, now it is rated for div 2 only, are they planning to do rated-for-div 1 contests in the future ?

Read more »

 
 
 
 
  • Vote: I like it  
  • -9
  • Vote: I do not like it  

By Mahmoud..Adel, history, 6 months ago, In English,

These are two solutions for uva 784 — maze exploration problem :

https://paste.ubuntu.com/26433633/

https://paste.ubuntu.com/26433634/

the first one gets accepted but the second one does not although they are almost identical ? can anyone help with the explanation

Read more »

 
 
 
 

By Mahmoud..Adel, history, 7 months ago, In English,

I was trying to solve 150A and I submitted a solution where I used a variable ( i ) in a loop :

for(int i=2; i*i<=n; i++)
    {
        while(n%i == 0)
        {
            n /= i;
            p[k++] = i;
        }
    }

and it got TLE in test 7

submission : 32983991

and when I changed the datatype of variable ( i ) to long long it got accepted.

submission : 32984272

can anyone help me with the reason...?

Read more »

 
 
 
 
  • Vote: I like it  
  • +1
  • Vote: I do not like it  

By Mahmoud..Adel, history, 8 months ago, In English,

An inquiry… Which is more effective? Digging deeper in each knowledge branch, as DP or graph theory, to be up to bar in it or working on diverse topics on the same time?
Other workable techniques are welcomed :D

Read more »

 
 
 
 
  • Vote: I like it  
  • +28
  • Vote: I do not like it