2 solutions

  • 1
    @ 2025-11-22 13:18:18

    cscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscscs

    • -1
      @ 2025-8-13 15:18:31
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int n,k=0;
      	cin>>n;
      	for(int i=1;i<=n;i++){
      		int x;
      		cin>>x;
      		int t=x;
      		int k=0;
      		while(t){
      			int g=t%10;
      			k+=g;
                  t/=10;
      		}
      		if(k%7==0){
      		cout<<"Yes"<<endl;
      	}
      		else cout<<"No"<<endl;
      	}
      
      	return 0;
      }
      
      
      
      • 1

      Information

      ID
      2195
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      7
      Tags
      # Submissions
      49
      Accepted
      13
      Uploaded By