(I2
I54
I4
(dp0
Vtimestamp.%l
p1
(Vtimestamp.cpp
p2
S'#include <iostream>\r\nusing namespace std;\r\ntypedef unsigned long long ull;\r\null timestamp_year[100000001], timestamp;\r\nstring type, temp;\r\nint main()\r\n{\r\n    timestamp_year[1970] = 0;\r\n    for (int i = 1971; i <= 100000000; i++)\r\n    {\r\n        timestamp_year[i] = timestamp_year[i-1] + 365 * 86400;\r\n        if (((i-1) % 4 == 0 && (i-1) % 100) || (i-1) % 400 == 0) timestamp_year[i] += 86400;\r\n    }\r\n    cout << timestamp_year[100000000];\r\n    while (cin >> type && cin >> temp && cin >> timestamp)\r\n    {\r\n        if (type == "day") cout << timestamp - timestamp % 86400 << endl;\r\n        else if (type == "week") cout << timestamp - timestamp % (7 * 86400) - 3 * 86400 << endl;\r\n        else\r\n            for (int i = 1970; i <= 100000000; i++)\r\n                if (timestamp >= timestamp_year[i] && timestamp < timestamp_year[i+1])\r\n            {\r\n                cout << i << endl;\r\n                break;\r\n            }\r\n    }\r\n}\r\n'
p3
tp4
stp5
.