TS10 Đắk Nông 2025 - Số bàn học
Xem dạng PDF
Gửi bài giải
Điểm:
0,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
TABLE.INP
Output:
TABLE.OUT
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Bình luận
using namespace std; *
int ban(int x) { int soban =(x / 2) + (x%2) ; return soban; } int main() { iosbase::syncwith_stdio(false); cin.tie(NULL); freopen("TABLE.INP","r",stdin); freopen("TABlE.OUT","w",stdout); int x, y, z; cin>>x>>y>>z; int temp = ban(x) + ban(y); int res = temp * z; cout<< temp<< endl; cout<< res; return 0; }