Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listJun 29, 2024 17:58AnSaAnSaScore: 22,886Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2024 17:5813,694117,219,14361,625,05402,281,472
2Jun 29, 2024 17:5813,698131,161,51461,641,42902,281,472
3Jun 29, 2024 17:5813,698117,964,91661,642,26802,273,280
4Jun 29, 2024 17:5822,399290,333,36168,281,00032,514,00029,630,464
5Jun 29, 2024 17:5822,492298,298,67264,072,00037,143,00029,478,912
6Jun 29, 2024 17:5822,810302,045,73262,729,00039,918,00029,728,768
7Jun 29, 2024 17:5822,886302,324,57661,149,00041,839,00029,626,368
8Jun 29, 2024 17:5822,893307,041,77064,946,00038,071,00029,659,136
9Jun 29, 2024 17:5822,905310,209,45562,410,00040,661,00029,560,832
10Jun 29, 2024 17:5822,918300,368,04765,247,00037,885,00029,704,192
11Jun 29, 2024 17:5822,955308,817,31569,879,00033,420,00029,552,640
12Jun 29, 2024 17:5822,989307,673,48761,484,00041,965,00029,663,232