You are viewing a single comment's thread. Return to all comments →
string dayOfProgrammer(int year) { string day="13"; string month="09"; if(year<1918&&year%4==0)day="12"; else if((year>1918)&&((year%100&&year%4==0)||(year%100==0&&year%400==0)))day="12"; if(year==1918) day="26",month="09"; string ans=day+"."+month+"."+to_string(year); return ans; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →