Yahoo India Web Search

Search results

  1. Sep 13, 2021 · While using stuff like #define ll long long may reduce the amount of typing you need to do, and may win points in some bizarre coding competitions, such practices make code very hard to read, very hard to debug, and will likely disincline people on Stack Overflow from trying to help you.

  2. Sep 8, 2019 · SIGTSTP in codechef ide. Ask Question Asked 5 years, 2 months ago. Modified 5 years, 1 month ago. Viewed ...

  3. May 6, 2020 · 1. In the below loop, value at i'th index of vector<int> b is being added to long int s. Instead, b[k] should be added to long int s because the variable being used in the loop is k not i. s += b[i]; 2. In the question, range of variable n is given as (1 ≤ n ≤ 2.10^5). So, it is safe to use int n instead of long int n.

  4. Oct 15, 2016 · Whenever you use scanf(), you must check the return value to verify if input was correctly parsed into the destination arguments.

  5. Dec 27, 2019 · @UnholySheep Actually I think the i is initialized before use, although it is obfuscated. kc21: Even if you write code for competitive programming purposes, rewrite it in a readable way before posting it here (e.g. without hiding loops in #defines, etc.).

  6. Jul 19, 2019 · Probably unrelated, but be careful with long long int c[n], t[n];.If n is greater than a couple hundred thousand the program will probably exhaust the stack.

  7. Feb 3, 2020 · You have a Custom Input checkbox under the text area where you can write your code. You need to check it and write your number inside the text area that appeared.

  8. Jan 5, 2019 · 3. Advice -- If you're going to post attempts from an online coding site, and you know the input that gives the issue, post the code with the input hard-coded into the program. There is no need for scanf calls -- just fill the array (s) or variables with the data in the program. This makes it easier to simply take your code, compile it, run it ...

  9. May 14, 2019 · The following code runs fine on PyCharm but the CodeChef IDE simply won't take it. Am I missing something here? Please convince me I'm a fool for sitting on this all day I even tried switching to ...

  10. Dec 11, 2015 · I'm getting started with Codechef. I submitted following code in python to solve this question. The code below works fine with codechef's online (python) IDE as well as my local IDE. But, when I ...

  1. People also search for