Функция из предыдущего поста принимает год, месяц и день, и возвращает порядковый номер дня с 1 января 1 года. При этом високосные годы учтены правильно:
void G(int d, int *py, int *pm, int *pd) { int y, m; d += 305; y = d*400/146097 + 1; y -= y*1461/4 - y/100 + y/400 > d; d -= y*1461/4 - y/100 + y/400 - 31; m = d*17/520; d -= m*520/17; if (m < 11) m += 2; else m -= 10, y += 1; *py = y, *pm = m, *pd = d; }
Функция из предыдущего поста принимает год, месяц и день, и возвращает порядковый номер дня с 1 января 1 года. При этом високосные годы учтены правильно:
void G(int d, int *py, int *pm, int *pd) { int y, m; d += 305; y = d*400/146097 + 1; y -= y*1461/4 - y/100 + y/400 > d; d -= y*1461/4 - y/100 + y/400 - 31; m = d*17/520; d -= m*520/17; if (m < 11) m += 2; else m -= 10, y += 1; *py = y, *pm = m, *pd = d; }
BY Гепардово гнездо
Warning: Undefined variable $i in /var/www/group-telegram/post.php on line 260
False news often spreads via public groups, or chats, with potentially fatal effects. The news also helped traders look past another report showing decades-high inflation and shake off some of the volatility from recent sessions. The Bureau of Labor Statistics' February Consumer Price Index (CPI) this week showed another surge in prices even before Russia escalated its attacks in Ukraine. The headline CPI — soaring 7.9% over last year — underscored the sticky inflationary pressures reverberating across the U.S. economy, with everything from groceries to rents and airline fares getting more expensive for everyday consumers. In a statement, the regulator said the search and seizure operation was carried out against seven individuals and one corporate entity at multiple locations in Ahmedabad and Bhavnagar in Gujarat, Neemuch in Madhya Pradesh, Delhi, and Mumbai. In addition, Telegram's architecture limits the ability to slow the spread of false information: the lack of a central public feed, and the fact that comments are easily disabled in channels, reduce the space for public pushback. The Security Service of Ukraine said in a tweet that it was able to effectively target Russian convoys near Kyiv because of messages sent to an official Telegram bot account called "STOP Russian War."
from kr