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 16:29AnSaAnSaScore: 22,647Success
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 16:2913,538129,567,88960,923,17502,281,472
2Jun 29, 2024 16:2913,559128,578,09361,015,71102,277,376
3Jun 29, 2024 16:2913,583120,772,53861,124,72502,293,760
4Jun 29, 2024 16:2922,112291,848,13668,526,00030,977,00029,663,232
5Jun 29, 2024 16:2922,118288,703,55774,929,00024,603,00029,552,640
6Jun 29, 2024 16:2922,590307,522,84867,071,00034,583,00029,552,640
7Jun 29, 2024 16:2922,647300,996,85571,030,00030,882,00029,597,696
8Jun 29, 2024 16:2922,656308,476,00863,349,00038,603,00029,515,776
9Jun 29, 2024 16:2922,657300,243,68370,883,00031,072,00029,556,736
10Jun 29, 2024 16:2922,671300,251,86462,400,00039,619,00029,663,232
11Jun 29, 2024 16:2922,794302,872,66364,220,00038,353,00029,630,464
12Jun 29, 2024 16:2922,868308,609,22068,605,00034,302,00029,630,464