Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live
↧

Cheating in ACM Amritapuri online contest.

https://www.hackerrank.com/rest/contests/amrita13/challenges/blurry-vision/hackers/codemates2/download_solutionhttps://www.hackerrank.com/rest/contests/amrita13/challenges/blurry-vision/hackers/code_sc...

View Article


Collegewise Ranking Plugin

How to add the College-wise ranking plugin in chrome?Whenever, I download the .crx file, it says "apps, extensions, scripts cannot be added from this website".

View Article


input file

How to handle the input file provided in programming contests(like facebook hacker cup)? specifically talking about file handling in c++..

View Article

Ratings of November long and November Cook off

Has Codechef stopped updating ratings ?

View Article

c++ new standards

I am getting this error. It is my first submission at CodeChef. I have however eliminated conio.h and is using iostream and have also included "using namespace std;".prog.cpp: In function ‘int main()’:...

View Article


Holes in the text problem(Please tell me why this code is not working)

#include<iostream> #include<iomanip> #include<string.h> int main() { int i,len=0,count,test,j; char a[101]; cin>>test; for(j=1;j<=test;j++) { cin>>a;...

View Article

HOLES IN TEXT

this code runs well for given test case ....but gives runtime error.Please help#include<stdio.h> int main() { char b[20]; int i=0,c=0,t=0; scanf("%d",&t); while(t--) { c=0; i=0;...

View Article

Question/Answer community vs Typical threaded discussion forum?

How is a Question/Answer community different from a typical forum?

View Article


Windows.h for C++

When I code I always use windows.h for system("pause"), but when I upload my code to this site it always gives me a compile error. What did I do wrong?

View Article


November challenge

When will the winners blog get updated . As codechef has taken quite a bit of time to update ratings and now they are delaying in updating the blogs .. Is it for this time or will it be the case for...

View Article

COOKFOOD - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSimplePRE-REQUISITESRecurrences, Simple MathProblem:Chef is cooking two dishes, each one takes N processes to be prepared. Chef has K equipments which allow for K...

View Article

Math formula derivation help?? (COOKFOOD)

Can someone explain the math with an example on how (K-2)^2 + K-1 choices are derived?? This question is tagged as simple math but I'm not fully able to wrap the math part though i understand it in...

View Article

Python 3.3 NZEC (Pairwise AND Sum)

import math import sys n = 1 cases = 0 num = 0 arr = [0 for i in range(0,30)] ans = 0 #print('Enter the test cases') cases = int(input()) while cases: num = int(input()) for i in range(0,30): if num %...

View Article


NUMBERS - Editorial

Problem Link:PracticeContestDifficulty:CakeWalkPre-requisites:SortingExplanation:Sub tasks 1, 2, 3:The constraints in these subtasks are designed in such a way that it is possible just to check every...

View Article

Handling large integers in C++???

While going through some successful submissions of Am I Fibonacci Number in COOK40, I have seen that some of them just use unsigned long long to store digits of the form of 1000 digits and still...

View Article


QMARKS - Editorial

Problem Link:PracticeContestDifficulty:Easy-MediumPre-requisites:Aho-Corasick, DPExplanation:In order to pass the first sub task it's sufficient to implement exponential-time brute force solution. In...

View Article

Image may be NSFW.
Clik here to view.

LMA1 - Editorial

Problem Link:PracticeContestDifficulty:EasyPre-requisites:Basic mathExplanation:Sub task 1:In this subtask the summands will decrease very fast because a is actually small, so it's enough just to...

View Article


PALINDR - Editorial

Problem Link:PracticeContestDifficulty:Easy-MediumPre-requisites:Treap, CombinatoricsExplanation:The constraints in the first sub task are very small, so a simple brute force will be enough in order to...

View Article

What's happening on codechef ?

In today's lunchtime contest , the site got offline for 10-15 minute . I click on poster of november cook-off on home-page , then october challenge pops up . I tried to open the today's lunch question,...

View Article

Problem with Lowest Sums

Hello, I am getting an NZEC error when submitting my solution to the Lowest Sums problem under the easy category for the practice problems and I cannot understand why. Using both Visual Studio and...

View Article
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>