user-profile-img

Ayman Shalaby

@aymanshalaby539• Apr 7, 2023open-state

Problem - C - Codeforces

You are given a permutation aaa of size nnn and you should perform nnn operations on i

An inversion in an array aaa is a pair of indices (i,j)(i,j)(i, j) such that i>ji>ji > j and ai<ajai<aja_{i} < a_{j}.

-

Problem - C - Codeforcescodeforces.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Mar 16, 2023open-state

مش اوكيه ديس تراك مروان موسى على ابيوسف - YouTube

snapshot

0:45

-

مش اوكيه ديس تراك مروان موسى على ابيوسف - YouTubewww.youtube.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Mar 12, 2023open-state

Basic Math & Number Theory: Part 1 - YouTube

snapshot

1:38:00

-

Basic Math & Number Theory: Part 1 - YouTubewww.youtube.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Mar 9, 2023open-state

B. Settlement of Guinea Pigs - CODEFORCES ROUND 857 (Code + Explanation in details) - YouTube

snapshot

0:07

-

B. Settlement of Guinea Pigs - CODEFORCES ROUND 857 (Code + Explanation in details) - YouTubewww.youtube.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Feb 25, 2023open-state

Problem - H - Codeforces

The i-th element of p will be denoted as p

For all pairs of distinct integers i, j between 1 and n

he wrote the number ai, j = min(pi, pj)

-

Problem - H - Codeforcescodeforces.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Feb 25, 2023open-state

H. Guess the Permutation - YouTube

snapshot

22:25

-

H. Guess the Permutation - YouTubewww.youtube.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Feb 23, 2023open-state

Problem - B - Codeforces

Petya's got n non-transparent glasses

standing in a row

First Petya puts a marble under the glass in position s

-

Problem - B - Codeforcescodeforces.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Feb 20, 2023open-state

First Bad Version - LeetCode

and you want to find out the first bad one,

-

First Bad Version - LeetCodeleetcode.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Feb 19, 2023open-state

Problem - 1784A - Codeforces

you are fighting against nnn monsters

Monster number iii has aiaia_i health points

monster is alive while it has at least 111 health point.

-

Problem - 1784A - Codeforcescodeforces.com

user-profile-img

Ayman Shalaby

@aymanshalaby539• Feb 19, 2023open-state

Problem - 1702D - Codeforces

The string www and the integer p

the price of the string abca is 1+2+3+1=71+2+3+1=71+2+3+1=7

Remove the minimal number of letters from www so that its price becomes less than or equal to ppp and print the resulting string

-

Problem - 1702D - Codeforcescodeforces.com