Run ID:86503

提交时间:2024-07-25 18:17:17

# include<iostream> # include<cstdio> # include<iomanip> # include<cmath> using namespace std; int main(){ int oct,max; cin>>max>>oct; for(int i=max;i<=max+10;i++){ if((i%4==0&&i%100!=0)||i%400==0){ oct=oct*0.3+oct; } else{ oct=oct*0.2+oct; } } cout<<oct; return 0; }