| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70831 | sh25_wangsj | 津津的储蓄计划 | C++ | 通过 | 0 MS | 244 KB | 592 | 2025-10-21 20:07:27 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f,g,h,i,j,k,l; cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j>>k>>l; int money=0; int usem; int morem=0,savem=0; for(int month=0;month>-12;month=month-1){ cin>>usem; money=money+300; if(usem>money) { cout<<-7; return 0; } else{ morem=money-usem; savem=savem+morem-morem%100; money=morem%100; } } cout<<money+savem*1.2; return 0; }