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

Some Problems in the state of Codechef

TL;DR This site is starting to become really bad and unprofessional for no reason.-An open letter to Codechef administration, and all Codechef users-I joined Codechef almost two years ago. Since I'm a...

View Article


What is happening on Codechef?

The submissions are not evaluated in within the proper time...:( It is still checking...I submitted the code 3 minutes before...:( I am not saying this to provoke anyone... Please check this matter...

View Article


Difference between getchar() and getchar_unlocked()

getchar_unlocked() is usually used to get faster input.But I have not quite understood the difference between the getchar_unlocked() and getchar(). Also, why is getchar_unlocked() faster and what does...

View Article

Access Denied December Cook-Off 2013

@admin: Again getting access denied error on problems page. Home » Compete » December Cook-Off 2013 » Chef Goes Through Segments You are not authorized to access this page.

View Article

problems of Dec cook not found in practice session?

not able to view them as practice prolems in the link : for eg: http://www.codechef.com/problems/GERALD04

View Article


GERALD3 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:Suffix Array, Longest Common Prefix, Balanced Binary Search Tree,...

View Article

GERALD06 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:Graph Theory, Line GraphPROBLEM:Given a line graph L corresponding to a...

View Article

COOK 41 && dec13

When the ratings after cook 41 will be calculated? Why the ratings haven't been calculated yet after dec13?

View Article


CIELRCPT - Editorial

PROBLEM LINKPracticeContestDIFFICULTYCAKEWALKPREREQUISITESGreedy AlgorithmsPROBLEMYou need to find the representation of a given integer N as a sum of powers of two up to 211 with the smallest number...

View Article


could somebody please explain the dynamic programming approach given in the...

hi here's the link could somebody please explain the dynamic programming approach for this question given in the editorial..here's the link.. http://discuss.codechef.com/problems/CIELRCPThow to get eqn...

View Article

GERALD03 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:GreedyPROBLEM:Given a sequence of intervals [Li, Ri], try to transform...

View Article

CHEFGM - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASY-MEDIUMPROBLEM:2-player game played on k piles of integers where in each turn a player chooses one pile and a number in that pile; all numbers greater than or...

View Article

GERALD04 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:ProgrammingPROBLEM:GF --- (t2 - t1) --- Chef --- dist --- HomeGiven...

View Article


runtime error why running right on my pc

#include<stdio.h> void main() {int t,dist,output,j,i; char a[6],b[6]; scanf("%d",&t); for(i=0;i<t;i++) { scanf("%s",a); scanf("%s",b); scanf("%d",&dist);...

View Article

can you tell me what is wrong with this code

it is showing runtime error on ideone here's the codeinclude<stdio.h>void main() {int t,dist,output,j,i; float k; char a[6],b[6]; scanf("%d",&t); for(i=0;i<t;i++) {="" scanf("%s",a);=""...

View Article


how to reduce time taken by following program....getting tle error

#include<stdio.h> #include<math.h> void check(int num) { int i,flag; if(num==2) { printf("2\n"); } for(i=2;i<=((int)(sqrt(num))+1);i++) { if(num==1); else if(num%i==0) { flag=1; break; }...

View Article

Gerald 04- december cook off

Whats wrong with the following code : http://www.codechef.com/viewsolution/3124731 I am doing exactly the same way mentioned in tutorial . Question's link :...

View Article


run time error why

please can you tell the error in the codeinclude<stdio.h>void main() {int t,dist,output,j,i; float k; char a[6],b[6]; scanf("%d",&t); for(i=0;i<t;i++) {="" scanf("%s",a);=""...

View Article

GERALD05 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic Programming, CombinatoricsPROBLEM:Given a lot of objects,...

View Article

Help on range updates in Segment Tree

Can anyone please tell me how to update an interval in segment tree?

View Article
Browsing all 40121 articles
Browse latest View live


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