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 5, 2025 02:56Yehor BondarYehor BondarScore: 105,029Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2025 02:56104,878493,875,591445,955,00025,997,0002,400,256
2Dec 5, 2025 02:56104,901500,127,491449,051,00023,002,0002,408,448
3Dec 5, 2025 02:56104,923495,363,237443,143,00029,009,0002,330,624
4Dec 5, 2025 02:56104,929500,810,122442,168,00030,011,0002,408,448
5Dec 5, 2025 02:56105,029498,489,435441,654,00030,975,0002,330,624
6Dec 5, 2025 02:56105,029500,415,005443,653,00028,977,0002,330,624
7Dec 5, 2025 02:56105,031503,678,179457,652,00014,988,0002,330,624
8Dec 5, 2025 02:56105,066501,148,981448,810,00023,989,0002,400,256
9Dec 5, 2025 02:56105,076498,904,358452,851,00019,993,0002,531,328