Search found 51 matches

by fpavetic
Thu Apr 06, 2006 8:16 pm
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 7044

is my way of taking the input correct?
by fpavetic
Mon Apr 03, 2006 11:06 pm
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 7044

338 - long multiplication

hello, i am trying to solve problem 338, waing constantly but dont know why. can someone please give output to this or any tricky case: INPUT 1023348159 962698720 1591033635 1979648441 1533525686 1107769036 1006769035 55068821 1807357916 1946018644 1003136356 566904648 1286287109 2066997517 62523646...
by fpavetic
Sun Mar 26, 2006 11:53 am
Forum: C++
Topic: WHY CE?
Replies: 5
Views: 2448

because maximum array size / index can be slightly more than 500000000.
and you do not have using namespace std; below the header
by fpavetic
Thu Mar 23, 2006 9:15 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 179899

check this
1 1

output should be 1, but your program outputs 2
by fpavetic
Wed Mar 22, 2006 9:53 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 179899

in input, i can be greater than j so you must think of that case...
and in the output you must print how you read it

for example.

input
2 1

output
2 1 max_solution
by fpavetic
Wed Mar 22, 2006 5:56 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 77679

However, the compile error lies in the use of the abs function. I suggest you explicitly cast the expression you pass to the abs function to a double, and then you cast the value returned from abs back to int. Alternatively, as a workaround, #include math.h instead of cmath. int abs() is declared i...

Go to advanced search