| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 154 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 146 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 133 |
| 10 | cry | 130 |
|
0
E1 passed main tests |
|
+1
My submission is in queue from 30 mins, is the system down?? |
|
0
if (float(r+1)/2)>l then NO else YES |
|
0
I think it's supposed to be solved in O(n), sol |
|
0
1 is not prime :) and its given in problem that sum should be prime |
|
0
C was a case work ^^' |
|
0
One thing you can do is check if array is strictly decreasing, then answer will be NO in all other cases answer will be YES |
|
0
Value of num is very large it can't fit in int or long long , use string for num , A |
|
0
The input number is very large you cannot store it in int or long , use string to store the number, A |
|
0
For problem A size of number is not given so you cannot store it in int try using string to input number, A |
|
0
Print 0 and print array in any order |
|
0
if you maximize 2,2 pair you might consume some 2 from (2,1) pair which has potential of adding +2 where as in 2,2 pair it will add 0 . |
|
0
if k<n, we can either generate all odd values of k(less than equal to n) if n is odd or we can generate all even values of k(less than equal to n) if n is even if n=8: {(b=8, k=8) (b=7, k=6) (b=6, k=4) (b=5, k=2) (b=4, k=0)} if n=9: {(b=9, k=9) (b=8, k=7) (b=7, k=5) (b=6, k=3) (b=5, k=1)} Hence if n is even and the desired k is even then ans=0,else increment n and ans=1 else if n is odd and the desired k odd then ans=0, else increment n ans ans=1 |
|
0
The maximum number of special exchange on any case will be 2, i took a single subarray and for every element in that subarray i checked whether it is in its correct position or not, and even if there was a single element in correct place it would take 2 special exchange(as after the change no element should have same position should similar to its initial position, so all elements in correct position must be displaced). my solution it passed the pretests. |
|
0
can you point out the mistake in my code for problem C and why have you decremented n in while loop? |
|
0
|
|
0
We have been provided with an array all elements are equal to zero except 1, and we need to find the number of elements which can end up equal to 1 after swapping . Now for the queries if the given interval is overlapping with even one element equal to 1 the all the elements in that interval in can end up as 1. So till the last query we can calculate all the elements which can be turned 1. Here is my solution B |
|
+3
Thanks i got it !^_^ |
|
0
Why does the array needs to be of char type?? |
|
+3
Can somebody help me with my solution to problem E?? my solution E |
| Name |
|---|


