Search found 13 matches

by abyssinian
Tue Jan 14, 2003 10:40 am
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 23467

594 endians....ask for test cases plzzzz....

hello...i need some test cases for ole little, two little, three little endians coz i keep getting WA....can anybody help me??


/* @begin_of_source_code */

#include<stdio.h>
#include<math.h>

int main(){
signed long int angka,angka1,angka2;
int bit[32],endian[32],j,kali,i;

#ifndef ONLINE_JUDGE ...
by abyssinian
Sat Jan 11, 2003 8:07 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51302

i made some changes....now i got time lim,it exceeded 10,031 second..
are there any possibility i can speed up my program??


#include<stdio.h>

int main(){
long int l,u,i,x,max,y,angka;
int sequence[100000];

#ifndef ONLINE_JUDGE
freopen("371.in", "r", stdin);
freopen("371.out", "w", stdout ...
by abyssinian
Sat Jan 11, 2003 7:36 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25231

:D i got accepted...but P.E.???

/* @begin_of_source_code */

#include<stdio.h>
#include<math.h>
#include<stdlib.h>

int main(){
long int i,total,rata,min,set,n;
long int height[10000];


#ifndef ONLINE_JUDGE
freopen("591.in", "r", stdin);
freopen("591.out", "w", stdout);
#endif


set=1;
while ...
by abyssinian
Fri Jan 10, 2003 7:37 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25231

ups :oops: ..i'm sorry the program i attach is for 371 ..ackermann functions..
but still i got wrong answer......

the right one is:

/* @begin_of_source_code */

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(){
long int i,total,rata,min,set,n;
long int height[10000];


#ifndef ...
by abyssinian
Fri Jan 10, 2003 7:26 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25231

em...i've fixed the first one.....
for the second..i think it's not a problem since it will come up with a same anwer.......
mine will read the "height -rata " twice..so in the end i divide the min by 2.....

but i also try your suggestion..and now i get "runtime error (sigsev)...invalid memory ...
by abyssinian
Wed Jan 08, 2003 7:39 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51302

emm..i see your point..
then i try to change my program as follow....
but i got runtime error : invalid memory reference...
is it because of the size of array isn't enough or something else??



#include<stdio.h>

int main(){
long int l,u,i,x,max,y,angka;
int sequence[100000];

for(i=0;i<100000;++i ...
by abyssinian
Sat Jan 04, 2003 4:51 pm
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25231

emmm.....i changed the program so that it can take input correctly
i test the input n output on my computer....they were correct...i even added extra input from the forum...............but i got "wrong answer".....
confused where's wrong.......??... :( can you help me??



#include<stdio.h>
#include ...
by abyssinian
Fri Jan 03, 2003 10:37 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25231

591 box of bricks....floating point exception??....

:-? err....my program got runtime error : floating point exception
could the problem be that my program can't read specified input that
larger than 9 ...example :
5
11 10 5 6 4 ???

i also got an advice that fflush is forbidden...but if i eliminate fflush...then the program can't read the second ...
by abyssinian
Fri Jan 03, 2003 10:09 am
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 27432

:) thank you ......
i've tried to eliminate fflush....n i got accepted..
thanx very much for your advice

bye
by abyssinian
Thu Jan 02, 2003 2:42 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51302

...emm...precomputation...??
sorry...i don't quite understand.... :oops:
can you explain it more details plz??.......
by abyssinian
Wed Jan 01, 2003 1:51 pm
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 27432

10008 cryptanalysis...need more input 'n output sample

:( confused.....need more samples of input and output....
i got it right on my computer but received "wrong answer" from online judge??...........what's cryptal?? what's wrong??

#include<stdio.h>
#include<ctype.h>

char line[100];
int f[26],j;

int main(){
unsigned int max,baris,i;
char huruf[26 ...
by abyssinian
Wed Jan 01, 2003 1:42 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51302

371 c time limit exceeded..need a little more adjustment

:( err.....need help...i think that i have made all possible adjustment ..
but i still get the over limit (10.47 seconds..)....confused where's wrong..??
can anybody give me a hint??



#include<stdio.h>

int main(){
long int l,u,i,x,max,y,z;
int sequence[1000];

while(scanf("%li %li",&l,&u)==2 ...
by abyssinian
Wed Jan 01, 2003 1:32 pm
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 23467

594 : little endians...need more sample input 'n output

:-?
i'm confused?!...can someone give me more input and output samples for one little, two little, three little endians (594)?......

i keep getting "wrong answer" from online judge...but i got the right answer when i test it on my computer...........


#include<stdio.h>
#include<math.h>

int main ...

Go to advanced search