My code get the right graphic like the example
but it get WA
I can examine it's why
can anybody tell me why?
my code is following :
#include<iostream.h>
void main()
{
int n , sum , a[500],i,k,tm=0, j,m,first,first1,g,wide,wid2;
while(!cin.eof())
{
sum = 0 ;
i = 0 ;
j = 0 ;
cin>>n ...
Search found 6 matches
- Sun Nov 10, 2002 1:35 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10333 - The Tower of ASCII
- Replies: 8
- Views: 4215
- Fri Nov 01, 2002 12:28 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10287 - Gifts in a Hexagonal Box
- Replies: 8
- Views: 3073
10287
My code is following :
why it's wrong I can find any problem but i ge WA
can any one give me some test floatings and answers let me try my code ?
#include<iostream>
#include<math.h>
#include<stdio.h>
#include<iomanip>
using namespace std ;
const double pi = 3.1415926535 ;
void main()
{
float a ...
why it's wrong I can find any problem but i ge WA
can any one give me some test floatings and answers let me try my code ?
#include<iostream>
#include<math.h>
#include<stdio.h>
#include<iomanip>
using namespace std ;
const double pi = 3.1415926535 ;
void main()
{
float a ...
- Fri Oct 25, 2002 2:16 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10333 - The Tower of ASCII
- Replies: 8
- Views: 4215
- Wed Oct 02, 2002 10:05 am
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 54957
WA----107----why?
#include<iostream.h>
#include<math.h>
unsigned int idl , tot;
int js(int later,int sume,int height)
{
int temp , i ,j;
for(i = 2 ; i<=later ; i++)
{
temp = (int)(log(sume)/log(i) );
if((int)pow(i+1,temp) == height)
break ;
}
for(j=1; j <= temp ; j++)
{
tot += ((int)pow(i,j)*(int)pow(i+1 ...
#include<math.h>
unsigned int idl , tot;
int js(int later,int sume,int height)
{
int temp , i ,j;
for(i = 2 ; i<=later ; i++)
{
temp = (int)(log(sume)/log(i) );
if((int)pow(i+1,temp) == height)
break ;
}
for(j=1; j <= temp ; j++)
{
tot += ((int)pow(i,j)*(int)pow(i+1 ...
- Wed Oct 02, 2002 10:02 am
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 54957
WA----107----why?
#include<iostream.h>
#include<math.h>
unsigned int idl , tot;
int js(int later,int sume,int height)
{
int temp , i ,j;
for(i = 2 ; i<=later ; i++)
{
temp = (int)(log(sume)/log(i) );
if((int)pow(i+1,temp) == height)
break ;
}
for(j=1; j <= temp ; j++)
{
tot += ((int)pow(i,j)*(int)pow(i+1 ...
#include<math.h>
unsigned int idl , tot;
int js(int later,int sume,int height)
{
int temp , i ,j;
for(i = 2 ; i<=later ; i++)
{
temp = (int)(log(sume)/log(i) );
if((int)pow(i+1,temp) == height)
break ;
}
for(j=1; j <= temp ; j++)
{
tot += ((int)pow(i,j)*(int)pow(i+1 ...
- Tue Oct 01, 2002 4:31 pm
- Forum: General
- Topic: WA--------why?
- Replies: 0
- Views: 944
WA--------why?
#include<iostream.h>
#include<math.h>
unsigned int idl , tot;
int js(int later,int sume,int height)
{
int temp , i ,j;
for(i = 2 ; i<=later ; i++)
{
temp = (int)(log(sume)/log(i) );
if((int)pow(i+1,temp) == height)
break ;
}
for(j=1; j <= temp ; j++)
{
tot += (int)pow(i,j)*(int)pow(i+1 ...
#include<math.h>
unsigned int idl , tot;
int js(int later,int sume,int height)
{
int temp , i ,j;
for(i = 2 ; i<=later ; i++)
{
temp = (int)(log(sume)/log(i) );
if((int)pow(i+1,temp) == height)
break ;
}
for(j=1; j <= temp ; j++)
{
tot += (int)pow(i,j)*(int)pow(i+1 ...