2 solutions

  • -1
    @ 2025-12-13 16:15:46
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double n,m;cin>>n>>m;
        int y=n/10*m;
        int g=y%10;
        if(g>=5)
        {
            y=y+10-g;
        }
        else y-=g;
        cout<<y;
        return 0;
    }
    
    • -1
      @ 2025-7-30 15:04:04
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          double n,m;cin>>n>>m;
          int y=n/10*m;
          int g=y%10;
          if(g>=5)
          {
              y=y+10-g;
          }
          else y-=g;
          cout<<y;
          return 0;
      }
      
      • 1

      Information

      ID
      2819
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      1
      Tags
      # Submissions
      137
      Accepted
      42
      Uploaded By