알고리즘

[알고리즘] 백준 29751 - 삼각형 (C++)

blueberrysoda 2024. 11. 3. 23:41

[문제 링크] : https://www.acmicpc.net/problem/29751

#include <iostream>
using namespace std;

int main(){
    double W, H;
    cin >> W >> H;
    cout << fixed;
    cout.precision(1);
    cout << W * H / 2 << "\n";
    return 0;
}