1 solutions

  • 0
    @ 2025-11-5 18:34:23

    C++ :

    #include <bits/stdc++.h>
      
    using namespace std;
      
    int main()
    {
        int n;
        cin >> n;
          
        string s;
        float a;
        int b, cnt = 0;
        for(int i = 0; i < n; i++){
            cin >> s >> a >> b;
              
            if(a >= 37.5 and b){
                cout << s << endl;
                cnt++;
            }
        }
          
        cout << cnt << endl;
    }
    
    • 1

    Information

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