luyencode / comments

Server lưu trữ bình luận trên Luyện Code
https://luyencode.net
6 stars 3 forks source link

https://oj.luyencode.net/problem/DLCT #690

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Đu lít contest - Luyện Code Online

https://luyencode.net/problem/DLCT

ApokPhuoc commented 2 years ago

Đề bài không rõ ràng , dữ liệu đầu vào cũng sơ sài , test mẫu cũng cần giải thích rõ ràng để mọi người dễ hiểu hơn !

phanquocloc commented 2 years ago

@ApokPhuoc Đề bài đã ghi đầy đủ những gì mà đề có rồi mà , Dữ liệu đầu vào đã sửa và test thì phải tự tìm hiểu !

TheAnhNoobC commented 2 years ago

Đề mà k có yêu cầu. chán chẳng muốn nói

TheAnhNoobC commented 2 years ago

test 1 chẳng bt sai chỗ nào

phanquocloc commented 2 years ago

@nguyenbahoang2709 Trường Hợp Nếu Số Điểm Các Đội Bằng Nhau Thì So Sánh Thời Gian

Tamprooo121 commented 1 year ago

include

using namespace std;

int main() { int n; cin >> n; int time1, time2, score1 = 0, score2 = 0; for (int i = 0; i < n; i++) { cin >> time1; score1 += time1 > 0 ? 10 + 300 - time1 : 0; // tính điểm của bạn 1 } for (int i = 0; i < n; i++) { cin >> time2; score2 += time2 > 0 ? 10 + 300 - time2 : 0; // tính điểm của bạn 2 } if (score1 > score2) { cout << "1\n"; } else if (score1 < score2) { cout << "2\n"; } else { cout << "Double Win\n"; } return 0; }