Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
День Программиста
#include <vector> #include <iostream> #include <algorithm> #include <time.h> using namespace std; int main() { time_t theTime = time(NULL); struct tm *aTime = localtime(&theTime); int year = aTime->tm_year + 1900; // Year is # years since 1900 if (year == 1918) { // transition std::cout << "26.09.1918\n"; } else { // gregorian and/or julian if ((year < 1918 && year % 4 == 0) || (year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { cout << "12.09." << year << endl; } else { cout << "День Программиста: " << "13.09." << year << endl ; cout << "Поздравляем всех с Праздником!" << endl << endl; cout << "Студия Green Dragon" << endl; } } return 0; }
run
|
edit
|
history
|
help
0
Visakh
Depth of Bin tree
FInd rows with maximum no of 1's
Изволов#7
teste
shell sort
InverseMatrix2n2
SayHi
Microsoft - MaxEmployeeAttendence (R repititions - Optimised DP)
Tree