4 solutions

  • 1
    @ 2025-8-6 21:10:48

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

    • 0
      @ 2025-8-26 9:02:39

      using namespace std; int main(){ int n; cin>>n; if(n%4==0){ cout<<n/4; }else{ cout<<n/4+1; } return 0; }

      • 0
        @ 2025-8-13 16:51:24

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

        • 0
          @ 2025-8-6 23:02:12
          using namespace std;
          int main(){
          	int n;
          	cin>>n;
          	if(n%4==0){
          		cout<<n/4;
          	}else{
          		cout<<n/4+1; 
          	}
          	return 0;
          }
          
          
          • 1

          Information

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