4 solutions

  • 1
    @ 2025-8-9 19:21:41

    #include<bits/stdc++.h> using namespace std ; int main(){ long long W,F,P,S; cin>>W>>F>>P>>S; long long h=0; h=floor((W-F+P2)/S)+1; long long A=hh; cout<<A; return 0; }

    • 1
      @ 2025-8-6 23:05:00
      #include<bits/stdc++.h>
      using namespace std ;
      int main(){
      	long long W,F,P,S;
      	cin>>W>>F>>P>>S;
      	long long  h=0;	
      	h=floor((W-F+P*2)/S)+1;
      	long long A=h*h;
      	cout<<A;
      	return 0; 
      }
      ```
      
      
      ```
      • 1
        @ 2025-8-6 21:16:57

        #include <bits/stdc++.h> using namespace std; long long w, f, p, s, w1, a; int main() { cin >> w >> f >> p >> s; w1 = (w - f + 2 * p) / s + 1; a = w1 * w1; cout << a; }

        • 0
          @ 2025-8-26 9:05:18

          #include<bits/stdc++.h> using namespace std; int main(){ long long w,f,p,s,w1,a,b; cin>>w>>f>>p>>s; w1=(w-f+2p)/s+1; a=w1w1; cout<<a; return 0; }

          • 1

          Information

          ID
          1074
          Time
          1000ms
          Memory
          256MiB
          Difficulty
          8
          Tags
          (None)
          # Submissions
          93
          Accepted
          16
          Uploaded By