3 solutions

  • 1
    @ 2026-3-1 14:26:02

    #include #include using namespace std; int main(){ int n; cin>>n; if(n>0){ cout<<floor(n); } else cout<<ceil(n); return 0; }

  • 0
    @ 2026-3-1 14:24:59

    #include #include using namespace std; int main(){ int n; cin>>n; if(n>0){ cout<<floor(n); } else cout<<ceil(n); return 0; }

    • 0
      @ 2026-3-1 14:24:47

      #include #include using namespace std; int main(){ int n; cin>>n; if(n>0){ cout<<floor(n); } else cout<<ceil(n); return 0; }

      • 1

      Information

      ID
      11977
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      1
      Tags
      # Submissions
      113
      Accepted
      26
      Uploaded By