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 ArticleDebugger for C/C++ programmers.
I sometime finds very difficult to debug my code. Please suggest a good c/c++ debugger .
View ArticleNEXTNUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Vineet PaliwalTester:Roman RubanenkoEditorialist:Jingbo ShangDIFFICULTY:CAKEWALK PREREQUISITES:Factorial, Enumeration, BruteforcePROBLEM:Given a number with D digits,...
View Articlepaying 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 ArticleSSTORY - Editorial
PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Suffix Array, Suffix Automaton, Binary Search, HashPROBLEM:Find the longest...
View ArticleTLE 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 Articleto 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 ArticleNo 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 ArticleLife,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 ArticleCan 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 ArticleGERALD08 - 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 Articlehow 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 ArticleEditorial 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 Articlecount 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 ArticleWA 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 ArticleCan 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 ArticleSEAPERM - Editorial
PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:CHALLENGE PREREQUISITES:Heuristic, Greedy, Mixure of Methods, Test Generation...
View ArticleSEAD - 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 ArticleCounting 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 ArticleTOTR: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