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 listDec 18, 2024 23:44Mikhail ShirokovMikhail ShirokovScore: 1,994,096Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 23:441,982,3788,946,626,7975,186,338,0003,734,363,0002,277,376
2Dec 18, 2024 23:441,989,3918,983,050,8345,053,325,0003,898,936,0002,277,376
3Dec 18, 2024 23:441,990,9778,990,189,1265,101,810,0003,857,588,0002,416,640
4Dec 18, 2024 23:441,993,3588,998,730,1585,070,237,0003,899,875,0002,408,448
5Dec 18, 2024 23:441,994,0969,006,345,7865,113,688,0003,859,746,0002,408,448
6Dec 18, 2024 23:442,000,2899,037,688,3855,121,619,0003,879,681,0002,277,376
7Dec 18, 2024 23:442,019,7299,119,480,0585,199,155,0003,889,627,0002,412,544
8Dec 18, 2024 23:442,044,7269,237,692,3965,204,364,0003,996,903,0002,277,376
9Dec 18, 2024 23:442,052,9609,269,897,6355,325,572,0003,912,747,0002,412,544