PnnK

pasBSABC

May 11th, 2022
1,254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.21 KB | None | 0 0
  1. ##
  2. var startTime := Milliseconds;
  3. var n := 100000;
  4. var a := ArrGen(n, n, x->x-1);
  5. for var i := 0 to n-1 do
  6.   for var j := i+1 to n-1 do
  7.     if a[i]>a[j] then swap(a[i],a[j]);
  8. print(Milliseconds - startTime);
  9.  
Advertisement
Add Comment
Please, Sign In to add comment