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

~/algor $ cat duels/869

Duel #869

A 1v1 battle on the problem «Prime factorization».

@anjanli · Elo: 1121 (-8) · Newbie
Not solved (1 attempts)
Tests: 0/20 (0%)
BATTLE OVER Winner: Malika Sharipova Solved in 5 min 51 s
@malikaxanim_08 · Pupil · Elo: 1331 (+8)
1st place · 5 min 51 s
Tests: 20/20 (100%)

Winner: Malika Sharipova

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

While-47 While Medium 1000 ms 64 MB

Prime factorization

A positive integer is given (). Factor it into primes: print the factors in increasing order, including repeated ones (for example, ).

Repeatedly dividing the number by its prime factors

Sample tests

Input #1
360
Output #1
2 2 2 3 3 5
Input #2
97
Output #2
97

Battle results compared

1v1 report
dilshodbek gulomov
@anjanli
Not solved
Malika Sharipova
@malikaxanim_08
Winner (1st place)
— Solve time 05:51
1 Submissions 1
C++ (GCC 15) Language C++ (GCC 15)
— Run time 4 ms

Submission timeline (2)

All submissions
C++ (GCC 15) · 4 ms · 4 MB
Runtime error (test 1)
C++ (GCC 15) · 4 ms · 3.7 MB

Malika Sharipova won

The 1v1 battle ended after a hard fight.

d dilshodbek gulomov
Solution: Not solved
Rating: 1121 (-8)
M Malika Sharipova
Solution: 5 min 51 s
Rating: 1331 (+8)
Start a new duel