Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
32796 张弛 津津的储蓄计划 C++ 通过 100 0 MS 256 KB 248 2022-02-25 21:06:45

Tests(3/3):


#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; }


测评信息: