Search found 74 matches

by sunnycare
Mon Apr 04, 2005 4:20 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 32212

755 need a fast algrithem

i solved the problem 755 ,but used 9.928 seconds ... i see others use only 0.0xx seconds...... i have generated 1,000,000 random telephone number,and my prog solved it in 118.xxx seconds......so long...... my code here #include <iostream> #include <string> #include <map> using namespace std; long t[...
by sunnycare
Mon Apr 04, 2005 4:13 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 25338

thanks very much!

i really misunderstand it...
by sunnycare
Sat Apr 02, 2005 10:14 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 25338

111 misunderstand the problem need help

input:
10
3 1 2 4 9 5 10 6 8 7
2 10 1 3 8 4 9 5 7 6

output:
9



why the output is 9? i think it is 5...
by sunnycare
Sat Apr 02, 2005 10:03 am
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 16978

thanks

i always add a blank line after the last output..
by sunnycare
Fri Apr 01, 2005 2:33 am
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 16978

729 Accepted but P.E

i want to know why i got P.E.

it seems if i submit a multiple input problem , i will got P.E.

need some sample ouput ......
(maybe i lose one blank line somewhere,i think) ..
by sunnycare
Fri Apr 01, 2005 2:11 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 96805

thanks

accepted!
by sunnycare
Thu Mar 31, 2005 8:20 am
Forum: Volume 4 (400-499)
Topic: 453 - Intersecting Circles
Replies: 84
Views: 17299

453 wa ,, need some input and output sample

i think this problem is very easy.....but i got WA again and again..... i dont know ..... who can give me some input and output smaple..?? #include <iostream> #include <cmath> using namespace std; void main() { double a1,b1,c1; double a2,b2,c2; cout.setf(ios::fixed,ios::floatfield); cout.precision(3...
by sunnycare
Tue Mar 29, 2005 3:53 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 26729

107 wa

what's the limit of the input number?
shall i use BigInteger??
by sunnycare
Mon Mar 21, 2005 5:11 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 29538

right..thanks..
by sunnycare
Mon Mar 21, 2005 4:59 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 96805

10038 WA

why it is always WA............ I misunderstand the problem?? #include <iostream> using namespace std; void main() { unsigned long n; while((cin>>n) != NULL) { if(n!=1) { long *p=new long[n]; long *q=new long[n]; unsigned long i=0; while(i<n) { cin>>p[i]; q[i]=0; i++; } for(i=0;i<n-1;i++) { unsigned...
by sunnycare
Fri Mar 18, 2005 3:59 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 29538

why use fstream?
by sunnycare
Tue Mar 15, 2005 2:58 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 29538

Why "Floating point exception"---problem 160

#include <iostream> using namespace std; unsigned long primeTable[25]={2,3,5,7, 11,13,17,19, 23,29, 31,37, 41,43,47, 53,59, 61,67, 71,73,79, 83,89, 97}; unsigned long func(unsigned long n,unsigned long p) { unsigned long i=0; while(n>0) { n=n/p; i+=n; } return i; } void main() { unsigned long n; ci...
by sunnycare
Mon Mar 14, 2005 4:17 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 72931

thanks ...
but why ?
by sunnycare
Tue Mar 08, 2005 3:37 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 72931

102 Wrong Answer

my code here .....I dont know why it wrong..... #include <iostream> using namespace std; void main() { char *str[6]={"BCG","BGC","CBG","CGB","GBC","GCB"}; unsigned int a[9]; //store input num unsigned int b[6]; while(1) { if(cin.eof()) brea...

Go to advanced search