Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
90874 sh25_zhangyj 津津的储蓄计划 C++ 通过 1 MS 248 KB 414 2026-06-12 14:41:27

Tests(10/10):


#include <iostream> using namespace std; int a[13], b, now; int main() { for ( int i = 1 ; i <= 12 ; ++ i ) { cin >> a[i]; now += 300; if ( now < a[i] ) { cout << -i << endl; return 0; } now -= a[i]; b += now / 100 * 100; now %= 100; } cout << b * 6 / 5 + now << endl; return 0; }


测评信息: