#include <bits/stdc++.h>
using namespace std; int main() { int N; cin>>N; int year[N]; for(int i = 0; i < N; i++) { cin>>year[i]; } int count = 0; int k; for(int i = 0; i < N; i++) { k = year[i]; if(k % 19 == 0 || k % 19 == 3 || k % 19 == 6 || k % 19 == 9 || k % 19 == 11 || k % 19 == 14 || k % 19 == 17) { count++; } } cout<<count; }Xây dựng danh sách Sinh Viên
Xậy dựng 1 kiểu cấu trúc sinh viên không vượt quá 100 người gồm thông tin sau: Ho và tên Điểm môn 1, môn 2, môn 3, ĐTB Sắp xếp theo điểm trung bình và có kẹp vị thứ từng người Code: #include <bits/stdc++.h> using namespace std; struct student { string HoTen; float mon1,mon2,mon3,dtb; }; typedef student ST; float DTB(float a, float b , float c) { return (a+b+c)/3; } void Inp_Array(ST a[],int n) { for(int i = 0 ; i < n ; i++) { cout<<"Sinh vien thu "<<i+1<<endl; cout<<"Nhap ho va ten: "; fflush(stdin); getline(cin,a[i].HoTen); cout<<"Nhap diem thi cac mon"<<endl; cout<<"Diem mon 1: "; cin>>a[i].mon1; cout<<"Diem mon 2: "; cin>>a[i].mon2; cout<<"Diem mon 3: "; cin>>a[i].mon3; a[i].dtb = DTB(a[i].mon1,a[i].mon2,a[i].mon2); } } void SapXep(ST a[],int n) { for(int i = 0 ; i < n - 1; i++) { for(int j = i + 1 ; ...