Search found 6 matches

Mon Jan 12, 2004 5:00 am
Forum: Other words
Topic: UVa first school problems
Replies: 1
Views: 982

UVa first school problems

Hello,

The problems of this contest will be avaliable on this site?
If, where and when?

I would like to try to solve these problems, because I can't solve none of them when the contest was running.

Thanks,
Gabriel
Sat Dec 27, 2003 4:01 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 25429
Then, what's wrong with my algo?
Fri Dec 26, 2003 12:41 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 25429

Big bumbers? (147 and 357)

I've solved these problems, but the range of answers is larger than the suportted by long long in C++.

It's necessary to use big numbers in these problems?

Someone have solved these problems without the use of big numbers?
Tue Dec 23, 2003 5:58 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 23668

WA, WA, WA!!

Why WA? I've ever looked all posts about this problem, but none helped me. [cpp] #include <iostream.h> #include <string.h> void main() { char matriz[102][102]; int cont, max; cont=0; max=0; while (cin.getline(matriz[cont],100,'\n')) { if (strlen(matriz[cont])>max) max=strlen(matriz[cont]); cont++; }...
Sun Nov 23, 2003 4:57 am
Forum: Volume 3 (300-399)
Topic: 392 - Polynomial Showdown
Replies: 93
Views: 19500

392

I've got Runtime Error (SIGSEGV).. Why? [cpp] #include <iostream.h> #include <math.h> void main() { int vetor[9], primeiro; while (cin >>vetor[1]) { for (int i=2; i<=9; i++) cin >> vetor ; primeiro=0; for (int i=1; i<=9; i++) { if (vetor !=0) { if (vetor <0) cout << "-"; else if (primeiro==1) cout <...
Sun Nov 23, 2003 4:47 am
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 30394

195 - OLE

Why OLE? My code: [cpp] #include <iostream.h> #include <string.h> char A[100], escreve[100], temp; int n, marca[1000], cont; void anagrama() { for (int i=0; i<strlen(A); i++) { if (marca[i]==0) { escreve[cont]=A[i]; cont++; marca[i]=1; if (cont==strlen(A)) { escreve[cont]='\0'; cout << escreve << en...