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 28, 2024 15:07AnSaAnSaScore: 24,840Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2024 15:0715,825134,392,52671,212,35302,404,352
2Jun 28, 2024 15:0715,841142,298,12071,283,82702,277,376
3Jun 28, 2024 15:0715,849136,396,25571,318,25002,269,184
4Jun 28, 2024 15:0724,719313,456,23780,803,00030,432,00029,519,872
5Jun 28, 2024 15:0724,816316,159,66773,783,00037,888,00029,696,000
6Jun 28, 2024 15:0724,835310,849,11375,148,00036,610,00029,663,232
7Jun 28, 2024 15:0724,840313,300,92877,024,00034,754,00029,560,832
8Jun 28, 2024 15:0724,909308,297,35277,445,00034,646,00029,552,640
9Jun 28, 2024 15:0724,909309,668,83174,078,00038,014,00029,663,232
10Jun 28, 2024 15:0724,940308,188,60170,265,00041,963,00029,552,640
11Jun 28, 2024 15:0724,992309,982,59673,155,00039,307,00029,597,696
12Jun 28, 2024 15:0725,053311,503,68972,400,00040,337,00029,597,696