江西福彩网

 
栏目导航
招生就业当前位置:主页 > 招生就业 >

过去的公历上哪一天是十三号和星期五重合的

2020-03-01 06:14:58

判断历史上哪一天是星期几的算法:蔡勒公式_百度百科根据此公式有代码:#include<stdio.h>inttest_day(intyear,intmonth,intday){if(month==1||month==2){year--;month+=12;}intc=year/100;inty=year-c*100;intweek=(c/4)-2*c+(y+y/4)+(13*(month+1)/5)+day-1;while(week<0){week+=7;}week%=7;returnweek==5;}intmain(){intyear,month;for(year=1800;year<=2015;year++){for(month=1;month<=12;month++){if(test_day(year,month,13)){printf("%d-%02d-13isFriday ",year,month);}}}return0;}可以列出1800年至今的所有13号是星期五的日期,结果如下:1800-06-13isFriday1801-02-13isFriday1801-03-13isFriday1801-11-13isFriday1802-08-13isFriday1803-05-13isFriday1804-01-13isFriday1804-04-13isFriday1804-07-13isFriday1805-09-13isFriday1805-12-13isFriday1806-06-13isFriday1807-02-13isFriday1807-03-13isFriday1807-11-13isFriday1808-05-13isFriday1809-01-13isFriday1809-10-13isFriday1810-04-13isFriday1810-07-13isFriday1811-09-13isFriday1811-12-13isFriday1812-03-13isFriday1812-11-13isFriday1813-08-13isFriday1814-05-13isFriday1815-01-13isFriday1815-10-13isFriday1816-09-13isFriday1816-12-13isFriday1817-06-13isFriday1818-02-13isFriday1818-03-13isFriday1818-11-13isFriday1819-08-13isFriday1820-10-13isFriday1821-04-13isFriday1821-07-13isFriday1822-09-13isFriday1822-12-13isFriday1823-06-13isFriday1824-02-13isFriday1824-08-13isFriday1825-05-13isFriday1826-01-13isFriday1826-10-13isFriday1827-04-13isFriday1827-07-13isFriday1828-06-13isFriday1829-02-13isFriday1829-03-13isFriday1829-11-13isFriday1830-08-13isFriday1831-05-13isFriday1832-01-13isFriday1832-04-13isFriday1832-07-13isFriday1833-09-13isFriday1833-12-13isFriday1834-06-13isFriday1835-02-13isFriday1835-03-13isFriday1835-11-13isFriday1836-05-13isFriday1837-01-13isFriday1837-10-13isFriday1838-04-13isFriday1838-07-13isFriday1839-09-13isFriday1839-12-13isFriday1840-03-13isFriday1840-11-13isFriday1841-08-13isFriday1842-05-13isFriday1843-01-13isFriday1843-10-13isFriday1844-09-13isFriday1844-12-13isFriday1845-06-13isFriday1846-02-13isFriday1846-03-13isFriday1846-11-13isFriday1847-08-13isFriday1848-10-13isFriday1849-04-13isFriday1849-07-13isFriday1850-09-13isFriday1850-12-13isFriday1851-06-13isFriday1852-02-13isFriday1852-08-13isFriday1853-05-13isFriday1854-01-13isFriday1854-10-13isFriday1855-04-13isFriday1855-07-13isFriday1856-06-13isFriday1857-02-13isFriday1857-03-13isFriday1857-11-13isFriday1858-08-13isFriday1859-05-13isFriday1860-01-13isFriday1860-04-13isFriday1860-07-13isFriday1861-09-13isFriday1861-12-13isFriday1862-06-13isFriday1863-02-13isFriday1863-03-13isFriday1863-11-13isFriday1864-05-13isFriday1865-01-13isFriday1865-10-13isFriday1866-04-13isFriday1866-07-13isFriday1867-09-13isFriday1867-12-13isFriday1868-03-13isFriday1868-11-13isFriday1869-08-13isFriday1870-05-13isFriday1871-01-13isFriday1871-10-13isFriday1872-09-13isFriday1872-12-13isFriday1873-06-13isFriday1874-02-13isFriday1874-03-13isFriday1874-11-13isFriday1875-08-13isFriday1876-10-13isFriday1877-04-13isFriday1877-07-13isFriday1878-09-13isFriday1878-12-13isFriday1879-06-13isFriday1880-02-13isFriday1880-08-13isFriday1881-05-13isFriday1882-01-13isFriday1882-10-13isFriday1883-04-13isFriday1883-07-13isFriday1884-06-13isFriday1885-02-13isFriday1885-03-13isFriday1885-11-13isFriday1886-08-13isFriday1887-05-13isFriday1888-01-13isFriday1888-04-13isFriday1888-07-13isFriday1889-09-13isFriday1889-12-13isFriday1890-06-13isFriday1891-02-13isFriday1891-03-13isFriday1891-11-13isFriday1892-05-13isFriday1893-01-13isFriday1893-10-13isFriday1894-04-13isFriday1894-07-13isFriday1895-09-13isFriday1895-12-13isFriday1896-03-13isFriday1896-11-13isFriday1897-08-13isFriday1898-05-13isFriday1899-01-13isFriday1899-10-13isFriday1900-04-13isFriday1900-07-13isFriday1901-09-13isFriday1901-12-13isFriday1902-06-13isFriday1903-02-13isFriday1903-03-13isFriday1903-11-13isFriday1904-05-13isFriday1905-01-13isFriday1905-10-13isFriday1906-04-13isFriday1906-07-13isFriday1907-09-13isFriday1907-12-13isFriday1908-03-13isFriday1908-11-13isFriday1909-08-13isFriday1910-05-13isFriday1911-01-13isFriday1911-10-13isFriday1912-09-13isFriday1912-12-13isFriday1913-06-13isFriday1914-02-13isFriday1914-03-13isFriday1914-11-13isFriday1915-08-13isFriday1916-10-13isFriday1917-04-13isFriday1917-07-13isFriday1918-09-13isFriday1918-12-13isFriday1919-06-13isFriday1920-02-13isFriday1920-08-13isFriday1921-05-13isFriday1922-01-13isFriday1922-10-13isFriday1923-04-13isFriday1923-07-13isFriday1924-06-13isFriday1925-02-13isFriday1925-03-13isFriday1925-11-13isFriday1926-08-13isFriday1927-05-13isFriday1928-01-13isFriday1928-04-13isFriday1928-07-13isFriday1929-09-13isFriday1929-12-13isFriday1930-06-13isFriday1931-02-13isFriday1931-03-13isFriday1931-11-13isFriday1932-05-13isFriday1933-01-13isFriday1933-10-13isFriday1934-04-13isFriday1934-07-13isFriday1935-09-13isFriday1935-12-13isFriday1936-03-13isFriday1936-11-13isFriday1937-08-13isFriday1938-05-13isFriday1939-01-13isFriday1939-10-13isFriday1940-09-13isFriday1940-12-13isFriday1941-06-13isFriday1942-02-13isFriday1942-03-13isFriday1942-11-13isFriday1943-08-13isFriday1944-10-13isFriday1945-04-13isFriday1945-07-13isFriday1946-09-13isFriday1946-12-13isFriday1947-06-13isFriday1948-02-13isFriday1948-08-13isFriday1949-05-13isFriday1950-01-13isFriday1950-10-13isFriday1951-04-13isFriday1951-07-13isFriday1952-06-13isFriday1953-02-13isFriday1953-03-13isFriday1953-11-13isFriday1954-08-13isFriday1955-05-13isFriday1956-01-13isFriday1956-04-13isFriday1956-07-13isFriday1957-09-13isFriday1957-12-13isFriday1958-06-13isFriday1959-02-13isFriday1959-03-13isFriday1959-11-13isFriday1960-05-13isFriday1961-01-13isFriday1961-10-13isFriday1962-04-13isFriday1962-07-13isFriday1963-09-13isFriday1963-12-13isFriday1964-03-13isFriday1964-11-13isFriday1965-08-13isFriday1966-05-13isFriday1967-01-13isFriday1967-10-13isFriday1968-09-13isFriday1968-12-13isFriday1969-06-13isFriday1970-02-13isFriday1970-03-13isFriday1970-11-13isFriday1971-08-13isFriday1972-10-13isFriday1973-04-13isFriday1973-07-13isFriday1974-09-13isFriday1974-12-13isFriday1975-06-13isFriday1976-02-13isFriday1976-08-13isFriday1977-05-13isFriday1978-01-13isFriday1978-10-13isFriday1979-04-13isFriday1979-07-13isFriday1980-06-13isFriday1981-02-13isFriday1981-03-13isFriday1981-11-13isFriday1982-08-13isFriday1983-05-13isFriday1984-01-13isFriday1984-04-13isFriday1984-07-13isFriday1985-09-13isFriday1985-12-13isFriday1986-06-13isFriday1987-02-13isFriday1987-03-13isFriday1987-11-13isFriday1988-05-13isFriday1989-01-13isFriday1989-10-13isFriday1990-04-13isFriday1990-07-13isFriday1991-09-13isFriday1991-12-13isFriday1992-03-13isFriday1992-11-13isFriday1993-08-13isFriday1994-05-13isFriday1995-01-13isFriday1995-10-13isFriday1996-09-13isFriday1996-12-13isFriday1997-06-13isFriday1998-02-13isFriday1998-03-13isFriday1998-11-13isFriday1999-08-13isFriday2000-10-13isFriday2001-04-13isFriday2001-07-13isFriday2002-09-13isFriday2002-12-13isFriday2003-06-13isFriday2004-02-13isFriday2004-08-13isFriday2005-05-13isFriday2006-01-13isFriday2006-10-13isFriday2007-04-13isFriday2007-07-13isFriday2008-06-13isFriday2009-02-13isFriday2009-03-13isFriday2009-11-13isFriday2010-08-13isFriday2011-05-13isFriday2012-01-13isFriday2012-04-13isFriday2012-07-13isFriday2013-09-13isFriday2013-12-13isFriday2014-06-13isFriday2015-02-13isFriday2015-03-13isFriday2015-11-13isFriday注:此公式不适用于1582年10月15日之前的日期。

上一篇:发现7岁的孩子偷东西后你会怎么做
下一篇:当当网被京东超越的最关键原因是什么
document.write ('');