I used "long int" and got AC.L I M O N wrote: do u use "long long" data type ?
L I M O N
Search found 8 matches
- Thu Jan 05, 2006 11:23 am
- Forum: Volume 109 (10900-10999)
- Topic: 10913 - Walking on a Grid
- Replies: 23
- Views: 14720
- Wed Jan 04, 2006 11:31 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10913 - Walking on a Grid
- Replies: 23
- Views: 14720
- Wed Jan 04, 2006 11:57 am
- Forum: Volume 109 (10900-10999)
- Topic: 10913 - Walking on a Grid
- Replies: 23
- Views: 14720
- Sat Dec 31, 2005 9:16 am
- Forum: Volume 109 (10900-10999)
- Topic: 10979 - How Many Triangles?
- Replies: 15
- Views: 8095
- Sat Aug 13, 2005 8:47 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10259 - Hippity Hopscotch
- Replies: 15
- Views: 4832
Why Compile Error?
Please, help me! Why my program get Compile Error
/*Problem 10259 */
#include <stdio.h>
const osn = 10;
const maxn = 100;
typedef int tlong[maxn];
void sum(tlong a, tlong b, tlong& c){
int i,n;
for (i = 0; i <= maxn; i++)
c[i] = 0;
n = (a[0] > b[0]) ? a[0] : b[0];
for (i = 1; i <= n; i ...
/*Problem 10259 */
#include <stdio.h>
const osn = 10;
const maxn = 100;
typedef int tlong[maxn];
void sum(tlong a, tlong b, tlong& c){
int i,n;
for (i = 0; i <= maxn; i++)
c[i] = 0;
n = (a[0] > b[0]) ? a[0] : b[0];
for (i = 1; i <= n; i ...
- Tue Aug 09, 2005 4:22 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10892 - LCM Cardinality
- Replies: 25
- Views: 13104
- Tue Nov 16, 2004 8:20 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10088 - Trees on My Island
- Replies: 11
- Views: 6046
10088 - Trees on My Island
Hi!
Can anybody give me some critical test? I don't know why WA. :(
[pascal]
{$A+,B-,C+,D-,E-,F-,G+,H+,I-,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y+}
Program Problem10088 (input, output);
{$APPTYPE CONSOLE}
Type
TPoint = Record
X,Y: Int64;
end;
Var
P: Array [0..1000] of TPoint;
S ...
Can anybody give me some critical test? I don't know why WA. :(
[pascal]
{$A+,B-,C+,D-,E-,F-,G+,H+,I-,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y+}
Program Problem10088 (input, output);
{$APPTYPE CONSOLE}
Type
TPoint = Record
X,Y: Int64;
end;
Var
P: Array [0..1000] of TPoint;
S ...
- Thu Jul 15, 2004 6:01 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10401 - Injured Queen Problem
- Replies: 19
- Views: 21527
10401 - Injured Queen Problem
Hi! Please, help me. Is my input/output correct?
Input:
??????
???????????????
???8?????
43?????
?
??
???
????
?????
1????
2????
3????
4????
5????
??????????
??1?5?7A??
?1?2?3?4?5
135797531?
?4?3?F??A???6??
My output:
2642
22696209911206174
2098208
0
1
0
2
16
184
44
30
36
30
44
531713286
81225 ...
Input:
??????
???????????????
???8?????
43?????
?
??
???
????
?????
1????
2????
3????
4????
5????
??????????
??1?5?7A??
?1?2?3?4?5
135797531?
?4?3?F??A???6??
My output:
2642
22696209911206174
2098208
0
1
0
2
16
184
44
30
36
30
44
531713286
81225 ...