Search found 10 matches
- Thu Feb 28, 2002 8:17 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10043 - Chainsaw Massacre
- Replies: 18
- Views: 7595
10043 - Chainsaw Massacre
Help me plz :sad: /* @JUDGE_ID: xxxxx 10043 C++ */ #include <iostream.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define maxn 5000 typedef int (*fptr)(const void*, const void*); struct point { int x,y; } p[maxn]; int cmp(point *a,point *b) { return (*a).x - (*b).x; } int n,i,j,k; ...
- Tue Jan 29, 2002 7:50 pm
- Forum: Volume 2 (200-299)
- Topic: 283 - Compress
- Replies: 16
- Views: 6886
- Tue Jan 29, 2002 7:39 pm
- Forum: Volume 2 (200-299)
- Topic: 283 - Compress
- Replies: 16
- Views: 6886
- Wed Jan 16, 2002 12:02 pm
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 17297
- Mon Jan 07, 2002 7:10 pm
- Forum: Volume 3 (300-399)
- Topic: 305 - Joseph
- Replies: 41
- Views: 4944
- Sun Jan 06, 2002 6:34 pm
- Forum: Volume 3 (300-399)
- Topic: 305 - Joseph
- Replies: 41
- Views: 4944
- Mon Dec 31, 2001 10:15 pm
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 18731
- Sun Dec 30, 2001 9:22 am
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 18731
- Sat Dec 29, 2001 7:56 pm
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 18731
Sorry, I posted a wrong source code in previous message. Here's my WA program : /* @JUDGE_ID: xxxxx 104 C++ DP */ #include <iostream.h> #include <math.h> double a[20][20],d[20][20],tmp,val = log(1.01); int n,i,j,k,l,tr[20][20],min,path[20]; void main() { while (cin >> n) { for (i = 0; i < n; i++) fo...
- Sat Dec 29, 2001 7:47 pm
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 18731
Why WA ? :sad: /* @JUDGE_ID: xxxxx 104 C++ DP */ #include <iostream.h> #include <math.h> double a[20][20],d[20][20],tmp,val = log(1.01); int n,i,j,k,l,tr[20][20],min,path[20]; void main() { while (cin >> n) { for (i = 0; i < n; i++) for (j = 0; j < n; j++) if (i == j) a = 0.0; else { cin >> tmp; if ...