ok, let me put my code here, I'll be graceful if you could have a brief look at it :
[pascal]
program P10232;
type Int=LongInt;
var A:array [-1..31,-1..31] of Int;
Bit:array [0..31] of Byte;
function Solve(n:Int):Int;
var i,b,k:Int;
begin
i:=0;
while n>=0 do
begin
n:=n-A[31,i];
Inc(i);
end ...
Search found 24 matches
- Sun Sep 28, 2003 10:35 am
- Forum: Volume 102 (10200-10299)
- Topic: 10232 - Bit-wise Sequence
- Replies: 12
- Views: 5546
- Sun Sep 28, 2003 10:30 am
- Forum: Volume 102 (10200-10299)
- Topic: 10232 - Bit-wise Sequence
- Replies: 12
- Views: 5546
- Sun Sep 28, 2003 8:53 am
- Forum: Volume 102 (10200-10299)
- Topic: 10232 - Bit-wise Sequence
- Replies: 12
- Views: 5546
10232 - Bit-wise sequence
Hi everybody,
I have solved the problem #10232, but I got WA for it. It solves the sample input and my samples in the right way and I really can't understand the problem behind it.
Can anyone give me some sample input and output plz?
Thanks in advance,
Shahab Tasharrofi
I have solved the problem #10232, but I got WA for it. It solves the sample input and my samples in the right way and I really can't understand the problem behind it.
Can anyone give me some sample input and output plz?
Thanks in advance,
Shahab Tasharrofi
- Tue Sep 23, 2003 12:07 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10228 - Star not a Tree?
- Replies: 4
- Views: 3242
10228 - Star not a Tree?
Any idea to solve such a problem, plz?
I have the idea of derivation of the sum of the distances, but it is really hard and unamusing to code.
Thanks in advance
I have the idea of derivation of the sum of the distances, but it is really hard and unamusing to code.
Thanks in advance
- Sun Mar 30, 2003 3:07 pm
- Forum: Algorithms
- Topic: A*?
- Replies: 3
- Views: 3007
- Sun Mar 30, 2003 2:59 pm
- Forum: Algorithms
- Topic: Irrational Numbers p/q !!!
- Replies: 11
- Views: 4569
- Sun Mar 30, 2003 2:44 pm
- Forum: Algorithms
- Topic: Algorithm for intersecting lines
- Replies: 3
- Views: 3047
- Sun Dec 29, 2002 8:56 am
- Forum: Algorithms
- Topic: How to generate unique permutation
- Replies: 2
- Views: 3260
- Wed Dec 18, 2002 2:10 pm
- Forum: Algorithms
- Topic: Finding the heavier rectangle
- Replies: 10
- Views: 5226
- Sun Dec 01, 2002 8:56 am
- Forum: Algorithms
- Topic: How to solve binary search tree in O(n^2) ??
- Replies: 2
- Views: 2481
- Sun Dec 01, 2002 8:31 am
- Forum: Algorithms
- Topic: A really really good book specialized on graph
- Replies: 5
- Views: 3940
- Sun Dec 01, 2002 7:10 am
- Forum: Algorithms
- Topic: Prime Factors !!!!!!
- Replies: 12
- Views: 6907
I found that article,
you can find it at http://www.research.att.com/~shor/papers/QCjournal.ps ,in this paper there is a random method for factoring numbers, and it is not just for quantum computers.
And Larry, you must read it too, i think. Becuase the Peter Shor ( Writer of this article ) claims ...
you can find it at http://www.research.att.com/~shor/papers/QCjournal.ps ,in this paper there is a random method for factoring numbers, and it is not just for quantum computers.
And Larry, you must read it too, i think. Becuase the Peter Shor ( Writer of this article ) claims ...
- Sun Nov 24, 2002 11:29 am
- Forum: Algorithms
- Topic: difficult problem
- Replies: 3
- Views: 3012
- Sun Nov 24, 2002 11:15 am
- Forum: Algorithms
- Topic: Prime Factors !!!!!!
- Replies: 12
- Views: 6907
- Sun Nov 24, 2002 10:46 am
- Forum: Algorithms
- Topic: I think it's a very hard problem
- Replies: 2
- Views: 2516