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
B'This is an easy version of the problem. The only difference between an easy and a hard version is the constraints on a , b , c and d . You are given 4 positive integers a , b , c , d with a < c and b < d . Find any pair of numbers x and y that satisfies the following conditions: Note that required x and y may not exist. The first line of the input contains a single integer t (1 <= q t <= q 10 ), the number of test cases. The descriptions of the test cases follow. The only line of each test case contains four integers a , b , c and d ( 1 <= q a < c <= q 10^5 , 1 <= q b < d <= q 10^5 ). For each test case print a pair of numbers a < x <= q c and b < y <= q d such that x cdot y is divisible by a cdot b . If there are multiple answers, print any of them. If there is no such pair of numbers, then print -1 -1. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
176629796 |
Lontion |
E1 |
Oct. 17, 2022, 2:21 a.m. |
OK |
Delphi |
TESTS |
94 |
171 |
1945600 |
|
|
176610911 |
NenadDapic |
E1 |
Oct. 16, 2022, 7:17 p.m. |
OK |
FPC |
TESTS |
94 |
93 |
1126400 |
|
|
176609271 |
NenadDapic |
E1 |
Oct. 16, 2022, 6:58 p.m. |
OK |
FPC |
TESTS |
94 |
186 |
1024000 |
|
|
176637562 |
Ghostxxx |
E1 |
Oct. 17, 2022, 4:49 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
0 |
|
|
176633043 |
wangkerry |
E1 |
Oct. 17, 2022, 3:24 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
0 |
|
|
176631601 |
QQH |
E1 |
Oct. 17, 2022, 2:56 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
0 |
|
|
176635494 |
Sachin357 |
E1 |
Oct. 17, 2022, 4:10 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
204800 |
|
|
176628417 |
NgJaBach |
E1 |
Oct. 17, 2022, 1:48 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
307200 |
|
|
176637099 |
Invisible_Shadow |
E1 |
Oct. 17, 2022, 4:40 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
409600 |
|
|
176625560 |
A_Big_Jiong |
E1 |
Oct. 17, 2022, 12:32 a.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
1024000 |
|
|
176605205 |
abhay27x06 |
E1 |
Oct. 16, 2022, 6:17 p.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
1024000 |
|
|
176589156 |
SweetOnionOvO |
E1 |
Oct. 16, 2022, 4:45 p.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
1024000 |
|
|
176589683 |
MYNAMEISSHARIFUL |
E1 |
Oct. 16, 2022, 4:46 p.m. |
OK |
GNU C++14 |
TESTS |
94 |
15 |
1126400 |
|
|
176635936 |
qhyer |
E1 |
Oct. 17, 2022, 4:19 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
0 |
|
|
176635697 |
brownFalcon |
E1 |
Oct. 17, 2022, 4:14 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
0 |
|
|
176634124 |
1_Hypex_ |
E1 |
Oct. 17, 2022, 3:44 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
0 |
|
|
176640972 |
avishaan |
E1 |
Oct. 17, 2022, 5:49 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
102400 |
|
|
176637223 |
xwtggsmd |
E1 |
Oct. 17, 2022, 4:43 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
102400 |
|
|
176632817 |
hunanligong |
E1 |
Oct. 17, 2022, 3:20 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
102400 |
|
|
176629884 |
shen0628 |
E1 |
Oct. 17, 2022, 2:22 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
102400 |
|
|
176628950 |
lulu_1234 |
E1 |
Oct. 17, 2022, 2:01 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
102400 |
|
|
176640748 |
pms_venkatesh_saki_147 |
E1 |
Oct. 17, 2022, 5:46 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
204800 |
|
|
176634325 |
KylinLzw |
E1 |
Oct. 17, 2022, 3:48 a.m. |
OK |
GNU C++17 |
TESTS |
94 |
15 |
204800 |
|
|
176635613 |
gzhulc |
E1 |
Oct. 17, 2022, 4:12 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
0 |
|
|
176635324 |
Fan_zf |
E1 |
Oct. 17, 2022, 4:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
0 |
|
|
176633471 |
Horb7 |
E1 |
Oct. 17, 2022, 3:32 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
0 |
|
|
176639263 |
readiz |
E1 |
Oct. 17, 2022, 5:24 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
102400 |
|
|
176640975 |
blankff |
E1 |
Oct. 17, 2022, 5:49 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
204800 |
|
|
176633241 |
shouxhy |
E1 |
Oct. 17, 2022, 3:28 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
204800 |
|
|
176639914 |
Kumarfeldspar |
E1 |
Oct. 17, 2022, 5:34 a.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
512000 |
|
|
176619813 |
PurpleCrayon |
E1 |
Oct. 16, 2022, 9:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
1228800 |
|
|
176608453 |
subhadip8617 |
E1 |
Oct. 16, 2022, 6:50 p.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
1228800 |
|
|
176596121 |
Bedbugzh |
E1 |
Oct. 16, 2022, 5:05 p.m. |
OK |
GNU C++17 (64) |
TESTS |
94 |
15 |
1228800 |
|
|
176641597 |
jianguolinyun |
E1 |
Oct. 17, 2022, 5:58 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176641509 |
Duck_sajin |
E1 |
Oct. 17, 2022, 5:57 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176641343 |
sahil667788 |
E1 |
Oct. 17, 2022, 5:55 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176641000 |
hct_2so1 |
E1 |
Oct. 17, 2022, 5:49 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176640796 |
arghakole |
E1 |
Oct. 17, 2022, 5:46 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176640734 |
Duck_sajin |
E1 |
Oct. 17, 2022, 5:46 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176640107 |
0821010560HaiND |
E1 |
Oct. 17, 2022, 5:37 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176639460 |
Veldora_ |
E1 |
Oct. 17, 2022, 5:27 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176635985 |
rabitts |
E1 |
Oct. 17, 2022, 4:20 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176635642 |
ymankumar19__ |
E1 |
Oct. 17, 2022, 4:13 a.m. |
OK |
GNU C++20 (64) |
TESTS |
94 |
15 |
0 |
|
|
176589942 |
hghgh |
E1 |
Oct. 16, 2022, 4:46 p.m. |
OK |
Go |
TESTS |
94 |
156 |
18227200 |
|
|
176641399 |
kasiru_69 |
E1 |
Oct. 17, 2022, 5:56 a.m. |
OK |
Java 11 |
TESTS |
94 |
202 |
0 |
|
|
176640427 |
x21svage |
E1 |
Oct. 17, 2022, 5:41 a.m. |
OK |
Java 11 |
TESTS |
94 |
202 |
0 |
|
|
176629488 |
minibin |
E1 |
Oct. 17, 2022, 2:14 a.m. |
OK |
Java 11 |
TESTS |
94 |
202 |
25190400 |
|
|
176590059 |
v7fgg |
E1 |
Oct. 16, 2022, 4:46 p.m. |
OK |
Java 11 |
TESTS |
94 |
233 |
24883200 |
|
|
176594470 |
yudi23 |
E1 |
Oct. 16, 2022, 4:57 p.m. |
OK |
Java 11 |
TESTS |
94 |
420 |
24780800 |
|
|
176613780 |
serndipty_ |
E1 |
Oct. 16, 2022, 7:52 p.m. |
OK |
Java 11 |
TESTS |
94 |
420 |
24883200 |
|
|
176605029 |
Eya_Mattoussi |
E1 |
Oct. 16, 2022, 6:15 p.m. |
OK |
Java 11 |
TESTS |
94 |
420 |
25395200 |
|
|
176638577 |
praduman14 |
E1 |
Oct. 17, 2022, 5:10 a.m. |
OK |
Java 11 |
TESTS |
94 |
436 |
0 |
|
|
176597254 |
dhruv_07 |
E1 |
Oct. 16, 2022, 5:12 p.m. |
OK |
Java 11 |
TESTS |
94 |
436 |
25395200 |
|
|
176589481 |
IanISam |
E1 |
Oct. 16, 2022, 4:45 p.m. |
OK |
Java 11 |
TESTS |
94 |
2900 |
90931200 |
|
|
176589644 |
v7fgg |
E1 |
Oct. 16, 2022, 4:46 p.m. |
OK |
Java 17 |
TESTS |
94 |
234 |
40243200 |
|
|
176600764 |
Dukkha |
E1 |
Oct. 16, 2022, 5:37 p.m. |
OK |
Java 17 |
TESTS |
94 |
249 |
40755200 |
|
|
176610136 |
28leoleo28 |
E1 |
Oct. 16, 2022, 7:08 p.m. |
OK |
Java 17 |
TESTS |
94 |
249 |
40755200 |
|
|
176628018 |
Mamimi |
E1 |
Oct. 17, 2022, 1:38 a.m. |
OK |
Java 17 |
TESTS |
94 |
327 |
40140800 |
|
|
176616263 |
bigBull2 |
E1 |
Oct. 16, 2022, 8:26 p.m. |
OK |
Java 17 |
TESTS |
94 |
421 |
40652800 |
|
|
176630948 |
Ibrahimovic_The_Lion |
E1 |
Oct. 17, 2022, 2:44 a.m. |
OK |
Java 8 |
TESTS |
94 |
109 |
0 |
|
|
176632831 |
Ibrahimovic_The_Lion |
E1 |
Oct. 17, 2022, 3:21 a.m. |
OK |
Java 8 |
TESTS |
94 |
124 |
0 |
|
|
176629618 |
Zahid_Hasan_Sahin |
E1 |
Oct. 17, 2022, 2:16 a.m. |
OK |
Java 8 |
TESTS |
94 |
140 |
19558400 |
|
|
176621059 |
Mouhssine |
E1 |
Oct. 16, 2022, 9:51 p.m. |
OK |
Java 8 |
TESTS |
94 |
311 |
18739200 |
|
|
176616360 |
ganesh_6 |
E1 |
Oct. 16, 2022, 8:27 p.m. |
OK |
Java 8 |
TESTS |
94 |
326 |
18739200 |
|
|
176641013 |
Xu_127 |
E1 |
Oct. 17, 2022, 5:50 a.m. |
OK |
Java 8 |
TESTS |
94 |
327 |
0 |
|
|
176622182 |
peiyeliu |
E1 |
Oct. 16, 2022, 10:20 p.m. |
OK |
Java 8 |
TESTS |
94 |
327 |
18739200 |
|
|
176632228 |
goku_peng |
E1 |
Oct. 17, 2022, 3:09 a.m. |
OK |
Java 8 |
TESTS |
94 |
343 |
0 |
|
|
176621867 |
Mouhssine |
E1 |
Oct. 16, 2022, 10:11 p.m. |
OK |
Java 8 |
TESTS |
94 |
343 |
18739200 |
|
|
176627236 |
khan1121 |
E1 |
Oct. 17, 2022, 1:18 a.m. |
OK |
Java 8 |
TESTS |
94 |
343 |
18944000 |
|
|
176611599 |
Eldies |
E1 |
Oct. 16, 2022, 7:25 p.m. |
OK |
MS C++ 2017 |
TESTS |
94 |
31 |
1843200 |
|
|
176632131 |
LiuZhaocheng |
E1 |
Oct. 17, 2022, 3:07 a.m. |
OK |
MS C++ 2017 |
TESTS |
94 |
202 |
0 |
|
|
176639621 |
shaokang |
E1 |
Oct. 17, 2022, 5:29 a.m. |
OK |
Node.js |
TESTS |
94 |
62 |
1945600 |
|
|
176637072 |
0x7f_ |
E1 |
Oct. 17, 2022, 4:40 a.m. |
OK |
PyPy 3 |
TESTS |
94 |
93 |
2252800 |
|
|
176588752 |
RedSpica |
E1 |
Oct. 16, 2022, 4:44 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
93 |
19968000 |
|
|
176612464 |
gyul |
E1 |
Oct. 16, 2022, 7:36 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
109 |
19046400 |
|
|
176603100 |
akshitm16 |
E1 |
Oct. 16, 2022, 5:58 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
155 |
24064000 |
|
|
176590331 |
gyul |
E1 |
Oct. 16, 2022, 4:47 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
217 |
19865600 |
|
|
176636030 |
0x7f_ |
E1 |
Oct. 17, 2022, 4:21 a.m. |
OK |
PyPy 3 |
TESTS |
94 |
218 |
2048000 |
|
|
176610316 |
gyul |
E1 |
Oct. 16, 2022, 7:10 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
249 |
19763200 |
|
|
176621243 |
akshitm16 |
E1 |
Oct. 16, 2022, 9:55 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
514 |
23244800 |
|
|
176603084 |
akshitm16 |
E1 |
Oct. 16, 2022, 5:58 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
529 |
23859200 |
|
|
176592791 |
Chanzan |
E1 |
Oct. 16, 2022, 4:51 p.m. |
OK |
PyPy 3 |
TESTS |
94 |
1496 |
28262400 |
|
|
176603560 |
beethoven97 |
E1 |
Oct. 16, 2022, 6:02 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
77 |
33177600 |
|
|
176610233 |
sarthak2308 |
E1 |
Oct. 16, 2022, 7:09 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
78 |
31334400 |
|
|
176638105 |
ketanraut88 |
E1 |
Oct. 17, 2022, 4:58 a.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
124 |
3993600 |
|
|
176632864 |
recuraki |
E1 |
Oct. 17, 2022, 3:21 a.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
124 |
35225600 |
|
|
176588071 |
recuraki |
E1 |
Oct. 16, 2022, 4:43 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
124 |
35225600 |
|
|
176591214 |
cholebhature |
E1 |
Oct. 16, 2022, 4:48 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
187 |
30617600 |
|
|
176632162 |
bokunopicolo |
E1 |
Oct. 17, 2022, 3:08 a.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
202 |
1638400 |
|
|
176616156 |
gesuta |
E1 |
Oct. 16, 2022, 8:24 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
202 |
30310400 |
|
|
176602457 |
RAZE_TEAM |
E1 |
Oct. 16, 2022, 5:52 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
202 |
30310400 |
|
|
176600148 |
siddharthraj |
E1 |
Oct. 16, 2022, 5:32 p.m. |
OK |
PyPy 3-64 |
TESTS |
94 |
202 |
30310400 |
|
|
176598679 |
devansh_7 |
E1 |
Oct. 16, 2022, 5:22 p.m. |
OK |
Python 3 |
TESTS |
94 |
61 |
4608000 |
|
|
176599742 |
juandavidarce |
E1 |
Oct. 16, 2022, 5:29 p.m. |
OK |
Python 3 |
TESTS |
94 |
608 |
4505600 |
|
|
176595242 |
NS3081992 |
E1 |
Oct. 16, 2022, 5:01 p.m. |
OK |
Python 3 |
TESTS |
94 |
655 |
4710400 |
|
|
176633630 |
odinluca |
E1 |
Oct. 17, 2022, 3:35 a.m. |
OK |
Python 3 |
TESTS |
94 |
763 |
0 |
|
|
176596156 |
HexClan-WitchFinder |
E1 |
Oct. 16, 2022, 5:06 p.m. |
OK |
Python 3 |
TESTS |
94 |
1091 |
4505600 |
|
|
176603812 |
abcsumit |
E1 |
Oct. 16, 2022, 6:04 p.m. |
OK |
Python 3 |
TESTS |
94 |
1465 |
4505600 |
|
|
176620179 |
flownn |
E1 |
Oct. 16, 2022, 9:33 p.m. |
OK |
Python 3 |
TESTS |
94 |
2573 |
4505600 |
|
|
remove filters
Back to search problems