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:28Yuriy LyfenkoYuriy LyfenkoScore: 14,290Success
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:2813,944255,577,38732,456,00030,293,00029,569,024
2Aug 31, 2024 22:2814,043246,790,91833,204,00029,991,00029,573,120
3Aug 31, 2024 22:2814,107247,363,04931,237,00032,245,00029,700,096
4Aug 31, 2024 22:2814,112254,594,39630,286,00033,217,00029,667,328
5Aug 31, 2024 22:2814,186257,132,66428,583,00035,252,00029,609,984
6Aug 31, 2024 22:2814,241247,921,50031,009,00033,076,00029,499,392
7Aug 31, 2024 22:2814,290251,197,23831,626,00032,680,00029,569,024
8Aug 31, 2024 22:2814,431255,684,45634,179,00030,761,00029,605,888
9Aug 31, 2024 22:2814,442259,959,76429,628,00035,362,00029,704,192
10Aug 31, 2024 22:2814,446253,903,54931,454,00033,551,00029,638,656
11Aug 31, 2024 22:2814,466255,289,57432,548,00032,548,00029,581,312
12Aug 31, 2024 22:2814,503250,713,73533,167,00032,097,00029,659,136