| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70554 | sh25_ganzy | 津津的储蓄计划 | C++ | 通过 | 0 MS | 244 KB | 399 | 2025-10-18 13:57:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[12],m=0,store=0; bool n=true; for(int i=0;i<12;i++){ cin>>a[i]; m+=300; if(m<a[i]){ cout<<-1-i; n=false; return 0; }else{ store+=(m-a[i])/100; m=(m-a[i])%100; } } cout<<m+store*120; return 0; }