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

Feature to communicate between members of the community

It would be much easier if there was a feature which enabled us to send private messages to other users just in case. Now if we wanted to ask someone a specific thing, like "their favorite questions on...

View Article


Debugger for C/C++ programmers.

I sometime finds very difficult to debug my code. Please suggest a good c/c++ debugger .

View Article


Image may be NSFW.
Clik here to view.

NEXTNUM - Editorial

PROBLEM LINK:PracticeContestAuthor:Vineet PaliwalTester:Roman RubanenkoEditorialist:Jingbo ShangDIFFICULTY:CAKEWALK PREREQUISITES:Factorial, Enumeration, BruteforcePROBLEM:Given a number with D digits,...

View Article

paying up wrong answer

#include<iostream> #include<math.h> using namespace std; int main(){ int ans,size,test; cin>>test; for(int i=0;i<test;i++) { cin>>size; cin>>ans; int a[size]; for(int...

View Article

Image may be NSFW.
Clik here to view.

SSTORY - Editorial

PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Suffix Array, Suffix Automaton, Binary Search, HashPROBLEM:Find the longest...

View Article


TLE in WITMATH

How can I further optimise my code?I've got several TLE'S in it.I have used Rabin-Miller primality testing.Here's my link to code:http://www.codechef.com/viewsolution/3774210

View Article

to check if its leap year

any year is input through the keyboard. write a program to determine wheter it's a leap year or not? 1) Using modulus operator. 2) Using && amd || operators.

View Article

No Editorials for GERALD08 and LMATRIX3

When will the Editorials for the last two problems of APRIL14 long challenge GERALD08 and LMATRIX3 will be posted ??

View Article


Life,Universe and Everything

Please tell me why this shows runtime error.......import java.util.ArrayList; import java.util.Scanner; class Life_Universe_And_Everything { ArrayList<Integer> list=new...

View Article


Can solve, but with a lot of WAs. How to improve?

I have been doing questions on SPOJ and have found that I can do most questions, but with a lot of WAs. It takes me anything from 1-5 WAs to get an AC. But the important part is that I can do it...

View Article

GERALD08 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM-HARD PREREQUISITES:Blue-Red Hackenbush DFS, Graphs PROBLEM:Given a...

View Article

how to use header file

given below is a code which is used for the transmission and the reception of data by motes. i have scrubbed the irrelevant part #include<msp430.h> #include<stdio.h> #include "contiki.h"...

View Article

Editorial request palindromic numbers

would someone be kind enough to explain the solution for this problem (or the idea of it)in the answers or give an edirotial thanks! Edit : I admit I am not very good with numbers

View Article


count the integers which are not divisible by a perfect square.

Recently I came across this question in a coding contest:Given two integers x,y. Print the count of numbers in between x and y which are not divisible by a perfect square1 <= x,y <= 10^9 0 <=...

View Article

WA in ANUCBC

can some one tell me whats the wrong in my submission for ANUCBC i used the same approach described in editorial it will be a great help thnx.

View Article


Can someone explain dis great piece of JAVA IO??

Problem Link: http://www.codechef.com/MARCH14/problems/PROSUM/Problem Solution by some gr8 Java Programmer: http://www.codechef.com/viewsolution/3505991Please do try to provide an elaborated answer to...

View Article

SEAPERM - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:CHALLENGE PREREQUISITES:Heuristic, Greedy, Mixure of Methods, Test Generation...

View Article


SEAD - Editorial

Problem Link:contest, practiceDifficulty: MediumPre-requisites: Binary Search, Sparse Tables, Segment TreeProblem:You are given ascending-sorted array A[], consisting of N integers. You are to...

View Article

Counting Matrices WA

for N=5, what are possible matrices (in short which one i have missed..) in abcd: 1114,1214,1124,1134,1314 (which is 52=10 when a=1,d=4 & a=4,d=1) and 2113,2123,2213,2413,2143,2133,2313,2223 which...

View Article

TOTR:WRONG ANSWER

THE CODE RUNS FINE FOR TEST CASES..#include <iostream> #include <cstdlib> #include<cctype> #include<cstring> using namespace std; int main () { int t; char m[26]; char...

View Article
Browsing all 39796 articles
Browse latest View live