2 solutions

  • 0
    @ 2025-8-21 16:12:09
    language
    ```
    
    
    ```
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
       int a,b,c;
       cin>>a;
       c=0;	 
       for(int i=1;i<=a;i++)
       { 
         cin>>b; 
         if(b%9==0&&b%8!=0)
         {
          c++;
         } 
       }
       cout<<c; 
        return 0;
    }
    • -1
      @ 2025-6-6 23:18:49

      #include<bits/stdc++.h> using namespace std; int main() { int a; int b; cin>>a; int arr[a]; for(int i=0;i<a;i++){ cin>>b; arr[i]=b; } int m=0; for(int i=0;i<a;i++){ if(arr[i]%9==0&&a%8!=0) { m=m+1; } } cout<<m; return 0; }

      • 1

      Information

      ID
      2194
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      4
      Tags
      # Submissions
      31
      Accepted
      16
      Uploaded By