Search found 95 matches

by cytmike
Thu Jul 15, 2004 5:54 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38133

Where t is the name of the map, and a is the name of the char array. t[ string( a ) ] = whatever; (Though, of course, it takes time..) I used STL's map and got AC in about 5 secs.. Who did you read char arrays? gets()? yea i used sth like this: char y[size]; cin>>y; set<char *> t; t[y]=...; but whe...
by cytmike
Thu Jul 15, 2004 5:50 pm
Forum: Volume 104 (10400-10499)
Topic: 10433 - Automorphic Numbers
Replies: 41
Views: 23281

anupam wrote:I don't face any problem with c++.
In c++ you can ac the program by having an array of 2500 dig and then by searching the array only.
Just a code of 5 lines I think:-)

BTW, would you plz mention the problem you faced with c++?
--
I got WA in c++.
Let me pm my code to u~
by cytmike
Thu Jul 15, 2004 6:06 am
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38133

Yea, that's the input prob
I did this before too.
It seems that we can only use C-styled character array instead of C++ strings as input.
However, we can't use this for STL map :cry:
by cytmike
Wed Jul 14, 2004 3:02 pm
Forum: Volume 104 (10400-10499)
Topic: 10433 - Automorphic Numbers
Replies: 41
Views: 23281

Finally, i got AC when I translate my program from c++ to pascal...
Does anyone got any idea why this occur?
by cytmike
Wed Jul 14, 2004 3:01 pm
Forum: Volume 106 (10600-10699)
Topic: 10655 - Contemplation - Algebra
Replies: 42
Views: 10535

i used the matrix multiplication method to get AC
thank you anybody who helped me, especially shuniu!! :wink:
by cytmike
Wed Jul 14, 2004 2:15 am
Forum: Volume 106 (10600-10699)
Topic: 10655 - Contemplation - Algebra
Replies: 42
Views: 10535

yea...
i got many of these wrong :cry:

but then...
what data type should i use to avoid this problem?
by cytmike
Tue Jul 13, 2004 2:39 pm
Forum: Volume 106 (10600-10699)
Topic: 10655 - Contemplation - Algebra
Replies: 42
Views: 10535

hey... i still got the above correct, but still judge gives WA... i use DeMovire's Theorem to do the power part. here is my code. hope sb can help me... :cry: [cpp] #include <iostream> #include <cmath> using namespace std; int main() { long double p,h; int y; while (cin>>p>>h>>y) { double l=p*p-4.0*...
by cytmike
Tue Jul 13, 2004 10:42 am
Forum: Volume 8 (800-899)
Topic: 892 - Finding words
Replies: 13
Views: 5430

The input description says:

Every line will be terminated by a character which isn't whitespace (which will be followed immediately by an end-of-line character).

So if this is true, there should not be whitespace after hyphen.

:x
but, still can't solve it ><
by cytmike
Mon Jul 12, 2004 5:03 pm
Forum: Volume 8 (800-899)
Topic: 892 - Finding words
Replies: 13
Views: 5430

892 - Finding words

It seems that is an easy problem.
However, all submmisions are WA.
I wonder what happens there!!! :-?
by cytmike
Mon Jul 12, 2004 5:00 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17436

Solved finally.
Thank you, IIUC! :P
by cytmike
Mon Jul 12, 2004 3:37 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17436

what's that?
by cytmike
Mon Jul 12, 2004 12:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17436

so..
do i need to use all things as BigInt?

i got TLE in such way.

can anybody help me?
by cytmike
Sun Jul 11, 2004 6:43 pm
Forum: Volume 104 (10400-10499)
Topic: 10433 - Automorphic Numbers
Replies: 41
Views: 23281

dunno why
i got WA too...
by cytmike
Sun Jul 11, 2004 12:40 pm
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 29820

Your output is the same as my AC program.
So maybe u should try other outputs then.

Good Luck!
by cytmike
Sun Jul 11, 2004 8:49 am
Forum: Volume 106 (10600-10699)
Topic: 10655 - Contemplation - Algebra
Replies: 42
Views: 10535

push~
can anybody help me?

Go to advanced search