fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. cin>>x;
  7. cout<<x-(x/2); // x/2 to dzielenie bez reszty i wtedy jak mamy nieparzysta to
  8. return 0; // wezmie nam "mniejsze" pol
  9. }
Success #stdin #stdout 0.01s 5300KB
stdin
15
stdout
8