Please help me in this problem...
http://online-judge.uva.es/board/viewtopic.php?p=46034
Search found 7 matches
- Mon May 15, 2006 12:03 am
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 38848
- Mon May 08, 2006 8:04 am
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 38848
483 WHY WA???
I submit this code and i get WA, WHY??? It's a problem so easy!!!!!!
#include <stdio.h>
//483
int main()
{
char c, s[100]; int cant = 0;
while ((c = getchar()) != EOF)
{
if (c != '\n')
{
if (c != ' ')
{
s[cant++] = c;
} else
{
for (int i = cant - 1; i > -1; i--)
printf("%c", s[i ...
#include <stdio.h>
//483
int main()
{
char c, s[100]; int cant = 0;
while ((c = getchar()) != EOF)
{
if (c != '\n')
{
if (c != ' ')
{
s[cant++] = c;
} else
{
for (int i = cant - 1; i > -1; i--)
printf("%c", s[i ...
- Mon May 08, 2006 7:47 am
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 38848
- Fri Apr 14, 2006 5:19 pm
- Forum: Algorithms
- Topic: Nonconvex polygon
- Replies: 2
- Views: 1358
- Fri Apr 14, 2006 4:15 pm
- Forum: Algorithms
- Topic: Nonconvex polygon
- Replies: 2
- Views: 1358
Nonconvex polygon
Hello to all:
I am a student of a University of Computer Science, and in my project have put me a tasks and is one me is returning crazy :-? :
Initially they gave one, that given a cloud me of points, is needed that my program gives back the convex polygon, and I already did it, with a mathematical ...
I am a student of a University of Computer Science, and in my project have put me a tasks and is one me is returning crazy :-? :
Initially they gave one, that given a cloud me of points, is needed that my program gives back the convex polygon, and I already did it, with a mathematical ...
- Sat Apr 01, 2006 11:32 pm
- Forum: C++
- Topic: Print a long duble
- Replies: 3
- Views: 2488
Print a long duble
How i can print a variable "long double", for example:
#include <iostream.h>
int main()
{
long double n1 = 100000000;
cout << n1;
return 0;
}
The program is good, but print:
1e+08
I want that print:
100000000
What i can do it?
Greetings...
#include <iostream.h>
int main()
{
long double n1 = 100000000;
cout << n1;
return 0;
}
The program is good, but print:
1e+08
I want that print:
100000000
What i can do it?
Greetings...
- Sat Apr 01, 2006 8:10 pm
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56775
727 --> why RTE?
Each time i submit the next code, i get RTE, WHY??????
#include <iostream.h>
#include <stdio.h>
//727
int Prioridad(char c, bool t)
{
int prior;
switch (c)
{
case ')':
case '(': if (t) prior = 5; else prior = 1; break;
case '+':
case '-': prior = 2; break;
case '*':
case '/': prior = 3 ...
#include <iostream.h>
#include <stdio.h>
//727
int Prioridad(char c, bool t)
{
int prior;
switch (c)
{
case ')':
case '(': if (t) prior = 5; else prior = 1; break;
case '+':
case '-': prior = 2; break;
case '*':
case '/': prior = 3 ...