fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. long long n,t=1;
  7. cin>>n;
  8. if(n<=3){
  9. t=0;
  10. }
  11. for(int i=2;i<n;i+=2){
  12. if(n%i==0){
  13. t*=i;
  14. }
  15. }
  16. if(t==1){
  17. cout<<0,exit(0);
  18. }
  19. cout<<t;
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5276KB
stdin
5
stdout
Standard output is empty