Search found 26 matches

by Betovsky
Thu Jun 13, 2002 1:48 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37001

this is frustating ... i was comparing input/output of my prog with a prog of a frined of mine and it was all the same... but my gets a WA and hes get an aceppted and we dont know whats wrong. Plzz some find the error ... [c] #include <stdio.h> #include <stdlib.h> #include <string.h> int c[96]; void...
by Betovsky
Wed Jun 12, 2002 10:22 pm
Forum: Volume 3 (300-399)
Topic: 352 - The Seasonal War
Replies: 54
Views: 13285

Gracias , my head was starting to disintegrates...

i was starting to think of throwing my self over a bridge.
by Betovsky
Wed Jun 12, 2002 6:14 am
Forum: Volume 3 (300-399)
Topic: 352 - The Seasonal War
Replies: 54
Views: 13285

dam to the samples it works great but the judge keeps saying WA can some1 tell me whta wrong [c] #include <stdio.h> #include <stdlib.h> void init(void); void check(int, int); int a[27][27]; int main(){ int image=0; int linha; int n, k; int i, j; while(scanf("%d", &n) != EOF){ image++; init(); k=0; f...
by Betovsky
Wed Jun 12, 2002 4:54 am
Forum: Volume 3 (300-399)
Topic: 352 - The Seasonal War
Replies: 54
Views: 13285

352 The Seasonal War

hmm in this prob
this case
101
010
101

are 5 planes or only 1 plane?
by Betovsky
Tue Jun 11, 2002 6:16 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

hehe u complicate soo much...

u dont need the arrays
and to see if u reached the end use the return value of scanf
if it returns 0 its cause theres no more to do...
by Betovsky
Tue Jun 11, 2002 4:01 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

hint !! hint !!

scanf returns an int...
by Betovsky
Tue Jun 11, 2002 3:53 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

hmm.. first i think u cannot use gets in ansi C
at least to me it gives some warnings
of dangerous function

and why dont u use scanf it would be a lot more easy !!!
by Betovsky
Tue Jun 11, 2002 3:26 pm
Forum: Other words
Topic: Provide resource for exhaustive BFS algorithm
Replies: 8
Views: 4381

in weighted grafs, its the same thing

execept that u choose the next node with the less weight,
and not the first it was found.
by Betovsky
Mon Jun 10, 2002 4:12 am
Forum: Volume 101 (10100-10199)
Topic: 10110 - Light, more light
Replies: 76
Views: 26349

read the rulz, there is already a topic about this prob plz post ur questions in there ...

and we dont know nothing about ur code do u want us to guess out ???
by Betovsky
Mon Jun 10, 2002 4:06 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

at http://acm.uva.es/problemset/ goto the part of information in real time
go for the statics for a single author and put ur id
by Betovsky
Mon Jun 10, 2002 12:27 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

u have:

if(start < end){
while(start <= end){
...
start++;

so when get out of the cicle (start == end+1) ->> start > end

so it will get into the next if:

if(start > end){
while(start>=end){
...
by Betovsky
Sun Jun 09, 2002 11:20 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

EOF means end of file ... and that means when u reach the end of a file hehe

generally is the form i use to check the end of the input (there are some execptions)
cause generally i use and i think the judge uses too , redirecting files to the input of the
program...
by Betovsky
Sun Jun 09, 2002 9:45 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185327

run til theres no more input ( EOF )
by Betovsky
Fri Jun 07, 2002 5:21 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20919

hmm i dont know where the error is to the exmples it works great , but the judge keeps saying WA i also tryed with doubles... [c] #include <stdio.h> #include <stdlib.h> #include <math.h> int main(){ long long unsigned height, n_workers, i, n_cats, n, h_total, h; scanf("%Lu %Lu", &height, &n_workers)...
by Betovsky
Fri Jun 07, 2002 4:10 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 31057

base 2, base 10 sme problem :(

Go to advanced search