1 solutions

  • 0
    @ 2025-12-3 8:44:14

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main()
    {	
    	cin>>n;
    	n/=2;
    	int x=n/2;
    	if(x*2==n) cout<<x*x;
    	else cout<<x*(x+1);
    
        return 0;
    }
    
    
    • 1

    Information

    ID
    774
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By