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:04Yuriy LyfenkoYuriy LyfenkoScore: 10,445Success
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:049,818240,710,83312,931,00031,250,00029,671,424
2Aug 31, 2024 22:0410,087236,240,87112,104,00033,288,00029,523,968
3Aug 31, 2024 22:0410,136230,517,73513,350,00032,264,00029,659,136
4Aug 31, 2024 22:0410,234228,631,02411,722,00034,330,00029,671,424
5Aug 31, 2024 22:0410,351241,281,20913,762,00032,817,00029,708,288
6Aug 31, 2024 22:0410,367241,377,41414,440,00032,213,00029,573,120
7Aug 31, 2024 22:0410,445239,249,16616,451,00030,552,00029,679,616
8Aug 31, 2024 22:0410,446243,319,54716,082,00030,927,00029,736,960
9Aug 31, 2024 22:0410,446236,977,05112,904,00034,105,00029,765,632
10Aug 31, 2024 22:0410,482243,962,71013,626,00033,541,00029,667,328
11Aug 31, 2024 22:0410,487238,699,97313,943,00033,249,00029,675,520
12Aug 31, 2024 22:0410,530240,759,47817,011,00030,376,00029,577,216