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 listMay 16, 2025 08:09Neko with earsNeko with earsScore: 416,740Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2025 08:09416,4491,906,909,8741,841,054,00032,965,0002,330,624
2May 16, 2025 08:09416,5741,910,519,7101,843,608,00030,976,0002,445,312
3May 16, 2025 08:09416,6281,903,612,8641,853,839,00020,986,0002,347,008
4May 16, 2025 08:09416,7161,912,379,8451,846,249,00028,972,0002,334,720
5May 16, 2025 08:09416,7401,905,002,3451,848,353,00026,975,0002,347,008
6May 16, 2025 08:09416,8701,899,874,2771,851,927,00023,986,0002,322,432
7May 16, 2025 08:09417,0221,905,835,7221,851,617,00024,981,0002,326,528
8May 16, 2025 08:09417,0401,902,400,1131,854,697,00021,984,0002,334,720
9May 16, 2025 08:09417,4741,903,079,0471,848,655,00029,978,0002,338,816