fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, a[1000], s=0;
  6. cin>>n;
  7. for(int i=0; i<n;i++)
  8. {
  9. cin>>a[i];
  10. s+=a[i];
  11. }
  12. if(s%10==0)
  13. cout<<"DEP";
  14. else if(s%5==0)
  15. cout<<"TRUNGBINH";
  16. else cout<<"XAU";
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
DEP