Search found 18 matches
- Tue Aug 02, 2005 7:05 am
- Forum: Algorithms
- Topic: Question about intro Sort / Introspective Sort...
- Replies: 0
- Views: 991
Question about intro Sort / Introspective Sort...
Hi... can anyone help me explain or give reference about this sort... i'm still confuse about it's depth limit switch to heap sort from quick sort when it became to quadratic behavior... i'm doing this for my paper work... plez... someone can explain about this sort algoritm... thank's best regard..
- Sat Nov 29, 2003 11:05 am
- Forum: Volume 4 (400-499)
- Topic: 400 - Unix ls
- Replies: 93
- Views: 26720
- Fri Nov 14, 2003 8:57 am
- Forum: Volume 103 (10300-10399)
- Topic: 10302 - Summation of Polynomials
- Replies: 29
- Views: 18282
Weird??
when i declare variable using double my compiler give the answer
1562562500624999940 which is WA
then when i changed it to long long the answer is
85550656 which is AC
actually what is the output for 50000 ??
am i missing something here??
can someone explain to me this simple question..
thanks
1562562500624999940 which is WA
then when i changed it to long long the answer is
85550656 which is AC
actually what is the output for 50000 ??
am i missing something here??
can someone explain to me this simple question..
![:(](./images/smilies/icon_frown.gif)
thanks
- Mon Mar 17, 2003 1:20 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 36625
Here more test case:
input:
output:
Good luck ![:wink:](./images/smilies/icon_wink.gif)
input:
Code: Select all
This just for test.
0-1000-99999
0-123-4567-89
0-123-4567-890
1-111-111-111
Code: Select all
This just for test. is incorrect.
0-1000-99999 is incorrect.
0-123-4567-89 is correct.
0-123-4567-890 is incorrect.
1-111-111-111 is correct.
![:wink:](./images/smilies/icon_wink.gif)
- Fri Mar 14, 2003 5:36 am
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 42415
- Fri Mar 14, 2003 5:26 am
- Forum: Volume 1 (100-199)
- Topic: 130 - Roman Roulette
- Replies: 25
- Views: 4628
130 - Roman Roulette
can someone give me critical input for this problem ??
i'm can't figure out what's wrong with my code...
my code give I/O like this:
input:
100 5
50 1
70 4
50 9
7 3
1 0
0 0
output:
47
50
6
48
4
1
please correct me if wrong...thank's...
i'm can't figure out what's wrong with my code...
my code give I/O like this:
input:
100 5
50 1
70 4
50 9
7 3
1 0
0 0
output:
47
50
6
48
4
1
please correct me if wrong...thank's...
- Tue Mar 04, 2003 9:56 am
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 36625
- Mon Mar 03, 2003 12:42 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 36625
- Sun Mar 02, 2003 3:19 pm
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 34827
- Sun Mar 02, 2003 7:07 am
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 36625
- Sat Mar 01, 2003 3:20 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 36625
333: WA, why?
Hi...can anybody help me what kind of input that make my code WA ?? 0-89237-010-6 is correct, how about 0_89237_010_6 ?? anyway here is my code [c]#include<stdio.h> #include<string.h> void main() { char isbn[81]; int sum1[10],sum2[10],i,length,angka[10],max,flag; while(scanf("%s",&isbn...
- Thu Feb 27, 2003 5:21 am
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 34827
- Sat Feb 22, 2003 5:26 am
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 34827
- Thu Feb 20, 2003 6:48 pm
- Forum: Volume 3 (300-399)
- Topic: 382 - Perfection
- Replies: 95
- Views: 31814
- Thu Feb 20, 2003 4:09 pm
- Forum: Volume 3 (300-399)
- Topic: 382 - Perfection
- Replies: 95
- Views: 31814
problem 382 WA, Why ??
What's wrong with this code?. look's correct "to me"... [c]#include<stdio.h> void main() { long int i,sum,flag=1; long int n; int x,y; while(scanf("%ld",&n)!=EOF) { if(flag==1) { printf("PERFECTION OUTPUT\n"); flag=0; } if(n==0) { printf("END OF OUTPUT\n\n"...