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 listOct 16, 2021 09:55Ilya AniskovetsIlya AniskovetsScore: 16,404Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 09:559,188113,175,66941,346,02602,248,704
2Oct 16, 2021 09:559,293102,834,09441,817,81702,240,512
3Oct 16, 2021 09:559,328106,405,35741,974,12802,252,800
4Oct 16, 2021 09:5516,205267,226,02940,057,00032,867,00029,659,136
5Oct 16, 2021 09:5516,353261,317,33638,732,00034,858,00029,659,136
6Oct 16, 2021 09:5516,363266,468,94536,373,00037,260,00029,724,672
7Oct 16, 2021 09:5516,404265,785,22138,960,00034,859,00029,605,888
8Oct 16, 2021 09:5516,475266,044,86240,623,00033,514,00029,675,520
9Oct 16, 2021 09:5516,478259,615,18840,730,00033,420,00029,675,520
10Oct 16, 2021 09:5516,525262,024,32942,031,00032,331,00029,507,584
11Oct 16, 2021 09:5516,571269,318,99642,463,00032,106,00029,659,136
12Oct 16, 2021 09:5516,800267,137,04745,819,00029,782,00029,540,352