알고리즘

[알고리즘] 백준 10179 - 쿠폰 (C++)

blueberrysoda 2024. 11. 7. 23:31

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

#include <iostream>
using namespace std;

int main(){
    int N;
    double P;
    cin >> N;
    for(int i=0; i<N; i++){
        cin >> P;
        cout << fixed;
        cout.precision(2);
        cout << "$" << P * 0.8 << "\n";
    }
    return 0;
}