All pastes #295640 Raw Edit

Miscellany

public text v1 · immutable
#295640 ·published 2006-12-29 16:33 UTC
rendered paste body
using namespace std;

int main(){
    int a,b,e,i,j;
    int c[51];
    int d;
    
    cin >> a;
    for(;a>0;a--){
                     cin >> b;
                     e = b/2;                 
                     for(i=0;i<e;i++){
                                    cin >> c[i];
                                    cin >> d;
                                    cout << d;
                                    cout << " ";
                     }
                     if(b%2){
                             i++;
                             cin >> c[i];
                     }
                     for(j=0;j<i;j++){
                                      cout << c[j];
                                      cout << " ";
                     }
                     cout << "\n";  
}
system("PAUSE");
    return 0;
}