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'In this problem, you are initially given an empty multiset. You have to process two types of queries: The first line contains one integer m ( 1 <= m <= 10^5 ) -- the number of queries. Then m lines follow, each of which contains two integers t_i , v_i , denoting the i -th query. If t_i = 1 , then the i -th query is ADD v_i ( 0 <= v_i <= 29 ). If t_i = 2 , then the i -th query is GET v_i ( 0 <= v_i <= 10^9 ). For each GET query, print YES if it is possible to choose a subset with sum equal to w , or NO if it is impossible. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
237862337 |
asutosh1998 |
C |
Dec. 19, 2023, 2:38 a.m. |
OK |
C# 10 |
TESTS |
10 |
202 |
3481600 |
|
|
237853665 |
AutumnMist |
C |
Dec. 19, 2023, 2:27 a.m. |
OK |
C# 10 |
TESTS |
10 |
717 |
3174400 |
|
|
237863632 |
Measheep |
C |
Dec. 19, 2023, 3:06 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
10 |
670 |
0 |
|
|
237852622 |
Preschid-One |
C |
Dec. 19, 2023, 2:01 a.m. |
OK |
GNU C11 |
TESTS |
10 |
249 |
0 |
|
|
237810839 |
sriharsha_214 |
C |
Dec. 18, 2023, 4:27 p.m. |
OK |
GNU C11 |
TESTS |
10 |
249 |
0 |
|
|
237822918 |
Sanchit27 |
C |
Dec. 18, 2023, 5:18 p.m. |
OK |
GNU C11 |
TESTS |
10 |
249 |
6656000 |
|
|
237867418 |
iffatul_anon |
C |
Dec. 19, 2023, 4:13 a.m. |
OK |
GNU C11 |
TESTS |
10 |
405 |
0 |
|
|
237816882 |
Arvin_ |
C |
Dec. 18, 2023, 4:41 p.m. |
OK |
GNU C++14 |
TESTS |
10 |
46 |
0 |
|
|
237849972 |
qjm |
C |
Dec. 19, 2023, 1:14 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
46 |
0 |
|
|
237817655 |
jyjy1229 |
C |
Dec. 18, 2023, 4:45 p.m. |
OK |
GNU C++14 |
TESTS |
10 |
46 |
0 |
|
|
237824885 |
adelemambobos |
C |
Dec. 18, 2023, 5:33 p.m. |
OK |
GNU C++14 |
TESTS |
10 |
61 |
0 |
|
|
237874367 |
luobo215 |
C |
Dec. 19, 2023, 5:49 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
61 |
0 |
|
|
237847375 |
marcus06 |
C |
Dec. 18, 2023, 11:35 p.m. |
OK |
GNU C++14 |
TESTS |
10 |
61 |
0 |
|
|
237821417 |
DeeGeeDow |
C |
Dec. 18, 2023, 5:08 p.m. |
OK |
GNU C++14 |
TESTS |
10 |
61 |
0 |
|
|
237874540 |
luobo215 |
C |
Dec. 19, 2023, 5:51 a.m. |
OK |
GNU C++14 |
TESTS |
11 |
62 |
0 |
|
|
237870064 |
ahvd13 |
C |
Dec. 19, 2023, 4:54 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
62 |
0 |
|
|
237869842 |
ahvd13 |
C |
Dec. 19, 2023, 4:51 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
62 |
0 |
|
|
237819615 |
Kasber |
C |
Dec. 18, 2023, 4:56 p.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
|
237853295 |
Lskkkno3 |
C |
Dec. 19, 2023, 2:18 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237850845 |
tuananh238 |
C |
Dec. 19, 2023, 1:43 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237850315 |
verywater |
C |
Dec. 19, 2023, 1:26 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237844659 |
Mustafa_Elghisha |
C |
Dec. 18, 2023, 10:07 p.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237834156 |
su_zu_me |
C |
Dec. 18, 2023, 7:05 p.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237853347 |
gopalkalawate |
C |
Dec. 19, 2023, 2:20 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237864710 |
3inf |
C |
Dec. 19, 2023, 3:25 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237867685 |
turrid69 |
C |
Dec. 19, 2023, 4:18 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237870088 |
codeAlxx |
C |
Dec. 19, 2023, 4:54 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
46 |
0 |
|
|
237848831 |
N_z__ |
C |
Dec. 19, 2023, 12:33 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
15 |
102400 |
|
|
237818726 |
helloforces |
C |
Dec. 18, 2023, 4:51 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
|
237810132 |
Andreasyan |
C |
Dec. 18, 2023, 4:25 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
|
237824408 |
MUNISJONI_KHURSHEDJON |
C |
Dec. 18, 2023, 5:29 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237871345 |
yanyiwei233 |
C |
Dec. 19, 2023, 5:11 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237868288 |
Aurora101 |
C |
Dec. 19, 2023, 4:28 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237850587 |
duadua666 |
C |
Dec. 19, 2023, 1:36 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237850123 |
LUXINTONG |
C |
Dec. 19, 2023, 1:19 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237846162 |
enslaved |
C |
Dec. 18, 2023, 10:51 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237818595 |
Utrillas |
C |
Dec. 18, 2023, 4:50 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
31 |
0 |
|
|
237853154 |
JellyFishy |
C |
Dec. 19, 2023, 2:15 a.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
15 |
0 |
|
|
237871809 |
ombiradar04 |
C |
Dec. 19, 2023, 5:17 a.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
15 |
0 |
|
|
237828573 |
nayonmondol18 |
C |
Dec. 18, 2023, 6:04 p.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
30 |
0 |
|
|
237842734 |
202101101 |
C |
Dec. 18, 2023, 9:20 p.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
30 |
0 |
|
|
237849293 |
coderrookie |
C |
Dec. 19, 2023, 12:50 a.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
30 |
0 |
|
|
237872141 |
FelixArg |
C |
Dec. 19, 2023, 5:21 a.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
31 |
0 |
|
|
237874745 |
alpha_jeet |
C |
Dec. 19, 2023, 5:53 a.m. |
OK |
GNU C++20 (64) |
TESTS |
11 |
31 |
0 |
|
|
237873911 |
Shahrear_Al_Sakib |
C |
Dec. 19, 2023, 5:44 a.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
31 |
0 |
|
|
237872940 |
K-423 |
C |
Dec. 19, 2023, 5:32 a.m. |
OK |
GNU C++20 (64) |
TESTS |
10 |
31 |
0 |
|
|
237875060 |
Tirth11 |
C |
Dec. 19, 2023, 5:56 a.m. |
OK |
GNU C++20 (64) |
TESTS |
11 |
31 |
0 |
|
|
237850410 |
SadFriedRice |
C |
Dec. 19, 2023, 1:29 a.m. |
OK |
Go |
TESTS |
10 |
78 |
819200 |
|
|
237853621 |
0x3F |
C |
Dec. 19, 2023, 2:26 a.m. |
OK |
Go |
TESTS |
10 |
78 |
819200 |
|
|
237853377 |
0x3F |
C |
Dec. 19, 2023, 2:20 a.m. |
OK |
Go |
TESTS |
10 |
78 |
819200 |
|
|
237853427 |
0x3F |
C |
Dec. 19, 2023, 2:21 a.m. |
OK |
Go |
TESTS |
10 |
93 |
819200 |
|
|
237820957 |
mohit458 |
C |
Dec. 18, 2023, 5:04 p.m. |
OK |
Java 11 |
TESTS |
10 |
202 |
0 |
|
|
237824879 |
mattr |
C |
Dec. 18, 2023, 5:33 p.m. |
OK |
Java 11 |
TESTS |
10 |
233 |
0 |
|
|
237834381 |
Jagnath_Reddy |
C |
Dec. 18, 2023, 7:08 p.m. |
OK |
Java 11 |
TESTS |
10 |
280 |
0 |
|
|
237871410 |
Nanthakumar06 |
C |
Dec. 19, 2023, 5:12 a.m. |
OK |
Java 11 |
TESTS |
10 |
327 |
0 |
|
|
237821089 |
kasiru_69 |
C |
Dec. 18, 2023, 5:05 p.m. |
OK |
Java 11 |
TESTS |
10 |
545 |
0 |
|
|
237832719 |
shubham202012 |
C |
Dec. 18, 2023, 6:48 p.m. |
OK |
Java 11 |
TESTS |
10 |
545 |
39014400 |
|
|
237840811 |
kribri |
C |
Dec. 18, 2023, 8:43 p.m. |
OK |
Java 11 |
TESTS |
10 |
560 |
0 |
|
|
237834167 |
Jagnath_Reddy |
C |
Dec. 18, 2023, 7:05 p.m. |
OK |
Java 11 |
TESTS |
10 |
561 |
0 |
|
|
237815402 |
2110039467 |
C |
Dec. 18, 2023, 4:34 p.m. |
OK |
Java 11 |
TESTS |
10 |
811 |
0 |
|
|
237815429 |
mayankh250811 |
C |
Dec. 18, 2023, 4:34 p.m. |
OK |
Java 11 |
TESTS |
10 |
826 |
0 |
|
|
237864838 |
nis1234 |
C |
Dec. 19, 2023, 3:27 a.m. |
OK |
Java 17 |
TESTS |
10 |
202 |
307200 |
|
|
237830602 |
aishwarykesarwani |
C |
Dec. 18, 2023, 6:24 p.m. |
OK |
Java 17 |
TESTS |
10 |
218 |
614400 |
|
|
237834446 |
1isGreaterThan0 |
C |
Dec. 18, 2023, 7:09 p.m. |
OK |
Java 17 |
TESTS |
10 |
264 |
512000 |
|
|
237868719 |
Suraj1607 |
C |
Dec. 19, 2023, 4:34 a.m. |
OK |
Java 17 |
TESTS |
10 |
311 |
614400 |
|
|
237828097 |
Pratham2908 |
C |
Dec. 18, 2023, 6 p.m. |
OK |
Java 17 |
TESTS |
10 |
405 |
409600 |
|
|
237868974 |
Neet0110 |
C |
Dec. 19, 2023, 4:38 a.m. |
OK |
Java 17 |
TESTS |
10 |
607 |
716800 |
|
|
237812697 |
Akilan_V_B |
C |
Dec. 18, 2023, 4:30 p.m. |
OK |
Java 17 |
TESTS |
10 |
607 |
716800 |
|
|
237834651 |
Ashuraj_Herode |
C |
Dec. 18, 2023, 7:11 p.m. |
OK |
Java 17 |
TESTS |
10 |
670 |
921600 |
|
|
237811088 |
jai_hanumant |
C |
Dec. 18, 2023, 4:27 p.m. |
OK |
Java 17 |
TESTS |
10 |
701 |
512000 |
|
|
237867748 |
Neet0110 |
C |
Dec. 19, 2023, 4:19 a.m. |
OK |
Java 17 |
TESTS |
10 |
1060 |
921600 |
|
|
237845616 |
susvant |
C |
Dec. 18, 2023, 10:34 p.m. |
OK |
Java 21 |
TESTS |
10 |
373 |
0 |
|
|
237812119 |
sarthak_33 |
C |
Dec. 18, 2023, 4:29 p.m. |
OK |
Java 21 |
TESTS |
10 |
701 |
409600 |
|
|
237816270 |
pratap.S007 |
C |
Dec. 18, 2023, 4:38 p.m. |
OK |
Java 21 |
TESTS |
10 |
748 |
614400 |
|
|
237871510 |
2100031431cseh |
C |
Dec. 19, 2023, 5:13 a.m. |
OK |
Java 21 |
TESTS |
10 |
795 |
819200 |
|
|
237817568 |
maaKaBhosda_Part2 |
C |
Dec. 18, 2023, 4:44 p.m. |
OK |
Java 8 |
TESTS |
10 |
139 |
0 |
|
|
237868855 |
naitikvarshney |
C |
Dec. 19, 2023, 4:36 a.m. |
OK |
Java 8 |
TESTS |
10 |
155 |
0 |
|
|
237818534 |
amsem |
C |
Dec. 18, 2023, 4:50 p.m. |
OK |
Java 8 |
TESTS |
10 |
171 |
0 |
|
|
237823318 |
zhassulan018 |
C |
Dec. 18, 2023, 5:21 p.m. |
OK |
Java 8 |
TESTS |
10 |
248 |
0 |
|
|
237819859 |
priyaroy3370 |
C |
Dec. 18, 2023, 4:57 p.m. |
OK |
Java 8 |
TESTS |
10 |
358 |
0 |
|
|
237832852 |
Sumitsingh7 |
C |
Dec. 18, 2023, 6:49 p.m. |
OK |
Java 8 |
TESTS |
10 |
529 |
7475200 |
|
|
237831439 |
Sumitsingh7 |
C |
Dec. 18, 2023, 6:33 p.m. |
OK |
Java 8 |
TESTS |
10 |
608 |
7475200 |
|
|
237828593 |
Elagamy |
C |
Dec. 18, 2023, 6:04 p.m. |
OK |
Java 8 |
TESTS |
10 |
655 |
0 |
|
|
237866832 |
amit_roy |
C |
Dec. 19, 2023, 4:02 a.m. |
OK |
Java 8 |
TESTS |
10 |
794 |
0 |
|
|
237864921 |
ZENGRUI |
C |
Dec. 19, 2023, 3:29 a.m. |
OK |
Java 8 |
TESTS |
10 |
997 |
0 |
|
|
237819598 |
NajlSadek |
C |
Dec. 18, 2023, 4:56 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
280 |
0 |
|
|
237813909 |
Nik_think_about |
C |
Dec. 18, 2023, 4:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
296 |
0 |
|
|
237810073 |
Swayam78 |
C |
Dec. 18, 2023, 4:25 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
312 |
0 |
|
|
237822809 |
serafima.khokhlova2000 |
C |
Dec. 18, 2023, 5:17 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
374 |
0 |
|
|
237873667 |
yashchauhan_04 |
C |
Dec. 19, 2023, 5:41 a.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
404 |
0 |
|
|
237834765 |
rsFalse |
C |
Dec. 18, 2023, 7:12 p.m. |
OK |
Perl |
TESTS |
10 |
436 |
0 |
|
|
237836543 |
Ysb04 |
C |
Dec. 18, 2023, 7:34 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
311 |
9728000 |
|
|
237826821 |
jvatsal0709 |
C |
Dec. 18, 2023, 5:48 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
311 |
9728000 |
|
|
237819007 |
Track-Days |
C |
Dec. 18, 2023, 4:52 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
452 |
9216000 |
|
|
237811100 |
mahnameisayush |
C |
Dec. 18, 2023, 4:27 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
1123 |
8908800 |
|
|
237865366 |
CS_S |
C |
Dec. 19, 2023, 3:37 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
1154 |
9216000 |
|
|
237838442 |
porker2008 |
C |
Dec. 18, 2023, 8:03 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
1169 |
9318400 |
|
|
237869415 |
dastankg |
C |
Dec. 19, 2023, 4:45 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
1278 |
9523200 |
|
|
237844729 |
VioletVal |
C |
Dec. 18, 2023, 10:08 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
1341 |
11059200 |
|
|
237835711 |
oneku16 |
C |
Dec. 18, 2023, 7:24 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
124 |
7168000 |
|
|
237818018 |
shivank_2409 |
C |
Dec. 18, 2023, 4:47 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
139 |
6860800 |
|
|
237829974 |
aayush_chhabra |
C |
Dec. 18, 2023, 6:18 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
140 |
9011200 |
|
|
237865511 |
pennymagic156 |
C |
Dec. 19, 2023, 3:39 a.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
140 |
9113600 |
|
|
237862463 |
blue_ice_yj |
C |
Dec. 19, 2023, 2:41 a.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
155 |
7680000 |
|
|
237828831 |
daszybak |
C |
Dec. 18, 2023, 6:06 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
155 |
8908800 |
|
|
237824463 |
Shadow___Monarch___JR |
C |
Dec. 18, 2023, 5:30 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
155 |
9113600 |
|
|
237869590 |
tnv2004 |
C |
Dec. 19, 2023, 4:48 a.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
155 |
9216000 |
|
|
237815838 |
blunderer |
C |
Dec. 18, 2023, 4:37 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
155 |
9318400 |
|
|
237822616 |
Shadow___Monarch___JR |
C |
Dec. 18, 2023, 5:16 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
156 |
8806400 |
|
|
237812792 |
Yanzx |
C |
Dec. 18, 2023, 4:30 p.m. |
OK |
Python 3 |
TESTS |
10 |
420 |
307200 |
|
|
237869892 |
rahul_opz |
C |
Dec. 19, 2023, 4:52 a.m. |
OK |
Python 3 |
TESTS |
10 |
514 |
250982400 |
|
|
237816195 |
yosaka |
C |
Dec. 18, 2023, 4:38 p.m. |
OK |
Python 3 |
TESTS |
10 |
530 |
2048000 |
|
|
237833040 |
prabhat_7167 |
C |
Dec. 18, 2023, 6:52 p.m. |
OK |
Python 3 |
TESTS |
10 |
779 |
102400 |
|
|
237869095 |
rahul_opz |
C |
Dec. 19, 2023, 4:40 a.m. |
OK |
Python 3 |
TESTS |
10 |
795 |
250982400 |
|
|
237815388 |
rsg2100090066 |
C |
Dec. 18, 2023, 4:34 p.m. |
OK |
Python 3 |
TESTS |
10 |
810 |
102400 |
|
|
237819002 |
lapras100 |
C |
Dec. 18, 2023, 4:52 p.m. |
OK |
Python 3 |
TESTS |
10 |
826 |
1228800 |
|
|
237869692 |
rahul_opz |
C |
Dec. 19, 2023, 4:49 a.m. |
OK |
Python 3 |
TESTS |
10 |
826 |
2252800 |
|
|
237872000 |
eugalt |
C |
Dec. 19, 2023, 5:19 a.m. |
OK |
Python 3 |
TESTS |
10 |
826 |
9523200 |
|
|
237873488 |
eugalt |
C |
Dec. 19, 2023, 5:39 a.m. |
OK |
Python 3 |
TESTS |
10 |
841 |
9420800 |
|
|
237833177 |
vstiff |
C |
Dec. 18, 2023, 6:53 p.m. |
OK |
Rust 2021 |
TESTS |
10 |
46 |
0 |
|
|
237814213 |
Hell__Fire |
C |
Dec. 18, 2023, 4:33 p.m. |
OK |
Rust 2021 |
TESTS |
10 |
374 |
0 |
|
|
237814699 |
Hell__Fire |
C |
Dec. 18, 2023, 4:34 p.m. |
OK |
Rust 2021 |
TESTS |
10 |
405 |
0 |
|
|
237832909 |
vstiff |
C |
Dec. 18, 2023, 6:50 p.m. |
OK |
Rust 2021 |
TESTS |
10 |
436 |
0 |
|
|
237810978 |
emiliopeju |
C |
Dec. 18, 2023, 4:27 p.m. |
OK |
Rust 2021 |
TESTS |
10 |
498 |
0 |
|
|
remove filters
Back to search problems