| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70553 | sh25_ganzy | 津津的储蓄计划 | C++ | 解答错误 | 0 MS | 248 KB | 398 | 2025-10-18 13:56:56 |
#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<<0-i; n=false; return 0; }else{ store+=(m-a[i])/100; m=(m-a[i])%100; } } cout<<m+store*120; return 0; }