3 solutions

  • 0
    @ 2025-9-6 11:23:18

    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n;//输入重量 cout<<12+(n-1)*2;//直接计算首重12+(包裹重量n-1)*续重2 return 0; }

    • 0
      @ 2025-9-4 21:41:25

      #include<bits/stdc++.h> using namespace std; int main(){

      int n; cin>>n; cout<<12+(n-1)*2; return 0; }

      • 0
        @ 2025-9-4 20:08:36
        
        输入n;
        -首重*2元
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
        	
        int n;
        cin>>n;
        cout<<12+(n-1)*2;
        return 0;
        }
        
        • 1

        Information

        ID
        999
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        7
        Tags
        # Submissions
        63
        Accepted
        13
        Uploaded By