292436756 I followed the correct approach but it is giving TLE. unable to figureout why im getting TLE. Can someone please help me with this.1486C1 - Guessing the Greatest (easy version)
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 170 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 158 |
5 | -is-this-fft- | 158 |
7 | adamant | 154 |
7 | Dominater069 | 154 |
9 | awoo | 153 |
10 | luogu_official | 152 |
292436756 I followed the correct approach but it is giving TLE. unable to figureout why im getting TLE. Can someone please help me with this.1486C1 - Guessing the Greatest (easy version)
Problem Link : 1895C - Torn Lucky Ticket Submission Link : 257911247
Im getting exit code: -1073741819 (STATUS_ACCESS_VIOLATION), checker exit code: 0, verdict: RUNTIME_ERROR for this code. Im unable to figue out. Can someone help me out in this!!.
Problem Link : 1955D - Inaccurate Subsequence Search Submission : 256939551 My Approach : I tried to solve this problem using and array of size (1e6+1).Wth the help of sliding window technique i updated the segments. But i got Time limit Exceeded for O(N). Unable to figure out why Im getting TLE. Could someone please help me out in this.
Problem link : 1920D - Array Repetition Submission : 248332727 My Approach : I stored the sizes of the array in a vector whenever an element is inserted and stored that element in a map. Incase of array repititon i just updated the size. To find the number at a given index im using a upper_bound() and iterating until it points to an index present in the map. This approach is worked well for many cases. But im getting wrong answer. Im unable to figure out where it is going wrong. can someone please help me with this .
Problem link : https://mirror.codeforces.com/contest/1926/problem/D Submission : 247469924
My Approach Here I tried to make the groups of 2 integers whose xor will be 0. If we consider number of bits=3 then max possible number in binary = 111(7) and after flipping the bits it will be 000(0). lets take a number 101(5) after flipping bits it will be 010(2) (as we are considering only 3 bits) then i concluded to get the number after flipping the bits we should do (maxPossibleNumber — currNumber) -> this gives the number after flip. In the same way I formed the groups for 11 bits maxnum=2147483647 for the given problem. But im getting TLE for this code. But unable to figure out why im getting TLE.Even though it is an O(N) approach. Please help me out in this.
Name |
---|