Advertisement
ivangarvanliev

Untitled

Jun 2nd, 2024
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n,m;
  6.     cin>>n>>m;
  7.     int plost=n*m;
  8.     if(plost%2==0){
  9.         cout<<plost/2;
  10.     }
  11.     else{
  12.         cout<<(plost- 1)/2;
  13.     }
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement