1 solutions

  • 0
    @ 2025-11-5 17:30:15

    C++ :

    #include <cstdio>
    #include <cstring>
    #include <cstdlib>
    #include <iostream>
    #include <algorithm>
    #include <stack>
    #include <queue>
    #include <cmath>
    #include <string>
    #include <set>
    #include <map>
    #define maxn 0
     
    using namespace std ;
     
    int main ()
    {
        long long x, y ;
         
        while (scanf("%lld%lld", &x, &y) != EOF && (x||y))
        {
            printf ("%lld\n", (x+y)/2) ;
        }
     
        return 0 ;
    }
    
    • 1

    Information

    ID
    18493
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By