Search found 2 matches

by rubelreza
Mon Oct 12, 2009 8:57 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 19214

Re: 382 WA

viya, i m not understanding why 1 is deficient????******
by rubelreza
Fri Jul 24, 2009 3:40 pm
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 22712

Re: 10327 - Flip Sort

WHY I M GETTING WA??? CAN ANYONE TELL ME PLEASE.. #include<stdio.h> int main(){ char s[1000]; int i,j,M=0,n,a,b; while(scanf("%d\n",&n)==1){ M=0; for(i=0;i<n;i++){ scanf("%d",&s );} for(b=0;b<n-1;b++){ for(j=0;j<n-1;j++){ if(s[j]>s[j+1]) { a=s[j]; s[j]=s[j+1]; s[j+1]=a; M++; }}} printf("Minimum exch...

Go to advanced search