#include using namespace std; void nhap_so_doi_bong(int &n) { do { cout<<"Nhap n: "; cin>>n; if (n < 5 || n > 20) cout<<"\nNhap 5 <= n <= 20"; } while (n < 5 || n > 20); } void nhap_ty_so(int tyso[][20], int n) { bool check[20][20]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (i != j && !check[i][j]) { cout<<"Tran doi "<>tyso[i][j]; cout<<"Nhap so ban thang cua doi "<>tyso[j][i]; check[i][j] = check[j][i] = true; } } } } void hien_thi_ty_so(int tyso[][20], int n) { bool show[20][20]; cout<<"Bang ket qua thi dau"< tyso[j][i]) { diem[i] += 3; } else if (tyso[i][j] == tyso[j][i]) { diem[i] += 1; diem[j] += 1; } else { diem[j] += 3; } check[i][j] = check[j][i] = true; } } } cout<<"Bang diem so"< 1) { int max_hieuso = -100; for (int i = 0; i < n; i++) { if (hieuso[i] > max_hieuso) vodich = i; } } cout<<"Doi bong vo dich la doi "<