Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

sequence

Revision en4, by didaihocdaihoc, 2017-10-13 14:15:51

i get stuck on problem, i try to solve it, i don't come up with any idea: so i need help.

statement :

input : a given sequence n and number k

task : count all sequence that thier product is less than or equa k.

ex :

input : 9 10

11 1 2 1 1 5 10 2 3

ouput : 10

hope your help. thanks

Tags arithmetic sequence, binary seach

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English didaihocdaihoc 2017-10-13 14:16:42 25 Tiny change: '. thanks\n' -> '. thanks\n\n' (published)
en4 English didaihocdaihoc 2017-10-13 14:15:51 14 Tiny change: '. thanks\n' -> '. thanks\n\n'
en3 English didaihocdaihoc 2017-10-13 14:15:31 2 Tiny change: '. thanks\n' -> '. thanks\n\n'
en2 English didaihocdaihoc 2017-10-13 14:13:32 4 (saved to drafts)
en1 English didaihocdaihoc 2017-10-13 14:11:57 308 Initial revision (published)