알고리즘

[알고리즘] 백준 24736 - Football Scoring (C++)

blueberrysoda 2024. 11. 15. 23:37

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

#include <iostream>
using namespace std;

int Cnt[2], Arr[5];

int main(){
    for(int i=0; i<2; i++){
        for(int j=0; j<5; j++){
            cin >> Arr[j];
        }
        Cnt[i] = Arr[0] * 6 + Arr[1] * 3 + Arr[2] * 2 + Arr[3] + Arr[4] * 2;
    }
    for(int i=0; i<2; i++){
        cout << Cnt[i] << " ";
    }
    cout << "\n";
    return 0;
}