- 津津的储蓄计划
有哪位大能可以看看这是错那了
- 2023-12-13 16:32:06 @
#include<bits/stdc++.h>
using namespace std;
int main()
{
int j=0,b=0,a,c;
for(int i=1;i<=12;i++)
{
cin >> a;
j=j+300-a;
if(j>=200)
{
b=b+200;
j=j-200;
}
else
{
if(j>=100)
{
b=b+100;
j=j-100;
}
else
{
if(j>=300);
{
b=b+300;
j=j-300;
}
}
}
}
c=j+b+b/5;
cout<<c<<endl;
return 0;
}
1 comments
-
Amazing LV 6 @ 2023-12-13 17:39:24
好了,改了一下已经对了
- 1
Information
- ID
- 576
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- # Submissions
- 225
- Accepted
- 102
- Uploaded By