buty of arifmetica is
function swap(var a,b:T):T;begin
a:=-(a+b);
b:=-(a+b);
a:=-(a+b);
end;
or on array a[0..1]
for i:=0 to 2 do a:=-(a[0]+a[1]);
Search found 29 matches
- Mon Mar 19, 2007 9:15 pm
- Forum: Other words
- Topic: How to swap two variables... ??
- Replies: 4
- Views: 3881
- Wed Apr 05, 2006 2:36 am
- Forum: Algorithms
- Topic: Problem with sum of seqence
- Replies: 5
- Views: 2369
Yours advice bad cose S very big {TLE I think}Artikali wrote:http://www.comp.nus.edu.sg/~stevenha/pr ... ing_Change
- Tue Apr 04, 2006 9:39 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11026 - A Grouping Problem
- Replies: 28
- Views: 23851
- Sat Apr 01, 2006 8:33 pm
- Forum: Bugs and suggestions
- Topic: Solution times in contest ranklist
- Replies: 3
- Views: 2923
- Fri Mar 24, 2006 10:59 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
- Fri Mar 24, 2006 10:29 pm
- Forum: Other words
- Topic: How big traffic in topcoder contest?
- Replies: 2
- Views: 2429
- Fri Mar 24, 2006 12:45 am
- Forum: Other words
- Topic: How big traffic in topcoder contest?
- Replies: 2
- Views: 2429
How big traffic in topcoder contest?
1.subj?
2. how big need download enviroment for contest?
ps pls ansver here. not send to topcoder's forum.
2. how big need download enviroment for contest?
ps pls ansver here. not send to topcoder's forum.
- Thu Mar 23, 2006 8:13 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
- Wed Mar 22, 2006 9:23 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
- Tue Mar 21, 2006 11:18 pm
- Forum: Pascal
- Topic: What wrong with Pascal compiler in UVA?
- Replies: 4
- Views: 8288
- Tue Mar 21, 2006 10:43 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
- Mon Mar 20, 2006 11:53 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
- Tue Mar 14, 2006 9:30 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10009 - All Roads Lead Where?
- Replies: 60
- Views: 24869
- Tue Feb 21, 2006 1:41 am
- Forum: Volume 7 (700-799)
- Topic: 785 - Grid Colouring
- Replies: 27
- Views: 18522
785
I think in some test was error.
in string where must only 1 or more '_'
as state in problem: each grid is terminated by a separation line full of underscores `_'.
judge (if see carefull test file for 785 ) may wotch
that situeted ' '(I think on end of string full of underscores `_' )
base on that ...
in string where must only 1 or more '_'
as state in problem: each grid is terminated by a separation line full of underscores `_'.
judge (if see carefull test file for 785 ) may wotch
that situeted ' '(I think on end of string full of underscores `_' )
base on that ...
- Wed Feb 15, 2006 10:58 pm
- Forum: Other words
- Topic: source code of other members
- Replies: 6
- Views: 3430