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 18, 2026 02:33M-RochatM-RochatScore: 4,967Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 02:384,95032,955,28121,138,0001,138,0002,113,536
2May 18, 2026 02:384,96131,648,18821,222,0001,103,0002,113,536
3May 18, 2026 02:384,96131,587,33921,177,0001,148,0002,113,536
4May 18, 2026 02:384,96333,475,41421,119,0001,216,0002,113,536
5May 18, 2026 02:384,96731,638,17721,191,0001,163,0002,113,536
6May 18, 2026 02:384,97432,805,29121,158,0001,228,0002,113,536
7May 18, 2026 02:384,98032,172,88121,181,0001,231,0002,113,536
8May 18, 2026 02:384,98832,060,52121,248,0001,201,0002,113,536
9May 18, 2026 02:384,98932,255,73621,203,0001,249,0002,113,536