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 listMay 8, 2023 06:25Yuriy LyfenkoYuriy LyfenkoScore: 12,607Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:255,53392,957,20724,900,60502,252,800
2May 8, 2023 06:255,55087,786,58924,974,24902,252,800
3May 8, 2023 06:255,562131,294,13525,030,37702,248,704
4May 8, 2023 06:2512,487245,608,57224,854,00031,337,00029,663,232
5May 8, 2023 06:2512,576240,976,39926,632,00029,961,00029,609,984
6May 8, 2023 06:2512,593244,839,20422,262,00034,405,00029,712,384
7May 8, 2023 06:2512,607250,951,01123,725,00033,008,00029,708,288
8May 8, 2023 06:2512,629249,455,11623,118,00033,714,00029,675,520
9May 8, 2023 06:2512,690248,882,78527,362,00029,742,00029,577,216
10May 8, 2023 06:2512,691254,118,99028,555,00028,555,00029,675,520
11May 8, 2023 06:2512,796248,677,74525,335,00032,245,00029,708,288
12May 8, 2023 06:2512,811248,743,64927,130,00030,521,00029,671,424