I am trying this problem again and again .But I cannot find error in this code .Why WA ?? Please help ...
#include<iostream>
#include<cstdio>
#include<cmath>
#include <algorithm>
using namespace std;
#define PI 3.14159265
class CM
{
public:
double x,y;
bool operator<(const CM &c)const
{
if ...
Search found 2 matches
- Sat Jan 21, 2012 9:24 am
- Forum: Volume 103 (10300-10399)
- Topic: 10378 - Complex Numbers
- Replies: 25
- Views: 16073
- Fri Feb 18, 2011 9:06 am
- Forum: Volume 100 (10000-10099)
- Topic: 10093 - An Easy Problem!
- Replies: 52
- Views: 23230
Re: 10093 - An Easy Problem!
Hi, I could not find any bug in this code . Please help me .Why this code is not accepted By ACM ?
#include<iostream>
#include<string>
using namespace std;
int getValue(char ch)
{
if(ch>='0' && ch<='9')
return ch-'0';
else if(ch>='A' && ch<='Z')
return ch-'A'+10;
else
return ch-'a'+36 ...
#include<iostream>
#include<string>
using namespace std;
int getValue(char ch)
{
if(ch>='0' && ch<='9')
return ch-'0';
else if(ch>='A' && ch<='Z')
return ch-'A'+10;
else
return ch-'a'+36 ...