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

~/algor $ cat duels/882

Duel #882

A 1v1 battle on the problem «Point and line».

@anjanli · Elo: 1161 (+20) · Newbie
1st place · 5 min 40 s
Tests: 20/20 (100%)
BATTLE OVER Winner: dilshodbek gulomov Solved in 5 min 40 s
@qurbonovmurodbek · Pupil · Elo: 1212 (-20)
Not solved (1 attempts)
Tests: 0/20 (0%)

Winner: dilshodbek gulomov

The winner was the first to solve it correctly — in 5 min 40 s.

If-33 If Easy 1000 ms 64 MB

Point and line

A line and a point are given on the plane. Determine where the point is relative to the line: print yuqorida (above) if , ustida (on the line) if , pastda (below) if .

A point above the line, on it or below it

Sample tests

Input #1
1 1 1 3
Output #1
yuqorida
Input #2
1 1 2 3
Output #2
ustida

Battle results compared

1v1 report
dilshodbek gulomov
@anjanli
Winner (1st place)
Murodbek Qurbonov
@qurbonovmurodbek
Not solved
05:40 Solve time —
2 Submissions 1
C++ (GCC 15) Language C++ (GCC 15)
5 ms Run time —

Submission timeline (3)

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

dilshodbek gulomov won

The 1v1 battle ended after a hard fight.

d dilshodbek gulomov
Solution: 5 min 40 s
Rating: 1161 (+20)
M Murodbek Qurbonov
Solution: Not solved
Rating: 1212 (-20)
Start a new duel