Submit | All submissions | Best solutions | Back to list |
Added by: | Rishav Goyal |
Date: | 2014-04-16 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | Own |
hide comments
|
|||||
2022-10-21 02:49:18
Long long!!! Last edit: 2022-10-21 02:49:47 |
|||||
2022-10-01 14:04:17
notice that operation 3 says that <=10^7... so if you got a RE please check whether the number is less than 10^7 first, then check if it is a prime number... |
|||||
2022-04-29 14:18:51
ODT trash this |
|||||
2020-08-11 03:14:07
After tons of WA finally got it accepted! Nice problem. |
|||||
2019-10-03 12:09:32
ODT can solve this problem easily.. |
|||||
2018-06-29 06:09:05
read the 3rd query carefully it says <=10^7.....if u ignore this then AC will ignore u..:) |
|||||
2018-05-19 18:39:29
Nice question learned something new |
|||||
2017-03-19 05:49:04
properly look input format and range otherwise runtime error or wrong answer.. nice ques. |
|||||
2016-06-13 22:03:56
I got AC assuming 0 <= A[i] <= 2^32 at all times Last edit: 2016-06-17 04:20:59 |
|||||
2016-06-02 22:44:16
can the numbers in the array go negative at any point? |