Search found 4 matches

by Qba
Thu Aug 08, 2002 4:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39683

10013 - Super long sums

Hello ! What's wrong in this source ? My program Accepted on acm.timus.ru but on uva.es not ? This my source code: [c] #include <stdio.h> int main() { long l9; int mem; long N, M; long i,j, k; int S; int l1, l2; scanf("%ld", &M); for(k=0; k<M; k++) { scanf("%ld", &N); for(i=0, l9=0, mem=-1, S=0; i<N...
by Qba
Thu Aug 08, 2002 4:26 pm
Forum: Volume 100 (10000-10099)
Topic: 10014 - Simple calculations
Replies: 34
Views: 8426

10014 - Simple calculations

I don't know what's wrong ? This is my source: [cpp] #include <iostream.h> #include <stdio.h> #define MAX_EL 3335 int n; double a0, an1; double c[MAX_EL]; double tmp; int main() { while(scanf("%d", &n) != EOF) { cin >> a0; cin >> an1; tmp = 0.0; for(int i=0; i<n; i++) { cin >> c ; } a0 *= n/(n+1.0);...
by Qba
Mon Jul 29, 2002 7:52 pm
Forum: Volume 103 (10300-10399)
Topic: 10331 - The Flyover Construction
Replies: 19
Views: 4909

Hi !

Maybe U must consider exaple input:

2 2
1 2 1
2 1 1

in my opinion example output is:
1 2
by Qba
Mon Jul 29, 2002 7:50 pm
Forum: Volume 103 (10300-10399)
Topic: 10331 - The Flyover Construction
Replies: 19
Views: 4909

10331

Hi !
Simple question ;-)

Is it possible - Two roads between two cities ?

example input:
2 2
1 2 1
2 1 1

Go to advanced search