摘要: #include<iostream> using namespace std; int main() { int year; cout<<"输入年份:"<<endl; cin>>year; if (year%4==0&&year%100!=0||year%400==0) cout<<"y"<<end 阅读全文
posted @ 2017-07-26 21:22 kilutou 阅读(45) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main() { int a,b,s; cin>>a>>b; for(int i=a;i<=b;i+2) { if(i%2==0) continue; s=s+i; } cout<<s<<endl; return 阅读全文
posted @ 2017-07-27 22:52 kilutou 阅读(58) 评论(0) 推荐(0)