ผลต่างระหว่างรุ่นของ "Algo lab/sorting tasks notes"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
(สร้างหน้าด้วย "== Template for flipsort == <syntaxhighlight lang="cpp"> #include <iostream> using namespace std; int x[1010]; main() { int n; while(cin >> n) {...")
(ไม่แตกต่าง)

รุ่นแก้ไขเมื่อ 06:30, 28 สิงหาคม 2566

Template for flipsort

#include <iostream>

using namespace std;

int x[1010];

main()
{
  int n;

  while(cin >> n) {
    for(int i=0; i<n; i++) {
      cin >> x[i];
    }

    // do bubble sort
  }
}

Sample codes