Viết template <typename... Ts> int countGreater(int threshold, Ts... args) đếm số phần tử > threshold dùng fold expression. Đọc threshold rồi 5 số nguyên, in kết quả.
Dòng 1: threshold. Dòng 2: 5 số nguyên.
|threshold|,|a_i| <= 10^9.
Số phần tử > threshold.
Đang tải editor...