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'Nastia has 2 positive integers A and B . She defines that: For example, if A = 6 and B = 4 , the integers 24 and 72 are good, the integers 6 , 660 and 12 are nearly good, the integers 16 , 7 are neither good nor nearly good. Find 3 different positive integers x , y , and z such that exactly one of them is good and the other 2 are nearly good, and x + y = z . The first line contains a single integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases. The first line of each test case contains two integers A and B ( 1 <= A <= 10^6 , 1 <= B <= 10^6 ) -- numbers that Nastia has. For each test case print: If there are multiple answers, print any. In the first test case: 60 -- good number; 10 and 50 -- nearly good numbers. In the second test case: 208 -- good number; 169 and 39 -- nearly good numbers. In the third test case: 154 -- good number; 28 and 182 -- nearly good numbers. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
115627327 |
spinxfr |
A |
May 7, 2021, 6:24 p.m. |
OK |
D |
TESTS |
9 |
46 |
6656000 |
|
|
115626808 |
ulorew |
A |
May 7, 2021, 6:19 p.m. |
OK |
Delphi |
TESTS |
9 |
62 |
4403200 |
|
|
115651640 |
mohan7575 |
A |
May 8, 2021, 2:11 a.m. |
OK |
GNU C11 |
TESTS |
9 |
62 |
3686400 |
|
|
115631155 |
umangsingla617 |
A |
May 7, 2021, 7:09 p.m. |
OK |
GNU C11 |
TESTS |
9 |
62 |
3686400 |
|
|
115625750 |
it_vineh_ |
A |
May 7, 2021, 6:08 p.m. |
OK |
GNU C11 |
TESTS |
9 |
78 |
3686400 |
|
|
115638205 |
avishek_bharti |
A |
May 7, 2021, 8:42 p.m. |
OK |
GNU C11 |
TESTS |
9 |
78 |
3686400 |
|
|
115663599 |
Angsuman |
A |
May 8, 2021, 5:26 a.m. |
OK |
GNU C11 |
TESTS |
9 |
78 |
3686400 |
|
|
115665614 |
Beku.sh |
A |
May 8, 2021, 5:53 a.m. |
OK |
GNU C11 |
TESTS |
9 |
93 |
3686400 |
|
|
115665973 |
Ricky6200 |
A |
May 8, 2021, 5:58 a.m. |
OK |
GNU C11 |
TESTS |
9 |
108 |
3686400 |
|
|
115623231 |
AK94 |
A |
May 7, 2021, 5:48 p.m. |
OK |
GNU C11 |
TESTS |
9 |
109 |
3686400 |
|
|
115636720 |
Vanp |
A |
May 7, 2021, 8:23 p.m. |
OK |
GNU C11 |
TESTS |
9 |
109 |
3686400 |
|
|
115629874 |
murali_33 |
A |
May 7, 2021, 6:52 p.m. |
OK |
GNU C11 |
TESTS |
9 |
109 |
3686400 |
|
|
115647858 |
LegendaryYYQ final_trump Social_Zhao |
A |
May 8, 2021, 12:31 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
15 |
3686400 |
|
|
115649478 |
LinkZelda |
A |
May 8, 2021, 1:21 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
15 |
3686400 |
|
|
115616975 |
Harsh.Sachan |
A |
May 7, 2021, 4:46 p.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
3686400 |
|
|
115656243 |
Lappland_Texas |
A |
May 8, 2021, 3:34 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
3891200 |
|
|
115653758 |
Bbbbrz |
A |
May 8, 2021, 2:52 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
3891200 |
|
|
115648637 |
wangjiheng |
A |
May 8, 2021, 12:56 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
3891200 |
|
|
115635578 |
pikapikachu |
A |
May 7, 2021, 8:10 p.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
3891200 |
|
|
115662161 |
Turing2020 |
A |
May 8, 2021, 5:08 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
3891200 |
|
|
115652446 |
s.vinci |
A |
May 8, 2021, 2:27 a.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
4300800 |
|
|
115646282 |
jdsb |
A |
May 7, 2021, 11:29 p.m. |
OK |
GNU C++11 |
TESTS |
9 |
30 |
4710400 |
|
|
115644895 |
undefinedderivativE |
A |
May 7, 2021, 10:45 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3686400 |
|
|
115631879 |
pho_e_nix |
A |
May 7, 2021, 7:19 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3686400 |
|
|
115644721 |
Masalmah |
A |
May 7, 2021, 10:40 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3686400 |
|
|
115616205 |
....... |
A |
May 7, 2021, 4:45 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3686400 |
|
|
115627021 |
raushan_kumar-_ |
A |
May 7, 2021, 6:21 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3686400 |
|
|
115665379 |
_Sabib_ |
A |
May 8, 2021, 5:49 a.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3788800 |
|
|
115651267 |
bkifhr10 |
A |
May 8, 2021, 2:04 a.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3788800 |
|
|
115628952 |
Immerser |
A |
May 7, 2021, 6:42 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3788800 |
|
|
115623443 |
Copy_Paste |
A |
May 7, 2021, 5:50 p.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3788800 |
|
|
115652850 |
QiuHong |
A |
May 8, 2021, 2:35 a.m. |
OK |
GNU C++14 |
TESTS |
9 |
30 |
3788800 |
|
|
115631264 |
duty |
A |
May 7, 2021, 7:11 p.m. |
OK |
GNU C++17 |
TESTS |
9 |
15 |
3686400 |
|
|
115643605 |
yugurt |
A |
May 7, 2021, 10:15 p.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115664145 |
zanj0 |
A |
May 8, 2021, 5:34 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115661123 |
kshitiij18 |
A |
May 8, 2021, 4:53 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115660610 |
shubham84 |
A |
May 8, 2021, 4:46 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115654056 |
yasbir |
A |
May 8, 2021, 2:57 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115653336 |
blueconch |
A |
May 8, 2021, 2:44 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115649793 |
Nipen_Paul |
A |
May 8, 2021, 1:28 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115645889 |
tsaraf |
A |
May 7, 2021, 11:14 p.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115645768 |
ParangVo |
A |
May 7, 2021, 11:09 p.m. |
OK |
GNU C++17 |
TESTS |
9 |
30 |
3686400 |
|
|
115622384 |
steinum |
A |
May 7, 2021, 5:42 p.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
15 |
4300800 |
|
|
115655209 |
RobinPH |
A |
May 8, 2021, 3:17 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
15 |
4300800 |
|
|
115659787 |
jainbot27 |
A |
May 8, 2021, 4:34 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
15 |
4300800 |
|
|
115622935 |
Rajveer_100 |
A |
May 7, 2021, 5:45 p.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
15 |
4300800 |
|
|
115616770 |
GeorgeMaharis |
A |
May 7, 2021, 4:46 p.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
15 |
4300800 |
|
|
115622186 |
dhritishman22 |
A |
May 7, 2021, 5:41 p.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
15 |
4300800 |
|
|
115656316 |
niloybhowmik1 |
A |
May 8, 2021, 3:35 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
30 |
4198400 |
|
|
115663090 |
aviral10 |
A |
May 8, 2021, 5:20 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
30 |
4300800 |
|
|
115660731 |
practice_27 |
A |
May 8, 2021, 4:47 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
30 |
4300800 |
|
|
115663313 |
nit_ay03 |
A |
May 8, 2021, 5:23 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
30 |
4300800 |
|
|
115652883 |
SorryNaCN |
A |
May 8, 2021, 2:35 a.m. |
OK |
Go |
TESTS |
9 |
46 |
10649600 |
|
|
115623736 |
glebsamsonov |
A |
May 7, 2021, 5:52 p.m. |
OK |
Go |
TESTS |
9 |
140 |
10649600 |
|
|
115629507 |
coder0687 |
A |
May 7, 2021, 6:48 p.m. |
OK |
Java 11 |
TESTS |
9 |
171 |
23859200 |
|
|
115662059 |
Andwerp |
A |
May 8, 2021, 5:06 a.m. |
OK |
Java 11 |
TESTS |
9 |
187 |
23961600 |
|
|
115642345 |
kareem3id |
A |
May 7, 2021, 9:49 p.m. |
OK |
Java 11 |
TESTS |
9 |
218 |
24371200 |
|
|
115625457 |
akman10 |
A |
May 7, 2021, 6:06 p.m. |
OK |
Java 11 |
TESTS |
9 |
218 |
24371200 |
|
|
115659082 |
nj07 |
A |
May 8, 2021, 4:24 a.m. |
OK |
Java 11 |
TESTS |
9 |
233 |
24166400 |
|
|
115661288 |
Subhu_999 |
A |
May 8, 2021, 4:55 a.m. |
OK |
Java 11 |
TESTS |
9 |
233 |
24371200 |
|
|
115650051 |
pathakbaba |
A |
May 8, 2021, 1:35 a.m. |
OK |
Java 11 |
TESTS |
9 |
233 |
24371200 |
|
|
115658389 |
Subhu_999 |
A |
May 8, 2021, 4:11 a.m. |
OK |
Java 11 |
TESTS |
9 |
233 |
24371200 |
|
|
115627055 |
vinam |
A |
May 7, 2021, 6:21 p.m. |
OK |
Java 11 |
TESTS |
9 |
233 |
24371200 |
|
|
115663082 |
sf14t |
A |
May 8, 2021, 5:20 a.m. |
OK |
Java 11 |
TESTS |
9 |
233 |
24371200 |
|
|
115654864 |
edenSpace |
A |
May 8, 2021, 3:11 a.m. |
OK |
Java 8 |
TESTS |
9 |
109 |
20480000 |
|
|
115654842 |
saurabhs1206 |
A |
May 8, 2021, 3:11 a.m. |
OK |
Java 8 |
TESTS |
9 |
109 |
20480000 |
|
|
115658203 |
Pranay2516 |
A |
May 8, 2021, 4:08 a.m. |
OK |
Java 8 |
TESTS |
9 |
109 |
20480000 |
|
|
115624890 |
deepaksach |
A |
May 7, 2021, 6:01 p.m. |
OK |
Java 8 |
TESTS |
9 |
109 |
20684800 |
|
|
115625148 |
tishrah_ |
A |
May 7, 2021, 6:03 p.m. |
OK |
Java 8 |
TESTS |
9 |
124 |
20480000 |
|
|
115627754 |
aditya.tiwari |
A |
May 7, 2021, 6:28 p.m. |
OK |
Java 8 |
TESTS |
9 |
124 |
20480000 |
|
|
115625411 |
Gupta-OP |
A |
May 7, 2021, 6:06 p.m. |
OK |
Java 8 |
TESTS |
9 |
124 |
20480000 |
|
|
115651089 |
thedesalizes |
A |
May 8, 2021, 2 a.m. |
OK |
Java 8 |
TESTS |
9 |
124 |
20480000 |
|
|
115633914 |
CrazyDr |
A |
May 7, 2021, 7:49 p.m. |
OK |
Java 8 |
TESTS |
9 |
139 |
20480000 |
|
|
115650339 |
InANutshell |
A |
May 8, 2021, 1:41 a.m. |
OK |
Java 8 |
TESTS |
9 |
139 |
20480000 |
|
|
115630952 |
muhammadmunna |
A |
May 7, 2021, 7:07 p.m. |
OK |
Kotlin |
TESTS |
9 |
233 |
21811200 |
|
|
115647765 |
den1107 |
A |
May 8, 2021, 12:27 a.m. |
OK |
Kotlin |
TESTS |
9 |
249 |
21299200 |
|
|
115642871 |
catforce |
A |
May 7, 2021, 9:59 p.m. |
OK |
Kotlin |
TESTS |
9 |
296 |
21811200 |
|
|
115629428 |
TRR |
A |
May 7, 2021, 6:47 p.m. |
OK |
Mono C# |
TESTS |
9 |
108 |
11878400 |
|
|
115625464 |
LostSpectrum |
A |
May 7, 2021, 6:06 p.m. |
OK |
Mono C# |
TESTS |
9 |
124 |
11878400 |
|
|
115651139 |
zyj2012190230 |
A |
May 8, 2021, 2:01 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
31 |
3686400 |
|
|
115650706 |
jokertao |
A |
May 8, 2021, 1:51 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
31 |
3686400 |
|
|
115659987 |
jjune1416 |
A |
May 8, 2021, 4:37 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
31 |
3993600 |
|
|
115652816 |
sgly33 |
A |
May 8, 2021, 2:34 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
46 |
3686400 |
|
|
115629408 |
aleksikangas |
A |
May 7, 2021, 6:47 p.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
46 |
3788800 |
|
|
115622578 |
nemethm |
A |
May 7, 2021, 5:43 p.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
62 |
3788800 |
|
|
115649447 |
Harshita_0304 |
A |
May 8, 2021, 1:21 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
93 |
3686400 |
|
|
115628484 |
y_o_u_n_g_w_o_l_f |
A |
May 7, 2021, 6:36 p.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
109 |
3686400 |
|
|
115625820 |
ekateriina |
A |
May 7, 2021, 6:09 p.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
109 |
3686400 |
|
|
115650627 |
Bizarre_Z |
A |
May 8, 2021, 1:49 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
109 |
3686400 |
|
|
115650162 |
TheDesireToBelieve |
A |
May 8, 2021, 1:37 a.m. |
OK |
.NET Core C# |
TESTS |
9 |
140 |
14336000 |
|
|
115641205 |
Rafiqul_islam_robin |
A |
May 7, 2021, 9:29 p.m. |
OK |
.NET Core C# |
TESTS |
9 |
171 |
14131200 |
|
|
115630390 |
whaleee |
A |
May 7, 2021, 6:59 p.m. |
OK |
PyPy 2 |
TESTS |
9 |
202 |
31539200 |
|
|
115630680 |
lebron87 |
A |
May 7, 2021, 7:03 p.m. |
OK |
PyPy 2 |
TESTS |
9 |
249 |
30515200 |
|
|
115626301 |
FishInTheHook |
A |
May 7, 2021, 6:13 p.m. |
OK |
PyPy 2 |
TESTS |
9 |
358 |
25702400 |
|
|
115630336 |
alterego_14 |
A |
May 7, 2021, 6:58 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
155 |
23654400 |
|
|
115657755 |
singhumang305 |
A |
May 8, 2021, 4:01 a.m. |
OK |
PyPy 3 |
TESTS |
9 |
170 |
23756800 |
|
|
115622520 |
kirito18086 |
A |
May 7, 2021, 5:43 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
171 |
26316800 |
|
|
115627356 |
Ruski_Bratwurst |
A |
May 7, 2021, 6:24 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
171 |
26726400 |
|
|
115635400 |
_aadiupadhyay_ |
A |
May 7, 2021, 8:08 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
202 |
27033600 |
|
|
115654890 |
srijan.sarkar |
A |
May 8, 2021, 3:12 a.m. |
OK |
PyPy 3 |
TESTS |
9 |
202 |
28672000 |
|
|
115660098 |
Zemrith |
A |
May 8, 2021, 4:39 a.m. |
OK |
PyPy 3 |
TESTS |
9 |
202 |
28979200 |
|
|
115625927 |
legend.ary_as |
A |
May 7, 2021, 6:10 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
217 |
28876800 |
|
|
115643408 |
Leggasick |
A |
May 7, 2021, 10:10 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
217 |
29593600 |
|
|
115627196 |
anish5256 |
A |
May 7, 2021, 6:22 p.m. |
OK |
PyPy 3 |
TESTS |
9 |
218 |
27648000 |
|
|
115622482 |
Pranava23 |
A |
May 7, 2021, 5:43 p.m. |
OK |
Python 3 |
TESTS |
9 |
124 |
7372800 |
|
|
115640833 |
T_2000 |
A |
May 7, 2021, 9:22 p.m. |
OK |
Python 3 |
TESTS |
9 |
124 |
7680000 |
|
|
115664803 |
westwakki |
A |
May 8, 2021, 5:42 a.m. |
OK |
Python 3 |
TESTS |
9 |
139 |
6963200 |
|
|
115624996 |
manmohan1105 |
A |
May 7, 2021, 6:02 p.m. |
OK |
Python 3 |
TESTS |
9 |
140 |
7372800 |
|
|
115628985 |
capi2list |
A |
May 7, 2021, 6:42 p.m. |
OK |
Python 3 |
TESTS |
9 |
155 |
6656000 |
|
|
115651997 |
iska_terminator |
A |
May 8, 2021, 2:18 a.m. |
OK |
Python 3 |
TESTS |
9 |
155 |
6758400 |
|
|
115633201 |
KrishNath |
A |
May 7, 2021, 7:38 p.m. |
OK |
Python 3 |
TESTS |
9 |
155 |
8396800 |
|
|
115653843 |
zwliew |
A |
May 8, 2021, 2:53 a.m. |
OK |
Python 3 |
TESTS |
9 |
171 |
6656000 |
|
|
115628418 |
yans0o0o0 |
A |
May 7, 2021, 6:35 p.m. |
OK |
Python 3 |
TESTS |
9 |
171 |
6656000 |
|
|
115620755 |
hliuser1 |
A |
May 7, 2021, 5:35 p.m. |
OK |
Python 3 |
TESTS |
9 |
171 |
6656000 |
|
|
115652300 |
p00f |
A |
May 8, 2021, 2:24 a.m. |
OK |
Rust |
TESTS |
9 |
202 |
3788800 |
|
|
remove filters
Back to search problems