0 1 kanpsack
hey why is that my code gives wrong answer ...:(//knapsack problem #include<cstdio> #include<iostream> int main() { int t,a,j,i,k,l,W; printf("enter the amount of the items\n");...
View Articlefatal error
i am using borland turbo c++ and getting error " prog.cpp:1:24: fatal error: iostream.h: No such file or directory # include ^ compilation terminated. " plz....help the program is running fine on my...
View ArticleTAPAIR - Editorial
PROBLEM LINK:PracticeContestAuthor:Tuan Anh Tran DangTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:DFS orderPROBLEM:Given an undirected simple graph with N nodes and M...
View ArticleCODELIVE-2014
why I cannot register for CODELIVE-2014 now? I have solved 2 problems at this contest, but I cannot submit my solution. please help me...
View ArticleCodeLive 2014- A contest of writing wrong codes
So, I was doing this contest called CodeLive. 1. There is no information regarding who is organizing this contest. What is the prize money etc. 2. This contest is about writing wrong codes. How? Test...
View Articlescanf and gets
please provide me link for the reason of the problem when we use scanf and gets simultaneously...
View ArticleORDERAAM - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Abdullah Al MahmudEditorialist:Vinod ReddyDIFFICULTY:HARD. PREREQUISITES:Flow,GreedyPROBLEM:We are given orders of the form (Si,Di,Xi,Pi) where Si...
View ArticleMETEORAK - Editorial
PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a N * M matrix mat with some obstacles inside,...
View ArticleWhat are the compiler options that the judge uses?
Some languages are weirdly slow on some problems. Do they have optimization enabled/disabled while compiling? Does the online judge use any specific options while compiling my program? Is there a way...
View Articlei'm using c++4.9.9.2 how should i submit my solution??
while submitting there are no option of compiler similar to mine so my submissions does not compile and hence are giving compilation error.here's one of my...
View Articlepattern matching in LZW COMPRESSED TEXT
can anyone please tell me how to match pattern in Lempel-Ziv-Welch compressed text without decompressing the file???
View ArticleC++ Graph implementation as a data structure
Hello, what is the best implementation of a Graph as a data structure in C++? Thank you :)
View Articlewhy i am getting runtime error(NZEC)
this is my code.. http://www.codechef.com/viewsolution/3406448
View ArticleHow to initialize same variable in multiple files in C++
I'm having a problem. I have two header files (a.h, b.h) and three cpp files (main.cpp, a.cpp, b.cpp) and I'm trying to initialize the same ten variables in each one, and I'm lost. How do I go about...
View ArticleTLE with memset()
i am not able to figure out why i got TLE with memset in http://www.codechef.com/FEB14/problems/LCPESY .However , on replacing memset(..., 0 , 256) by for(i=0;i<256;i++) i got AC .What is the reason ?
View ArticleWA IN PRIME1
Why this code http://ideone.com/3puswp giving RTE for this question.. http://www.codechef.com/problems/PRIME1/I implemented using segmented seive.
View ArticleCHSEQ22-Editorial
PROBLEM LINK:PracticeContestAuthor:Roman FurkoTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:Easy-MediumPREREQUISITES:Connected componentsPROBLEM:We are given an array of N...
View ArticleGood books on advanced data structures?
Please suggest me some good books on advanced data structures like segment trees and binary interval trees.Thank you.
View ArticleOnline Programming contest - Algorythmus 2014.
Synapse 2014 (Cultural Fest of DA-IICT) presents "Algorythmus 2014". It will be an ACM-ICPC style online programming contest.(1) Contest will be of 3 hours. There will be 5 problems of varying...
View Article