Search found 1 match

by saad
Sun May 01, 2016 11:54 am
Forum: Volume 113 (11300-11399)
Topic: 11321 - Sort! Sort!! and Sort!!!
Replies: 50
Views: 21980

Re: 11321 - Sort! Sort!! and Sort!!!

i got Time limit can anyone help me with my code ? #include<iostream> using namespace std; int main() { int a,b; while(cin >> a >> b) { if(a==0&&b==0) { cout << "0 0" << endl; break; } int ar[a]; for(int i=0;i<a;i++) { cin >> ar[i]; } for(int i=0;i<a;i++) { for(int j=i+1;j<a;j++) {...

Go to advanced search