Search found 4 matches

by No.47WK
Sun Apr 24, 2011 3:58 pm
Forum: Volume 2 (200-299)
Topic: 202 - Repeating Decimals
Replies: 82
Views: 25800

UVA 202

I have tried all the test cases can be found in the site?and all i'o are correct?and I do not know what's wrong with my cod.
Help me,plz;
Or if you give me some critic I/OI will also appreciate if you give me some critic I/O
Here is my code
#include<iostream>
#include<cstring>
#include<stdio.h ...
by No.47WK
Thu Mar 31, 2011 1:37 pm
Forum: Volume 4 (400-499)
Topic: 457 - Linear Cellular Automata
Replies: 25
Views: 14769

Help me with 457 WA

#include<iostream>
#include<cstring>
using namespace std;
int arr[10];
void change(char *a,char *b)
{
int i=0,j,w;
char *p;
while(i<40)
{
//cout<<i<<' ';
for(p=a-1,j=0,w=0;j<3;++j,++p)
{
if(*p=='.')
++w;
else if(*p=='x')
w=w+2;
else if(*p=='w')
w=w+3;
}
//cout<<arr[w];
if(arr[w]==0 ...
by No.47WK
Thu Mar 31, 2011 1:35 pm
Forum: Volume 4 (400-499)
Topic: 414 - Machined Surfaces
Replies: 49
Views: 14984

AID 414 WA

#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
long int n,te,b[16],i,sum,min;
char c[26],*tem,*temp;
while(cin>>n)
{
min=25;
i=0;
sum=0;
while(i<=n)
{
te=0;
gets(c); //(??gets????????n???????
tem=strchr(c,' ');
if(tem)
{
temp=strchr(tem,'X ...
by No.47WK
Thu Mar 31, 2011 1:32 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 37583

190 WA

#include<iostream>
#include<cstdio>
using namespace std;
#include<cmath>
double xl(double x1,double y1,double x2,double y2,double &a)
{
if(y2==y1)
return false;
else
{
a=(x1-x2)/(y2-y1);
return true;
}
}
void out(double x1,double y1,double x2,double y2,double x3,double y3)
{
double a,b,x4 ...

Go to advanced search