Search found 33 matches

by Karthekeyan
Thu Jan 12, 2006 10:13 am
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 25066

I found the reason!!
isdigit was the problem....i removed it and i got PE now!! So, how to remove the PE??
by Karthekeyan
Thu Jan 12, 2006 10:00 am
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 25066

10719 Compiler Error!

How can I get a compile error from the OJ for this code??!!
It's working fine in my comp!! Could someone lend me a hand?

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
long int valdec(vector<char> no)
{
long int res;
int n=no.size();
if(no[0]=='-')
{
res=0;
long ...
by Karthekeyan
Mon Jan 02, 2006 6:32 pm
Forum: Volume 108 (10800-10899)
Topic: 10823 - Of Circles and Squares
Replies: 50
Views: 17757

10823 Run Time error

Could someone point out why?

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
struct square
{
int blx,bly,side;
int red,green,blue;
};
struct circle
{
int centerx,centery,radius;
int red,green,blue;
};
struct possibs
{
int red,green,blue;
};
main ...
by Karthekeyan
Sun Jan 01, 2006 7:20 am
Forum: Volume 1 (100-199)
Topic: 142 - Mouse Clicks
Replies: 58
Views: 11647

Code: Select all

I 0 0
I 0 100
I 100 0 
R 80 80 120 120
I 100 100
M 50 50
# 
Answer is

Code: Select all

  1  2  3
and not

Code: Select all

  1  2  4
as posted by chunyi81...
and i got my code accepted....very silly error....
by Karthekeyan
Thu Dec 29, 2005 8:47 am
Forum: Volume 1 (100-199)
Topic: 142 - Mouse Clicks
Replies: 58
Views: 11647

here is the modified code taking care of the test case you gave above....
help me please

#include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
using namespace std;
struct region
{
int tlx,tly,brx,bry;
char regname;
};
struct icon
{
int x,y;
int icno;
int mark;
};
struct ...
by Karthekeyan
Thu Dec 29, 2005 8:31 am
Forum: Volume 6 (600-699)
Topic: 616 - Coconuts, Revisited
Replies: 37
Views: 18072

thanks a lot dude....got it corrected
by Karthekeyan
Sun Dec 25, 2005 1:20 pm
Forum: Volume 1 (100-199)
Topic: 142 - Mouse Clicks
Replies: 58
Views: 11647

142 WA!!:-((

I am getting WA for this code....
This is how i proceed...
I store the icon coordinates and the region coordinates in two arrays separately...whenever a mouse click happens, I store the icon(/icons if there are many at the same distance) that is closest to the mouse click in iconposs array....then i ...
by Karthekeyan
Sun Dec 25, 2005 10:05 am
Forum: Volume 100 (10000-10099)
Topic: 10036 - Divisibility
Replies: 37
Views: 18434

tan_Yui wrote: Karthekeyan, your code should consider about minus by getting absolute value.
thanks a lot....i got it ac now
by Karthekeyan
Sat Dec 24, 2005 11:14 am
Forum: Volume 6 (600-699)
Topic: 616 - Coconuts, Revisited
Replies: 37
Views: 18072

616 WA

Someone help me please....Dunno why i get WA for this code

Code: Select all

removed after getting ac
by Karthekeyan
Wed Dec 21, 2005 10:40 am
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 22422

oh ya!

such a silly mistake i made!!:-((
by Karthekeyan
Wed Jun 01, 2005 4:08 pm
Forum: Volume 6 (600-699)
Topic: 661 - Blowing Fuses
Replies: 67
Views: 30957

that was rite....thanx!!!!
by Karthekeyan
Wed Jun 01, 2005 11:35 am
Forum: Volume 6 (600-699)
Topic: 661 - Blowing Fuses
Replies: 67
Views: 30957

661 - PE

Here's my code....I got PE from OJ!!!! Where's the problem?

Code: Select all

spoiler
by Karthekeyan
Mon May 30, 2005 8:47 am
Forum: Volume 3 (300-399)
Topic: 348 - Optimal Array Multiplication Sequence
Replies: 22
Views: 6652

Sorry, the code compiles very well! I have written like this for the past 50 problems and got 'em accepted! So, it's not the problem with compiling! (Note that the OJ uses g++)
by Karthekeyan
Sat May 28, 2005 7:01 am
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 30595

1)my inputs:

16 2 0000120110
10 5 0000120110

my outputs:
0000120110 base 16 = 100100000000100010000 base 2
0000120110 base 10 = 12320420 base 5


2) No need to consider negative inputs (my code didn't consider)
3) There won't be any embedded space in the input number
4)
4) I convert the input ...
by Karthekeyan
Fri May 27, 2005 6:28 pm
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 30595

355 - The Bases Are Loaded

This was the case that i didn't consider initially....and the only sp. case because of which i got WAs frm OJ!!!!
I printed

Code: Select all

0 base 2 = base 10
But, make sure that you print

Code: Select all

0 base 2 = 0 base 10
......
Hope it helps!!!! :D

Go to advanced search