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

can you plz tell why this code showing nzec

import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Arrays; import java.util.StringTokenizer;class Walk {public static void main(String[] args)...

View Article


SSTORY Massive confusion and word trickery?

This question has one of the most confusing statements ever(I don't know if author wants to test our english or coding/algorithm skills :\). The same problem has very concise russian statement..Why is...

View Article


help in little chef and numbers why this code is giving time limit exceeded...

def fun(): test = input() test1 = int(test) for i in range(test1): num = input() num1= int(num) arr = input() arr1 = arr.split() arr1 = list(set(arr1)) le= len(arr1)-1 i,j=0,le count = 0...

View Article

Searching Users from same institute

I want to know is there any method by which I could know the rankings of all the code-chef users of my college . If any ,Suggest !!

View Article

BIT(Binary Indexed Tree /Fenwick Tree )

Hey just studied BIT from http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=binaryIndexedTrees but couldnot understand how to know to calculate tree[idx],it must be question...

View Article


should i focus on time and memory?

i just started coding on codechef..i want to know that if i should bother about the execution time and the memory taken by my program?

View Article

please explain the code to obtain below o/p in c lang

expalin c program to produce the following o/p 1 2 3 4 5 6 7 8 9 10 please explain each statement in above o/p program

View Article

long contest ranking

http://www.codechef.com/users/raul1rnjn535_3 My rating in long contest has increased as per the performance graph but my net rating is shown as 0 & my ranking is NA...why???I am very curious..

View Article


please explain the code to obtain below o/p in c lang

please explain the code to obtain below o/p in c lang 0 expalin c program to produce the following o/p 1 2 3 4 5 6 7 8 9 10

View Article


little chef and numbers (march 2014) problem ..

can anyone suggest more test cases ....... i have tried all possible test cases and always got correct answer but my program is not being accepted by codechef (it say's wrong answer)

View Article

chain reaction game

code deleted

View Article

Help Ram --> NZEC runtime error

//Code deleted //Live contest question

View Article

Small Factorials-C code working on PC but not on code chef

helloo......my code is giving correct answer on PC but wrong on Code chef. Someone..please help me out what is wrong with this code.http://www.codechef.com/viewsolution/3595694#include<stdio.h>...

View Article


help me with this code. (abacus 14 help ram)

include<iostream>include<math.h>using namespace std; int main() { int t,i,m,n; long long a,b,c,j,k,h[100]; cin>>t; for(i=0;i<t;i++) {="" cin="">>a>>b;...

View Article

Where are editorials of the external contests organized by peers posted ?

Is there any place on codechef wiki or blogs where the editorials of the contests conducted by other institutions other than Codechef are posted ? ( Apart from Long Challenge ,COOK OFF and Lunch Time)...

View Article


Test Cases Still Week for SSTORY even after Re-judge

One of my solution was still Accepted though it should give wrong answer. My code gave 'e' for s1="aecd" and s2="acad", where answer should be 'a'.

View Article

wa chef and cake

i have tried for many test cases my output is correct but it is showing waalso do the test cases include this type of input :20 20 1 130 30 11 11my code:...

View Article


explain this concept

int arr[3][2]={{1,2},{3,4},{5,6}}; printf("%d %d %d",arr[0][3],arr[1][2],arr[2][0]); can anyone explain how can we access elements in array using notations used in printf

View Article

sigabrt in my code for little elephants and strings

http://www.codechef.com/viewsolution/3598927 plz help

View Article

PHP is BROKEN on CodeChef

1) I have 15+ years' experience programming in dozens of languages2) I have spent ~4 hours searching Google and the Codechef forums for a solution. Please don't respond with "read the manual"As far as...

View Article
Browsing all 39796 articles
Browse latest View live


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