| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 32796 | 张弛 | 津津的储蓄计划 | C++ | Accepted | 100 | 0 MS | 256 KB | 248 | 2022-02-25 21:06:45 |
#include<bits/stdc++.h> using namespace std; int a,b=0,c; int main(){ for(int i=1;i<=12;i++){ cin>>a; if(b+300-a<0) { cout<<"-"<<i; return 0; } c+=(b+300-a)/100; b=(b+300-a)%100; } cout<<b+c*100*1.2; return 0; }