Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
You are given an equation A * X + B * Y = C , A , B , C are positive integer coefficients, X and Y are variables which can have positive integer values only. Output the number of solutions of this equation and the solutions themselves. The only line of input contains integers A , B and C ( 1 ≤ A , B , C ≤ 1000 ), separated with spaces. In the first line of the output print the number of the solutions N . In the next N lines print the solutions, formatted as " XY ", sorted in ascending order of X , one solution per line. |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
10507807 |
mondayguy Akzhol |
C |
March 28, 2015, 7:16 p.m. |
OK |
Picat |
TESTS |
26 |
15 |
0 |
|
1700 |
|
10507068 |
slavyan6363 MatveyKr |
C |
March 28, 2015, 6:47 p.m. |
OK |
Picat |
TESTS |
26 |
15 |
0 |
|
1700 |
|
10507687 |
artem.wide technic93 |
C |
March 28, 2015, 7:11 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10507437 |
chiselko6 wanfranck |
C |
March 28, 2015, 7:02 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10507412 |
SkyterX birne |
C |
March 28, 2015, 7:01 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10507257 |
Ategro savask |
C |
March 28, 2015, 6:54 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10506767 |
nextgen strelok1918 |
C |
March 28, 2015, 6:36 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10506624 |
WARenie Impy |
C |
March 28, 2015, 6:32 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10506528 |
geranazavr555 boray |
C |
March 28, 2015, 6:29 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
|
10506519 |
MaxPylypovych |
C |
March 28, 2015, 6:28 p.m. |
OK |
Picat |
TESTS |
26 |
30 |
0 |
|
1700 |
remove filters
Back to search problems