fork download
  1. #include <iostream>
  2. #include<string.h>
  3. #include<cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. // int a,count1,count2,count,n,i,p,r,q,coun=0;
  9. int t,n,i;
  10. cin>>t;
  11. string p,out;
  12. while(t--)
  13. {
  14. cin>>n>>p;
  15. int a[n];
  16. for(i=0;i<n;i++)
  17. {cin>>a[i]; }
  18. if(n==1)
  19. {
  20. if(p=="Dee"&& a[0]%2==0)
  21. {
  22. cout<<"Dee\n";
  23. }
  24. else
  25. {
  26. cout<<"Dum\n";
  27. }
  28. }
  29. else if(n>1)
  30. {
  31. // cout<<"hello"<<endl;
  32. cout<<"Dum\n";
  33. }
  34. //cout<<out<<endl;
  35. }
  36.  
  37.  
  38. }
  39.  
Success #stdin #stdout 0s 3472KB
stdin
2
1 Dee
17
1 Dee
14
stdout
Dum
Dee