Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat duels/857

Duel #857

A 1v1 battle on the problem «Inside the rectangle?».

@fuzaylkholmurodov · Elo: 1244 (+17) · Pupil
1st place · 7 min 31 s
Tests: 20/20 (100%)
BATTLE OVER Winner: Fuzayl Kholmurodov Solved in 7 min 31 s
@faridunalimqulov · Pupil · Elo: 1223 (-17)
Not solved (2 attempts)
Tests: 4/20 (20%)

Winner: Fuzayl Kholmurodov

The winner was the first to solve it correctly — in 7 min 31 s.

Boolean-27 Boolean Easy 1000 ms 64 MB

Inside the rectangle?

A rectangle with sides parallel to the coordinate axes is given on the plane: its lower-left corner is and its upper-right corner is . A point is also given. Check whether the statement is true: “the point lies inside the rectangle or on its border”.

A rectangle and a point inside it

Sample tests

Input #1
0 0 4 3
2 1
Output #1
1
Input #2
0 0 4 3
5 1
Output #2
0

Battle results compared

1v1 report
Fuzayl Kholmurodov
@fuzaylkholmurodov
Winner (1st place)
Firdavs Alimqulov
@faridunalimqulov
Not solved
07:31 Solve time —
3 Submissions 2
C++ (GCC 15) Language C++ (GCC 15)
3 ms Run time —

Submission timeline (5)

All submissions
C++ (GCC 15) · 3 ms · 3.9 MB
Wrong answer (test 5)
C++ (GCC 15) · 2 ms · 3.9 MB
Wrong answer (test 2)
C++ (GCC 15) · 3 ms · 3.8 MB
Wrong answer (test 2)
C++ (GCC 15) · 5 ms · 3.9 MB
Wrong answer (test 2)
C++ (GCC 15) · 2 ms · 3.8 MB

Fuzayl Kholmurodov won

The 1v1 battle ended after a hard fight.

F Fuzayl Kholmurodov
Solution: 7 min 31 s
Rating: 1244 (+17)
F Firdavs Alimqulov
Solution: Not solved
Rating: 1223 (-17)
Start a new duel