4 条题解

  • 0
    @ 2024-7-17 9:54:21

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a; b=a; while(a>=5){ b+=(a/5)*2; a-=(a/5)*3; } cout<<b; return 0; }

    • 0
      @ 2023-5-12 21:53:58

      #include<bits/stdc++.h> using namespace std; int main(){ int x,pz; cin>>x; pz=x; while(x>=5){ pz+=(x/5)*2; x-=(x/5)*3; } cout<<pz; return 0; }

      • 0
        @ 2023-4-22 23:10:12

        #include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a; b=a; while(a>=5){ b+=(a/5)*2; a-=(a/5)*3; } cout<<b; return 0; }

        • 0
          @ 2023-4-20 20:38:51

          image

          • 1

          信息

          ID
          590
          时间
          1000ms
          内存
          256MiB
          难度
          3
          标签
          递交数
          36
          已通过
          22
          上传者