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 listAug 31, 2024 22:05Yuriy LyfenkoYuriy LyfenkoScore: 10,396Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2024 22:0510,001234,101,95812,189,00032,816,00029,507,584
2Aug 31, 2024 22:0510,004239,814,63512,277,00032,739,00029,704,192
3Aug 31, 2024 22:0510,150237,627,17012,456,00033,218,00029,700,096
4Aug 31, 2024 22:0510,167235,200,33714,161,00031,592,00029,671,424
5Aug 31, 2024 22:0510,281233,414,05111,812,00034,453,00029,679,616
6Aug 31, 2024 22:0510,344237,726,84911,637,00034,911,00029,663,232
7Aug 31, 2024 22:0510,396231,537,65414,034,00032,746,00029,577,216
8Aug 31, 2024 22:0510,414241,360,66213,716,00033,148,00029,544,448
9Aug 31, 2024 22:0510,444241,046,77913,428,00033,571,00029,544,448
10Aug 31, 2024 22:0510,453235,260,79914,559,00032,478,00029,704,192
11Aug 31, 2024 22:0510,462236,220,94814,980,00032,101,00029,708,288
12Aug 31, 2024 22:0510,490234,298,73213,637,00033,569,00029,544,448