Run ID:94722
提交时间:2024-10-26 11:32:10
#include<iostream> using namespace std; int main(){ int y,m,v; double c=0; cin>>y>>m; v=y+10; for(int i=y;i<=v;i++) if(i%4==0||i%400==0){ c=c+0.3*m; }else{ c=c+0.2*m; } cout<<c; return 0; }