Hisham_hates_graphs's blog

By Hisham_hates_graphs, history, 2 years ago, In English

Hello

Recently I want to make a graduation Project and I want to add a feature which is like what VJudge do

this feature is "to submit the solution for a problem on my website and automatically there will be an account that submit this solution on Codeforces"

I was searching in the API documentation but i didnt find something like this

anyone can tell me how to do something like this

or do I need something like access or authorization from mike

Full text and comments »

By Hisham_hates_graphs, history, 2 years ago, In English

lately I starting studying segment tree in the EDU section

there are some problem to practice that the introducer didnt solve and leave it as exercises

I tried to solve this one but unfortunately the result was (time limit exceeded)

can you help me solving this problem or tell me what is the problem in my solution

this is the problem

274684B-Cryptography

and this is my solution My Solution

Edit: Unfortunately, it seems that I cannot point to the solution and the problem because it is in the member section so I will put them as links

Full text and comments »

By Hisham_hates_graphs, history, 3 years ago, In English

suppose we have an array or vector

how could i know if there is a pattern alternating any number of times and how to find the sum of one term of the pattern in the best complexity

exp: {1,2,3,1,2,3,1,2,3} there is a pattern with sum equal 6 for the single term

Full text and comments »

By Hisham_hates_graphs, history, 4 years ago, In English

there is an interview problem i want you to help me solve if you can please suppose we have many stones each stone have a uniqe number

we arrange this stones to make shapes

example

we make a shape with 3 stones {4,8,3} and make shape with 4 stones {5,3,6,7}

note that we can use the same type of stone more than once (so you can say that we have infinite number of each type)

i want to set this data in array of integer so we can read from the array every set of stones that make a shape

no hash maps no array of strings no array of pairs just array of integers

and dont suggest to put 8 in index 4 and put 3 in index 8 and put 4 in index 3 because number 3 here will belong to just this shape and dont belong to the other one

is there anyway?

Full text and comments »

By Hisham_hates_graphs, history, 4 years ago, In English
By Hisham_hates_graphs, history, 4 years ago, In English

I dont know how didn't anyone talk about this befor me

maybe someone talk about this but i didn't see it

every div2 or div3 in codeforces if you check the scoreboard you will notice that more than 5 of the Top 10 are newbie accounts or even didn't rated before this round

i think that we all know that these are fake accounts made by experts,masters or grandmasters people

and i think that we all know that this will make bad effect on those pupils or specialists who tried there bests in these rounds in rating or in standing(i think that beeing in top 10 is very good thing that will make you happy and encourages you to do your best in the following rounds)

i hope that i'm not the only one who is annoyed from this thing and i hope the codeforces find a solution for this problem

Full text and comments »