Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78604 sh25_chenyj 津津的储蓄计划 C++ 解答错误 0 MS 248 KB 261 2025-12-26 22:45:47

Tests(1/10):


#include<bits/stdc++.h> using namespace std; int main() { int h, jj=0, mm=0; for(int i = 1;i <= 12;i++){ cin>>h; jj+=300; if(jj<h){ cout<<-i; return 0; } jj -= h; mm+=jj/100; jj = jj%100; } cout<<mm*100+jj; return 0; }


测评信息: