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'You have two positive integers a and b . You can perform two kinds of operations: Find the minimum number of operations required to make a=0 . The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The only line of the description of each test case contains two integers a , b ( 1 <= a,b <= 10^9 ). For each test case, print a single integer: the minimum number of operations required to make a=0 . In the first test case, one of the optimal solutions is: '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
107220345 |
eldestructojr3 |
A |
Feb. 12, 2021, 4:19 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107221467 |
spartan24 |
A |
Feb. 12, 2021, 4:24 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107226748 |
sahilparashar2381 |
A |
Feb. 12, 2021, 4:44 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107228800 |
shubh661 |
A |
Feb. 12, 2021, 4:49 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107230260 |
CastleBravo |
A |
Feb. 12, 2021, 5:22 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107230531 |
sadia__168 |
A |
Feb. 12, 2021, 5:23 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107233626 |
CastleBravo |
A |
Feb. 12, 2021, 5:51 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107234140 |
PiStroke |
A |
Feb. 12, 2021, 5:57 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107235311 |
Beku.sh |
A |
Feb. 12, 2021, 6:14 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107238549 |
Guangyaochenyu |
A |
Feb. 12, 2021, 7:07 p.m. |
OK |
GNU C11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255257 |
rion_cse |
A |
Feb. 13, 2021, 5:22 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256604 |
huykhanh |
A |
Feb. 13, 2021, 5:49 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256601 |
bnp24202 |
A |
Feb. 13, 2021, 5:49 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256013 |
LimboMaster |
A |
Feb. 13, 2021, 5:37 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256927 |
brined_fish |
A |
Feb. 13, 2021, 5:56 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255852 |
huykhanh |
A |
Feb. 13, 2021, 5:34 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256922 |
IRON_Song |
A |
Feb. 13, 2021, 5:56 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255660 |
Shaad7 |
A |
Feb. 13, 2021, 5:30 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255607 |
Joker322 |
A |
Feb. 13, 2021, 5:29 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255453 |
qiliangzhe |
A |
Feb. 13, 2021, 5:26 a.m. |
OK |
GNU C++11 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256658 |
joy_umar_hasan |
A |
Feb. 13, 2021, 5:50 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255858 |
joseacisnerosm |
A |
Feb. 13, 2021, 5:35 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255729 |
mistu99 |
A |
Feb. 13, 2021, 5:32 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255691 |
schrodingerstom |
A |
Feb. 13, 2021, 5:31 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255648 |
Supervv |
A |
Feb. 13, 2021, 5:30 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107252742 |
aqua_vein |
A |
Feb. 13, 2021, 4:15 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107252729 |
MARSHALMATHERS |
A |
Feb. 13, 2021, 4:14 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107252457 |
-noBody |
A |
Feb. 13, 2021, 4:06 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107252351 |
Cvangi |
A |
Feb. 13, 2021, 4:03 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107252149 |
tony0604 |
A |
Feb. 13, 2021, 3:56 a.m. |
OK |
GNU C++14 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256257 |
atul_pandey94 |
A |
Feb. 13, 2021, 5:43 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107257002 |
zanj0 |
A |
Feb. 13, 2021, 5:58 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256760 |
_Ph4nindr4_ |
A |
Feb. 13, 2021, 5:52 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256607 |
green_eagle131 |
A |
Feb. 13, 2021, 5:49 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256570 |
Shimla |
A |
Feb. 13, 2021, 5:49 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256330 |
wyb666 |
A |
Feb. 13, 2021, 5:44 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256116 |
kaushal_023 |
A |
Feb. 13, 2021, 5:39 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256066 |
Alisher |
A |
Feb. 13, 2021, 5:39 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107256018 |
yashashwi90 |
A |
Feb. 13, 2021, 5:38 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107255967 |
Devika19 |
A |
Feb. 13, 2021, 5:37 a.m. |
OK |
GNU C++17 |
TESTS |
13 |
15 |
0 |
|
1000 |
107250829 |
msatanzeel |
A |
Feb. 13, 2021, 3:15 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107250906 |
blurring_shadow |
A |
Feb. 13, 2021, 3:18 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107251503 |
staywilliam |
A |
Feb. 13, 2021, 3:36 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107251712 |
vibhanshuc.che18 |
A |
Feb. 13, 2021, 3:42 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107252029 |
LethalPuppy |
A |
Feb. 13, 2021, 3:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107252240 |
Rasel_28_367 |
A |
Feb. 13, 2021, 3:59 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107252623 |
M0riarty |
A |
Feb. 13, 2021, 4:11 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107253693 |
ipalash_ |
A |
Feb. 13, 2021, 4:44 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107254764 |
purinliang |
A |
Feb. 13, 2021, 5:11 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107255985 |
bkifhr6 |
A |
Feb. 13, 2021, 5:37 a.m. |
OK |
GNU C++17 (64) |
TESTS |
13 |
15 |
0 |
|
1000 |
107230471 |
MAMSURENOK |
A |
Feb. 12, 2021, 5:23 p.m. |
OK |
Go |
TESTS |
13 |
30 |
0 |
|
1000 |
107242741 |
MrOtter |
A |
Feb. 12, 2021, 8:46 p.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107255012 |
noobboyyyy |
A |
Feb. 13, 2021, 5:17 a.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107251427 |
tushar_patil |
A |
Feb. 13, 2021, 3:34 a.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107248537 |
urlaubsreif_sumin |
A |
Feb. 13, 2021, 1:38 a.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107243199 |
xoszm |
A |
Feb. 12, 2021, 9:01 p.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107240215 |
Pushkar-PM |
A |
Feb. 12, 2021, 7:41 p.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107231561 |
aym_05 |
A |
Feb. 12, 2021, 5:31 p.m. |
OK |
Java 11 |
TESTS |
13 |
171 |
0 |
|
1000 |
107256167 |
prateeek_coder |
A |
Feb. 13, 2021, 5:40 a.m. |
OK |
Java 11 |
TESTS |
13 |
186 |
0 |
|
1000 |
107254628 |
Multi-Thread |
A |
Feb. 13, 2021, 5:08 a.m. |
OK |
Java 11 |
TESTS |
13 |
186 |
0 |
|
1000 |
107254155 |
mass29 |
A |
Feb. 13, 2021, 4:57 a.m. |
OK |
Java 11 |
TESTS |
13 |
186 |
0 |
|
1000 |
107254480 |
rw6 |
A |
Feb. 13, 2021, 5:04 a.m. |
OK |
Java 8 |
TESTS |
13 |
108 |
0 |
|
1000 |
107249911 |
vishalchaudhary1975 |
A |
Feb. 13, 2021, 2:40 a.m. |
OK |
Java 8 |
TESTS |
13 |
108 |
0 |
|
1000 |
107247162 |
Java |
A |
Feb. 13, 2021, 12:20 a.m. |
OK |
Java 8 |
TESTS |
13 |
108 |
0 |
|
1000 |
107240081 |
nandit |
A |
Feb. 12, 2021, 7:39 p.m. |
OK |
Java 8 |
TESTS |
13 |
108 |
0 |
|
1000 |
107230600 |
sam_20101999 |
A |
Feb. 12, 2021, 5:24 p.m. |
OK |
Java 8 |
TESTS |
13 |
108 |
0 |
|
1000 |
107256786 |
Akshay211 |
A |
Feb. 13, 2021, 5:53 a.m. |
OK |
Java 8 |
TESTS |
13 |
109 |
0 |
|
1000 |
107248085 |
I_love_dp |
A |
Feb. 13, 2021, 1:15 a.m. |
OK |
Java 8 |
TESTS |
13 |
109 |
0 |
|
1000 |
107235826 |
imsd_14 |
A |
Feb. 12, 2021, 6:22 p.m. |
OK |
Java 8 |
TESTS |
13 |
109 |
0 |
|
1000 |
107235148 |
Dstoical |
A |
Feb. 12, 2021, 6:11 p.m. |
OK |
Java 8 |
TESTS |
13 |
109 |
0 |
|
1000 |
107234591 |
ramchandrayadav593 |
A |
Feb. 12, 2021, 6:03 p.m. |
OK |
Java 8 |
TESTS |
13 |
109 |
0 |
|
1000 |
107246602 |
Spheniscine |
A |
Feb. 12, 2021, 11:44 p.m. |
OK |
Kotlin |
TESTS |
13 |
109 |
0 |
|
1000 |
107219021 |
vladisov |
A |
Feb. 12, 2021, 4:14 p.m. |
OK |
Kotlin |
TESTS |
13 |
140 |
0 |
|
1000 |
107226935 |
Potassium |
A |
Feb. 12, 2021, 4:45 p.m. |
OK |
Kotlin |
TESTS |
13 |
155 |
307200 |
|
1000 |
107248222 |
ltnotfty |
A |
Feb. 13, 2021, 1:23 a.m. |
OK |
MS C++ |
TESTS |
13 |
30 |
0 |
|
1000 |
107250147 |
rohith_b180591ec |
A |
Feb. 13, 2021, 2:49 a.m. |
OK |
MS C++ |
TESTS |
13 |
61 |
0 |
|
1000 |
107231337 |
minigimbob |
A |
Feb. 12, 2021, 5:29 p.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
15 |
0 |
|
1000 |
107254700 |
SuperMurloc |
A |
Feb. 13, 2021, 5:09 a.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
30 |
0 |
|
1000 |
107252097 |
dear-john |
A |
Feb. 13, 2021, 3:54 a.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
30 |
0 |
|
1000 |
107225426 |
1code1code1 |
A |
Feb. 12, 2021, 4:40 p.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
30 |
0 |
|
1000 |
107224990 |
ArtemUzhnu |
A |
Feb. 12, 2021, 4:38 p.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
30 |
0 |
|
1000 |
107254145 |
SuperMurloc |
A |
Feb. 13, 2021, 4:57 a.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
30 |
307200 |
|
1000 |
107243610 |
TawfekHesham |
A |
Feb. 12, 2021, 9:16 p.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
30 |
1433600 |
|
1000 |
107254729 |
SuperMurloc |
A |
Feb. 13, 2021, 5:10 a.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
31 |
0 |
|
1000 |
107253941 |
SuperMurloc |
A |
Feb. 13, 2021, 4:52 a.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
31 |
0 |
|
1000 |
107253551 |
Rkena |
A |
Feb. 13, 2021, 4:40 a.m. |
OK |
MS C++ 2017 |
TESTS |
13 |
31 |
0 |
|
1000 |
107254783 |
ShikamaruNara |
A |
Feb. 13, 2021, 5:11 a.m. |
OK |
PyPy 2 |
TESTS |
13 |
93 |
2048000 |
|
1000 |
107230165 |
asen23 |
A |
Feb. 12, 2021, 5:21 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
0 |
|
1000 |
107229990 |
asen23 |
A |
Feb. 12, 2021, 5:20 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
0 |
|
1000 |
107220938 |
hevesh |
A |
Feb. 12, 2021, 4:22 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
0 |
|
1000 |
107231562 |
S_T_A_R_K |
A |
Feb. 12, 2021, 5:31 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
102400 |
|
1000 |
107257170 |
gojosimp |
A |
Feb. 13, 2021, 6:01 a.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
1228800 |
|
1000 |
107237721 |
happyBot |
A |
Feb. 12, 2021, 6:52 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
1331200 |
|
1000 |
107235262 |
InvalidSyntax |
A |
Feb. 12, 2021, 6:13 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
1331200 |
|
1000 |
107232408 |
Leggasick |
A |
Feb. 12, 2021, 5:38 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
1331200 |
|
1000 |
107228164 |
tan_delhi |
A |
Feb. 12, 2021, 4:48 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
1331200 |
|
1000 |
107223228 |
Yash_Prakash |
A |
Feb. 12, 2021, 4:31 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
93 |
1331200 |
|
1000 |
107251635 |
dbnsl |
A |
Feb. 13, 2021, 3:41 a.m. |
OK |
Python 3 |
TESTS |
13 |
46 |
307200 |
|
1000 |
107232061 |
dim.malashenko |
A |
Feb. 12, 2021, 5:35 p.m. |
OK |
Python 3 |
TESTS |
13 |
46 |
307200 |
|
1000 |
107239052 |
anik2000s |
A |
Feb. 12, 2021, 7:16 p.m. |
OK |
Python 3 |
TESTS |
13 |
61 |
0 |
|
1000 |
107243703 |
IngaleAnkur10 |
A |
Feb. 12, 2021, 9:19 p.m. |
OK |
Python 3 |
TESTS |
13 |
61 |
307200 |
|
1000 |
107240733 |
KrishNath |
A |
Feb. 12, 2021, 7:54 p.m. |
OK |
Python 3 |
TESTS |
13 |
61 |
307200 |
|
1000 |
107233300 |
0xc0ffee |
A |
Feb. 12, 2021, 5:47 p.m. |
OK |
Python 3 |
TESTS |
13 |
61 |
307200 |
|
1000 |
107232494 |
dim.malashenko |
A |
Feb. 12, 2021, 5:39 p.m. |
OK |
Python 3 |
TESTS |
13 |
61 |
307200 |
|
1000 |
107222991 |
astutulus |
A |
Feb. 12, 2021, 4:30 p.m. |
OK |
Python 3 |
TESTS |
13 |
61 |
307200 |
|
1000 |
107256319 |
raghavjoshi789 |
A |
Feb. 13, 2021, 5:44 a.m. |
OK |
Python 3 |
TESTS |
13 |
62 |
0 |
|
1000 |
107255244 |
sh1194 |
A |
Feb. 13, 2021, 5:22 a.m. |
OK |
Python 3 |
TESTS |
13 |
62 |
0 |
|
1000 |
107240373 |
__v0id |
A |
Feb. 12, 2021, 7:45 p.m. |
OK |
Ruby 3 |
TESTS |
13 |
249 |
102400 |
|
1000 |
107248742 |
gmm_tea |
A |
Feb. 13, 2021, 1:48 a.m. |
OK |
Ruby 3 |
TESTS |
13 |
264 |
204800 |
|
1000 |
107231527 |
hiratai |
A |
Feb. 12, 2021, 5:30 p.m. |
OK |
Rust |
TESTS |
13 |
62 |
0 |
|
1000 |
remove filters
Back to search problems