6 条题解

  • 3
    @ 2024-10-20 8:54:09

    莫梓豪你个傻逼

    • 1
      @ 2025-1-18 15:39:31
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          int jj = 0, mm = 0, bud;
          for (int i = 1; i <= 12; i++){
          	jj = jj + 300;
          	cin >> bud;
          	jj = jj - bud;
          	if (jj < 0){
          		cout << "-" << i;
          		return 0;
          	} else if (jj / 100 > 0){
          		mm = jj / 100 * 100;
          		jj = jj % 100;
      		}
      	}
      	jj = jj + mm * 1.2;
      	cout << jj;
      	return 0;
      }
      
      • 1
        @ 2024-10-20 9:24:18
        #include <iostream>
        #include <iomanip>
        using namespace std;
        int main(){
            int x,a,c=0;
            for(int i=0;i<12;i++){
                cin>>x;
                a+=300;
                a-=x;
                if(a<0){
                    cout<<(i+1)*-1;
                    return 0;
                }
                if(a>=0){
                    c+=a/100;
                    a%=100;
                }
            }
            cout<<c*100*1.2+a;
        
            return 0;
        }
        
        • 1
          @ 2024-10-20 9:07:10

          +1

        • 0
          @ 2024-10-20 9:24:54

          #include <iostream> #include <iomanip> using namespace std; int main(){ int a,b,c=0; for(int i=0;i<12;i++){ cin>>b; a+=300; a-=b; if(a<0){ cout<<(i+1)-1; return 0; } if(a>=0) { c+=a/100; a%=100; } } cout<<c100*1.2+a; }

          • -5
            @ 2024-10-13 17:07:20

            想要我的题解课程 不是你配吗要我的题解课程

            • 1

            信息

            ID
            250
            时间
            1000ms
            内存
            128MiB
            难度
            7
            标签
            (无)
            递交数
            113
            已通过
            30
            上传者