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:03AnSaAnSaError
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:0200000Error: expected "4815351572415911 ", got "4815136824051111"
2Jun 28, 2024 15:0315,874127,928,64171,433,87002,285,568
3Jun 28, 2024 15:0315,971131,110,06571,870,32502,269,184
4Jun 28, 2024 15:0316,002136,126,35572,008,34402,277,376
5Jun 28, 2024 15:0323,788294,172,60968,817,00038,231,00029,663,232
6Jun 28, 2024 15:0324,410312,893,26170,178,00039,666,00029,564,928
7Jun 28, 2024 15:0324,450312,146,64671,421,00038,606,00029,630,464
8Jun 28, 2024 15:0324,452310,726,18174,978,00035,054,00029,495,296
9Jun 28, 2024 15:0324,485312,910,08571,470,00038,713,00029,728,768
10Jun 28, 2024 15:0324,509313,460,75177,438,00032,852,00029,528,064
11Jun 28, 2024 15:0324,665312,774,38370,995,00039,997,00029,696,000
12Jun 28, 2024 15:0324,676312,063,94772,646,00038,398,00029,495,296
13Jun 28, 2024 15:0324,694313,938,13373,745,00037,377,00029,663,232