hpv33阳性可以自愈吗:题目:输入某年某月某日,判断这一天是这一年的第几天?
来源:百度文库 编辑:神马品牌网 时间:2024/07/14 20:33:17
#include<iostream>
using namespace std;
int main(){
for(int y,m,d,th; cin>>y>>m>>d; cout<<th<<endl){
th=30*(m-1)+d;
th+=m/2;
if(m>8)
th++;
if(m>2)
th-=2;
if(!(y%4))
th++;
}
}