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 ...
Search found 11 matches
- Wed Mar 05, 2008 8:50 am
- Forum: Volume 101 (10100-10199)
- Topic: 10126 - Zipf's Law
- Replies: 36
- Views: 12813
- Thu Feb 28, 2008 7:54 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10474 - Where is the Marble?
- Replies: 50
- Views: 28391
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 ...
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 ...
- Tue Feb 26, 2008 2:30 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10145 - Lock Manager
- Replies: 9
- Views: 5738
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????
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????
- Fri Feb 22, 2008 8:03 pm
- Forum: Volume 3 (300-399)
- Topic: 341 - Non-Stop Travel
- Replies: 39
- Views: 30239
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 ...
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 ...
- Fri Feb 22, 2008 1:31 pm
- Forum: Volume 1 (100-199)
- Topic: 133 - The Dole Queue
- Replies: 42
- Views: 10643
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 ...
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 ...
- Mon Feb 11, 2008 1:02 am
- Forum: Volume 112 (11200-11299)
- Topic: 11222 - Only I did it!
- Replies: 14
- Views: 9736
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......
is thr any input for which my program would be causing an RE...
plz help......
Code: Select all
AC now
- Sun Feb 03, 2008 5:52 pm
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44464
- Sat Feb 02, 2008 8:01 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 48058
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]
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,
.
"
- Fri Feb 01, 2008 1:11 pm
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44464
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 ...
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 ...
- Wed Jan 30, 2008 10:38 am
- Forum: Volume 4 (400-499)
- Topic: 443 - Humble Numbers
- Replies: 82
- Views: 18045
- Tue Jan 29, 2008 6:03 pm
- Forum: Volume 4 (400-499)
- Topic: 443 - Humble Numbers
- Replies: 82
- Views: 18045
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
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