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'There are n programmers that you want to split into several non-empty teams. The skill of the i -th programmer is a_i . You want to assemble the maximum number of teams from them. There is a restriction for each team: the number of programmers in the team multiplied by the minimum skill among all programmers in the team must be at least x . Each programmer should belong to at most one team. Some programmers may be left without a team. Calculate the maximum number of teams that you can assemble. The first line contains the integer t ( 1 <= t <= 1000 ) -- the number of test cases. The first line of each test case contains two integers n and x ( 1 <= n <= 10^5; 1 <= x <= 10^9 ) -- the number of programmers and the restriction of team skill respectively. The second line of each test case contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ), where a_i is the skill of the i -th programmer. The sum of n over all inputs does not exceed 10^5 . For each test case print one integer -- the maximum number of teams that you can assemble. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
86686438 |
Gassa |
C |
July 12, 2020, 4:22 p.m. |
OK |
D |
TESTS |
15 |
61 |
10854400 |
|
|
86684503 |
ruban |
C |
July 12, 2020, 4:11 p.m. |
OK |
Delphi |
TESTS |
15 |
77 |
148889600 |
|
|
86683234 |
Mithu.ict |
C |
July 12, 2020, 4:05 p.m. |
OK |
GNU C11 |
TESTS |
15 |
46 |
4096000 |
|
|
86679649 |
singerl |
C |
July 12, 2020, 3:51 p.m. |
OK |
GNU C11 |
TESTS |
15 |
46 |
4096000 |
|
|
86721297 |
AjMain129 |
C |
July 13, 2020, 5:54 a.m. |
OK |
GNU C11 |
TESTS |
15 |
46 |
5324800 |
|
|
86721370 |
AbirChy |
C |
July 13, 2020, 5:55 a.m. |
OK |
GNU C11 |
TESTS |
15 |
46 |
5324800 |
|
|
86721350 |
SUNNY24 |
C |
July 13, 2020, 5:55 a.m. |
OK |
GNU C11 |
TESTS |
15 |
62 |
4505600 |
|
|
86702506 |
aryabhattahp |
C |
July 12, 2020, 7:30 p.m. |
OK |
GNU C11 |
TESTS |
15 |
62 |
4608000 |
|
|
86693111 |
Amin.s |
C |
July 12, 2020, 5:05 p.m. |
OK |
GNU C11 |
TESTS |
15 |
139 |
4915200 |
|
|
86667826 |
SUAREZ9 |
C |
July 12, 2020, 3:18 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
30 |
4300800 |
|
|
86677805 |
wang_sj |
C |
July 12, 2020, 3:45 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4300800 |
|
|
86677278 |
z-bb |
C |
July 12, 2020, 3:43 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86675117 |
scimoon |
C |
July 12, 2020, 3:36 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86666954 |
killyou |
C |
July 12, 2020, 3:17 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86716564 |
hnust_liuxin |
C |
July 13, 2020, 4:22 a.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86710485 |
HHU-DengLun |
C |
July 13, 2020, 12:47 a.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86695707 |
suxxsfe |
C |
July 12, 2020, 5:29 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86688743 |
void_basic_learner |
C |
July 12, 2020, 4:35 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
4710400 |
|
|
86677154 |
lzzAKIOI |
C |
July 12, 2020, 3:42 p.m. |
OK |
GNU C++11 |
TESTS |
15 |
31 |
5427200 |
|
|
86705488 |
rishavkumar |
C |
July 12, 2020, 8:51 p.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86704840 |
Olium_MdioxideN |
C |
July 12, 2020, 8:31 p.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86701730 |
Kahawala |
C |
July 12, 2020, 7:12 p.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86707073 |
flamestorm |
C |
July 12, 2020, 9:47 p.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86719098 |
singhpriyank |
C |
July 13, 2020, 5:16 a.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86720134 |
pseudo-code |
C |
July 13, 2020, 5:35 a.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86713876 |
hhhhyang |
C |
July 13, 2020, 3:01 a.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86713076 |
Apurv_Gupta |
C |
July 13, 2020, 2:34 a.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86711673 |
sjl623 |
C |
July 13, 2020, 1:39 a.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86707917 |
preyam |
C |
July 12, 2020, 10:18 p.m. |
OK |
GNU C++14 |
TESTS |
15 |
46 |
4096000 |
|
|
86669101 |
LayCurse |
C |
July 12, 2020, 3:20 p.m. |
OK |
GNU C++17 |
TESTS |
15 |
31 |
102809600 |
|
|
86710650 |
Void_Monitor |
C |
July 13, 2020, 12:55 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86703822 |
CosmicWolf |
C |
July 12, 2020, 8:03 p.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86721245 |
Magician__1307 |
C |
July 13, 2020, 5:53 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86718257 |
MESSI10GOAT |
C |
July 13, 2020, 4:59 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86714943 |
GrimReaper42 |
C |
July 13, 2020, 3:38 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86714156 |
AngelVzla99 |
C |
July 13, 2020, 3:10 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86713822 |
GuoYC |
C |
July 13, 2020, 2:59 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86711811 |
NazmusSakib01 |
C |
July 13, 2020, 1:44 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86711986 |
Wangxuelong |
C |
July 13, 2020, 1:52 a.m. |
OK |
GNU C++17 |
TESTS |
15 |
46 |
4096000 |
|
|
86676427 |
BBehemothh |
C |
July 12, 2020, 3:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86715120 |
Hamoudi |
C |
July 13, 2020, 3:43 a.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86702066 |
Mangooste |
C |
July 12, 2020, 7:19 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86699320 |
humberto |
C |
July 12, 2020, 6:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86691521 |
__cucumber__ |
C |
July 12, 2020, 4:54 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86689596 |
_Stefan_ |
C |
July 12, 2020, 4:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86683594 |
najmul__nayeem |
C |
July 12, 2020, 4:07 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86682632 |
besieger |
C |
July 12, 2020, 4:03 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86678577 |
FflashkingF |
C |
July 12, 2020, 3:47 p.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
4710400 |
|
|
86717037 |
Infuse |
C |
July 13, 2020, 4:34 a.m. |
OK |
GNU C++17 (64) |
TESTS |
15 |
31 |
5120000 |
|
|
86711760 |
Russell_Emerine |
C |
July 13, 2020, 1:42 a.m. |
OK |
Haskell |
TESTS |
15 |
342 |
34713600 |
|
|
86684523 |
atishay127 |
C |
July 12, 2020, 4:11 p.m. |
OK |
Java 11 |
TESTS |
15 |
186 |
24064000 |
|
|
86688491 |
aryankhatri |
C |
July 12, 2020, 4:33 p.m. |
OK |
Java 11 |
TESTS |
15 |
187 |
23859200 |
|
|
86679731 |
Anonymous |
C |
July 12, 2020, 3:51 p.m. |
OK |
Java 11 |
TESTS |
15 |
187 |
31641600 |
|
|
86680196 |
ImFish |
C |
July 12, 2020, 3:53 p.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
23859200 |
|
|
86679277 |
megyeri99 |
C |
July 12, 2020, 3:49 p.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
23859200 |
|
|
86675307 |
jay_vish |
C |
July 12, 2020, 3:37 p.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
23859200 |
|
|
86680526 |
nafiz6 |
C |
July 12, 2020, 3:54 p.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
23961600 |
|
|
86715596 |
suryansh.official100 |
C |
July 13, 2020, 3:56 a.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
24166400 |
|
|
86718450 |
jash_07 |
C |
July 13, 2020, 5:03 a.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
27340800 |
|
|
86691630 |
nickjosi |
C |
July 12, 2020, 4:54 p.m. |
OK |
Java 11 |
TESTS |
15 |
202 |
27340800 |
|
|
86674699 |
mufaddalnaya |
C |
July 12, 2020, 3:35 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
20377600 |
|
|
86682251 |
ShesMyNerd |
C |
July 12, 2020, 4:01 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
20684800 |
|
|
86680462 |
ashraybharambe |
C |
July 12, 2020, 3:54 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
20684800 |
|
|
86678810 |
KharYusuf |
C |
July 12, 2020, 3:48 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
20787200 |
|
|
86676631 |
Deepatel |
C |
July 12, 2020, 3:41 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
21094400 |
|
|
86670784 |
yash49 |
C |
July 12, 2020, 3:24 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
21196800 |
|
|
86702861 |
mr___hacker____ |
C |
July 12, 2020, 7:39 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
21196800 |
|
|
86691260 |
aman28rwt |
C |
July 12, 2020, 4:52 p.m. |
OK |
Java 8 |
TESTS |
15 |
124 |
21401600 |
|
|
86670345 |
saurabhs1206 |
C |
July 12, 2020, 3:23 p.m. |
OK |
Java 8 |
TESTS |
15 |
139 |
20377600 |
|
|
86674038 |
abc_000 |
C |
July 12, 2020, 3:33 p.m. |
OK |
Java 8 |
TESTS |
15 |
139 |
20480000 |
|
|
86683368 |
sylvyrfysh |
C |
July 12, 2020, 4:06 p.m. |
OK |
Kotlin |
TESTS |
15 |
171 |
21401600 |
|
|
86676059 |
kelvinc1024 |
C |
July 12, 2020, 3:39 p.m. |
OK |
Kotlin |
TESTS |
15 |
186 |
22220800 |
|
|
86674329 |
Tlatoani |
C |
July 12, 2020, 3:34 p.m. |
OK |
Kotlin |
TESTS |
15 |
217 |
28774400 |
|
|
86668380 |
golions |
C |
July 12, 2020, 3:19 p.m. |
OK |
Kotlin |
TESTS |
15 |
218 |
28672000 |
|
|
86679870 |
STommydx |
C |
July 12, 2020, 3:51 p.m. |
OK |
Kotlin |
TESTS |
15 |
265 |
27852800 |
|
|
86676439 |
andy.gusev |
C |
July 12, 2020, 3:40 p.m. |
OK |
Kotlin |
TESTS |
15 |
280 |
27750400 |
|
|
86699098 |
wbars |
C |
July 12, 2020, 6:20 p.m. |
OK |
Kotlin |
TESTS |
15 |
327 |
23347200 |
|
|
86694064 |
misoft |
C |
July 12, 2020, 5:12 p.m. |
OK |
Kotlin |
TESTS |
15 |
343 |
23040000 |
|
|
86702072 |
Mosyagin |
C |
July 12, 2020, 7:19 p.m. |
OK |
Mono C# |
TESTS |
15 |
109 |
19046400 |
|
|
86693040 |
anish.1922 |
C |
July 12, 2020, 5:05 p.m. |
OK |
Mono C# |
TESTS |
15 |
124 |
23859200 |
|
|
86677739 |
Mushegh |
C |
July 12, 2020, 3:44 p.m. |
OK |
MS C++ |
TESTS |
15 |
46 |
4915200 |
|
|
86677483 |
SPOON796 |
C |
July 12, 2020, 3:43 p.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
62 |
4403200 |
|
|
86714219 |
Alvin_Ma |
C |
July 13, 2020, 3:13 a.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
4096000 |
|
|
86686128 |
dddttdCF |
C |
July 12, 2020, 4:20 p.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
4096000 |
|
|
86676620 |
JulesIMF |
C |
July 12, 2020, 3:41 p.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
4505600 |
|
|
86685542 |
0Mordecai0 |
C |
July 12, 2020, 4:17 p.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
4505600 |
|
|
86687519 |
GrandAdmiralThraun |
C |
July 12, 2020, 4:27 p.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
5222400 |
|
|
86716742 |
gbanuel3 |
C |
July 13, 2020, 4:27 a.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
6041600 |
|
|
86715428 |
skymin |
C |
July 13, 2020, 3:52 a.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
109 |
147968000 |
|
|
86706770 |
Monitorz |
C |
July 12, 2020, 9:35 p.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
124 |
4096000 |
|
|
86719596 |
jain_prateek |
C |
July 13, 2020, 5:25 a.m. |
OK |
MS C++ 2017 |
TESTS |
15 |
124 |
4096000 |
|
|
86700385 |
Loremon |
C |
July 12, 2020, 6:43 p.m. |
OK |
Node.js |
TESTS |
15 |
217 |
26828800 |
|
|
86694409 |
Darooha |
C |
July 12, 2020, 5:14 p.m. |
OK |
Ocaml |
TESTS |
15 |
124 |
6348800 |
|
|
86676065 |
a1ikeda |
C |
July 12, 2020, 3:39 p.m. |
OK |
Perl |
TESTS |
15 |
124 |
19558400 |
|
|
86677613 |
raj1307 |
C |
July 12, 2020, 3:44 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
139 |
31641600 |
|
|
86681755 |
realnimish |
C |
July 12, 2020, 3:59 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
140 |
32665600 |
|
|
86677473 |
sksshivam007 |
C |
July 12, 2020, 3:43 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
155 |
35840000 |
|
|
86670021 |
pajenegod |
C |
July 12, 2020, 3:22 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
170 |
31129600 |
|
|
86674885 |
bazzyadb |
C |
July 12, 2020, 3:35 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
171 |
31027200 |
|
|
86682345 |
starkizard |
C |
July 12, 2020, 4:01 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
186 |
33177600 |
|
|
86707023 |
lebron87 |
C |
July 12, 2020, 9:45 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
217 |
32358400 |
|
|
86672563 |
alexwice |
C |
July 12, 2020, 3:29 p.m. |
OK |
PyPy 2 |
TESTS |
15 |
218 |
32665600 |
|
|
86684739 |
gintoki_s |
C |
July 12, 2020, 4:12 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
171 |
29388800 |
|
|
86675605 |
aberent |
C |
July 12, 2020, 3:38 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
171 |
29388800 |
|
|
86684808 |
PracticeAccountICL |
C |
July 12, 2020, 4:13 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
186 |
29696000 |
|
|
86671454 |
neterukun |
C |
July 12, 2020, 3:26 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
186 |
29798400 |
|
|
86681805 |
kclee2172 |
C |
July 12, 2020, 3:59 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
186 |
32460800 |
|
|
86678717 |
_apurv_ |
C |
July 12, 2020, 3:47 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
187 |
29798400 |
|
|
86684316 |
a0976531005 |
C |
July 12, 2020, 4:10 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
202 |
29798400 |
|
|
86712124 |
siyy |
C |
July 13, 2020, 1:58 a.m. |
OK |
PyPy 3 |
TESTS |
15 |
202 |
30412800 |
|
|
86675455 |
Vedkribhu |
C |
July 12, 2020, 3:37 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
202 |
30412800 |
|
|
86681861 |
tiwari0000 |
C |
July 12, 2020, 3:59 p.m. |
OK |
PyPy 3 |
TESTS |
15 |
202 |
30515200 |
|
|
86700937 |
ComptineDunAutreEte |
C |
July 12, 2020, 6:54 p.m. |
OK |
Python 2 |
TESTS |
15 |
233 |
12083200 |
|
|
86696370 |
junmiao |
C |
July 12, 2020, 5:38 p.m. |
OK |
Python 2 |
TESTS |
15 |
405 |
21913600 |
|
|
86718863 |
MohanPutti |
C |
July 13, 2020, 5:11 a.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15052800 |
|
|
86689041 |
evg-zhabotinsky |
C |
July 12, 2020, 4:37 p.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15257600 |
|
|
86716285 |
safal.gupta001 |
C |
July 13, 2020, 4:14 a.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15360000 |
|
|
86678465 |
Rishi_1311 |
C |
July 12, 2020, 3:47 p.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15360000 |
|
|
86671240 |
kingmoshe |
C |
July 12, 2020, 3:25 p.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15360000 |
|
|
86716965 |
HJPASIMK |
C |
July 13, 2020, 4:32 a.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15667200 |
|
|
86685178 |
santhoshsai85 |
C |
July 12, 2020, 4:15 p.m. |
OK |
Python 3 |
TESTS |
15 |
171 |
15667200 |
|
|
86714646 |
KanhuKeNanu |
C |
July 13, 2020, 3:26 a.m. |
OK |
Python 3 |
TESTS |
15 |
186 |
14745600 |
|
|
86686643 |
beaver48 |
C |
July 12, 2020, 4:23 p.m. |
OK |
Python 3 |
TESTS |
15 |
186 |
15360000 |
|
|
86686088 |
subhajitdas |
C |
July 12, 2020, 4:20 p.m. |
OK |
Python 3 |
TESTS |
15 |
186 |
15360000 |
|
|
86713729 |
sansen |
C |
July 13, 2020, 2:56 a.m. |
OK |
Rust |
TESTS |
15 |
46 |
6041600 |
|
|
86672126 |
robostac |
C |
July 12, 2020, 3:28 p.m. |
OK |
Rust |
TESTS |
15 |
46 |
7168000 |
|
|
86697057 |
pandrei |
C |
July 12, 2020, 5:47 p.m. |
OK |
Rust |
TESTS |
15 |
46 |
9420800 |
|
|
86672700 |
fatemender |
C |
July 12, 2020, 3:30 p.m. |
OK |
Rust |
TESTS |
15 |
62 |
10137600 |
|
|
86678903 |
byte |
C |
July 12, 2020, 3:48 p.m. |
OK |
Scala |
TESTS |
15 |
483 |
40140800 |
|
|
86670368 |
limed |
C |
July 12, 2020, 3:23 p.m. |
OK |
Scala |
TESTS |
15 |
499 |
45260800 |
|
|
86703940 |
smas |
C |
July 12, 2020, 8:06 p.m. |
OK |
Scala |
TESTS |
15 |
561 |
45977600 |
|
|
86702607 |
IvanDyachenko |
C |
July 12, 2020, 7:33 p.m. |
OK |
Scala |
TESTS |
15 |
577 |
46080000 |
|
|
86688418 |
IvanDyachenko |
C |
July 12, 2020, 4:33 p.m. |
OK |
Scala |
TESTS |
15 |
608 |
46080000 |
|
|
remove filters
Back to search problems