Search found 11 matches

by mirage
Wed Mar 05, 2008 8:50 am
Forum: Volume 101 (10100-10199)
Topic: 10126 - Zipf's Law
Replies: 36
Views: 8834

Wrong answer.....10126

hi friends, i m gettin wrong answer on the OJ for this easy prob........the program is passing the test that i gave it n the one ones i found in the forums..... still unable to find the bug....plz help...... is thr any special way to print the output for this prob... here's the code: //Zipf's law #i...
by mirage
Thu Feb 28, 2008 7:54 pm
Forum: Volume 104 (10400-10499)
Topic: 10474 - Where is the Marble?
Replies: 50
Views: 19397

gettin wrong answer why

hey friends.... i m gettin a wrong answer for this simple prob..... did the sort n search.....but the judge shows error can't figure out why??? plz help: //where's the marble #include<iostream> #include<algorithm> #include<vector> using namespace std; vector<int> v; int find(int); int main(){ int a,...
by mirage
Tue Feb 26, 2008 2:30 pm
Forum: Volume 101 (10100-10199)
Topic: 10145 - Lock Manager
Replies: 9
Views: 3675

Lock manager

hey friends,
i have a query...
the question says that the previous locks are not changed in any way
so do we have to consider only the most recently executed lock on a data item while looking for conflicts or do we have to look out for all the past locks on that data item????
by mirage
Fri Feb 22, 2008 8:03 pm
Forum: Volume 3 (300-399)
Topic: 341 - Non-Stop Travel
Replies: 38
Views: 11583

gettin WA

hi friends... i m gettin a wrong answer for this problem..... i tried the test cases i had nd it worked out fine.... is thr ny spcl case..... plz help .... here's the code //non stop travel #include<iostream> using namespace std; int arr[10][10]; void process(int,int,int); void print(int[],int); int...
by mirage
Fri Feb 22, 2008 1:31 pm
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 5711

gettin PE ...plz help

hey friends, i can't figure our why i m gettin a presentation error in this....plz help //dole_queue #include<iostream> using namespace std; int arr[20]; void print(int); int main(){ int n,k,m; while(cin>>n>>k>>m){ if(n+k+m==0) return(0); int i=0; while(i<n) arr[i++]=0; //start simulatin int in1=0,i...
by mirage
Mon Feb 11, 2008 1:02 am
Forum: Volume 112 (11200-11299)
Topic: 11222 - Only I did it!
Replies: 14
Views: 6959

gettin runtime error...plz help

My code works just fine on the local compiler but the online judge is showing a runtime error.

is thr any input for which my program would be causing an RE...
plz help......

Code: Select all

AC now
by mirage
Sun Feb 03, 2008 5:52 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21703

hi friends, I m gettin wrong answer for this problem but can't figure out why.... Tried various inputs but works for all of them.... Is thr any special input??? Plz help here's the code... //encoder and decoder #include<iostream> #include<string> using namespace std; int main(){ string s; while(getl...
by mirage
Sat Feb 02, 2008 8:01 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20331

what should be out put for this input????
nd further more will i get a WA if i put extra spaces in case like

abcd
abcde

output:
aa
bb
cc
dd
e[space]

Code: Select all

"R  Jan
Ie
 n
te
h
iD
ne
kc
,a
 r
tt
he
es
r
eo
fn
oc
re
e
 s
Ia
 i
ad
m,
.
"
by mirage
Fri Feb 01, 2008 1:11 pm
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 21703

444 Encode Decode Getting Wrong Answer

hi friends, I m gettin wrong answer for this problem but can't figure out why.... Tried various inputs but works for all of them.... Is thr any special input??? Plz help here's the code... //encoder and decoder #include<iostream> #include<string> using namespace std; int main(){ string s; while(getl...
by mirage
Wed Jan 30, 2008 10:38 am
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 7167

Thanx....
i got accepted now....
that line was intended to be
(p%100<=20 && p%100>=10)...
but i missed it out in the final code.....
thanx again for findin it out.....
by mirage
Tue Jan 29, 2008 6:03 pm
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 7167

443 Humble Numbers ....Getting a Wrong Answer...

Hi friends,
I seem to be getting a wrong answer....even though my code is workin for all the test cases i ever tried on it.....
Can somebody help me out n tell wat's the error..

here's the code

Go to advanced search