(I2
I57
I4
(dp0
Vtimestamp.%l
p1
(Vtimestamp1.cpp
p2
S'#include <iostream>\r\n#include <vector>\r\nusing namespace std;\r\nconst int minute = 60;\r\nconst int hour = 60 * minute;\r\nconst int day = 24 * hour;\r\nconst int week = 7 * day;\r\nconst int year1 = 365 * day;\r\nconst int year2 = 366 * day;\r\nint main()\r\n{\r\n    long long t;\r\n    long long timestamp, curr1, curr2;\r\n    vector <long long> v;\r\n    string s1, s2;\r\n\r\n    for(;;)\r\n    {\r\n        cin >> s1 >> s2;\r\n        cin >> timestamp;\r\n\r\n        if(s1 == "day")\r\n        {\r\n            cout << timestamp - timestamp % day << endl;\r\n            v.push_back(timestamp - timestamp % day);\r\n        }\r\n\r\n        if(s1 == "week")\r\n        {\r\n            //timestamp -= 4 * day;\r\n            cout << timestamp - timestamp % week - day * 3 << endl;\r\n            v.push_back(timestamp - timestamp % week - day * 3);\r\n        }\r\n\r\n        if(s1 == "year")\r\n        {\r\n            //v.push_back();\r\n            curr1 = timestamp % (3 * year1 + year2);\r\n            curr2 = timestamp / (3 * year1 + year2);\r\n            curr2 *= 4;\r\n\r\n            if(curr1 > year1)\r\n            {\r\n                curr1 -= year1;\r\n                curr2++;\r\n            }\r\n\r\n            if(curr1 > year1)\r\n            {\r\n                curr1 -= year1;\r\n                curr2++;\r\n            }\r\n\r\n            if(curr1 > year2)\r\n            {\r\n                curr1 -= year2;\r\n                curr2++;\r\n            }\r\n\r\n            cout << 1970 + curr2 << endl;\r\n            v.push_back(1970 + curr2);\r\n        }\r\n    }\r\n\r\n    /*for(int i = 0; i < v.size(); i++)\r\n    {\r\n        cout << v[i] << endl;\r\n    }*/\r\n\r\n    return 0;\r\n\r\n}\r\n/*\r\nday of 202548972694\r\n202548902400\r\nweek of 669278640786\r\n669278073600\r\n\r\nyear of 428557382586\r\n15550\r\nyear of 0\r\n1970\r\nyear of 1000000000\r\n2001\r\n*/\r\n'
p3
tp4
stp5
.