1 solutions

  • 0
    @ 2024-12-2 21:10:08

    签到题,搞清楚A和P的定义即可

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        int A, P;
        cin >> A >> P;
        cout << (A * 3 + P) / 2;
        return 0;
    }
    
    • 1

    Information

    ID
    612
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    33
    Accepted
    25
    Uploaded By