Search found 7 matches

by chipchip3412
Thu Jul 25, 2013 8:57 am
Forum: Volume 102 (10200-10299)
Topic: 10213 - How Many Pieces of Land ?
Replies: 54
Views: 31311

Re: 10213 - How many pieces of land?

Thank you very much, brianfry, I've detected a bug in my bignum code.
But still WA, anyway :lol:
I've updated my code, are there any other test cases?
by chipchip3412
Wed Jul 24, 2013 6:39 am
Forum: Volume 101 (10100-10199)
Topic: 10157 - Expressions
Replies: 23
Views: 15422

Re: 10157 - Expressions

Yeah, that's strange, I've tried all the tests given here but still WA on both UVA and PC :(
Thank you anyway, could you take a look at http://online-judge.uva.es/board/viewto ... 6&start=45? ? Same problem :D
by chipchip3412
Tue Jul 23, 2013 9:17 am
Forum: Volume 101 (10100-10199)
Topic: 10157 - Expressions
Replies: 23
Views: 15422

Re: 10157 - Expressions

WA again and again :( Please help me.
My code:

{$mode objfpc}
uses math;
type
bignum=record
size: longint;
a: array[0..501] of int64;
end;
var
i,j,k,n,d: longint;
dp: array[0..151,0..151] of bignum;

operator :=(x: longint): bignum;
begin
fillchar(result.a,sizeof(result.a),0); result.size ...
by chipchip3412
Mon Jul 22, 2013 3:46 pm
Forum: Volume 102 (10200-10299)
Topic: 10213 - How Many Pieces of Land ?
Replies: 54
Views: 31311

Re: 10213 - How many pieces of land?

Any one help? I've tried all tests here but still WA
My code: (Updated)

{$mode objfpc}
uses math;
type
bignum=record
size: longint;
a: array[0..1000] of qword;
end;
var
base: longint=1000000000;
ans: array[0..4] of longint=(1,1,2,4,8);
t,tt,n: longint;
one: bignum;

operator :=(x: qword ...
by chipchip3412
Wed Jun 12, 2013 11:45 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65717

Re: 706 - LC-Display

Oh! Thank you very much brianfry. I've got AC now.
That one is really tricky :lol:
by chipchip3412
Tue Jun 11, 2013 11:07 am
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65717

Re: 706 - LC-Display

brianfry713 wrote:Output a blank line after each number, including the last one.
Oh, thank you, but I've tried output 1 blank line after the last number too, but it's still WA
I just can't understand :(

Here's my new code, edited as you said

Code: Select all

// Deleted
by chipchip3412
Mon Jun 10, 2013 2:32 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 65717

Re: 706 - LC-Display

Anybody help? I've tried the problems many times but still get Wrong Answer.
Can anybody take a look at my code? I've tried many tests and can't see anything wrong

Code: Select all


//Deleted

Go to advanced search