페이지

5361번: 전투 드로이드 가격

https://www.acmicpc.net/problem/5361


$O(t)$


#include<cstdio>
int t, a, b, c, d, e;
int main() {
    scanf("%d", &t);
    while (t--) scanf("%d %d %d %d %d", &a, &b, &c, &d, &e), printf("$%.2f\n", 350.34*a + 230.9*b + 190.55*c + 125.3*d + 180.9*e);
    return 0;
}

댓글 없음 :

댓글 쓰기