Run ID:150004

提交时间:2026-03-21 16:03:12

#include<iostream> #include<iomanip> using namespace std; int main() { /* *保留n位小数 *printf("%.nlf",a); * *使用cout格式化输出:#include<iomanip> *保留n位小数: *cout<<fixed<<setprecision(n)<<a; * */ int y; cin>>y; if (y <= 2008) { cout<<4 - (2008 - y)%4; }else { cout<<4 - (y -2008 )%4; } return 0; }