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 listApr 10, 2026 22:58Josu San MartinJosu San MartinScore: 5,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 4, 2026 03:385,58549,465,86223,122,0002,010,0002,281,472
2Mar 4, 2026 03:385,59252,039,34123,151,0002,013,0002,437,120
3Mar 4, 2026 03:385,59753,007,81223,171,0002,014,0002,281,472
4Mar 4, 2026 03:385,60154,373,06723,187,0002,016,0002,453,504
5Mar 4, 2026 03:385,60449,616,26823,200,0002,017,0002,449,408
6Mar 4, 2026 03:385,61247,919,77924,244,0001,010,0002,441,216
7Mar 4, 2026 03:385,61446,908,55023,242,0002,021,0002,449,408
8Apr 10, 2026 22:585,62255,694,76223,275,0002,023,0002,281,472
9Apr 10, 2026 22:585,62549,508,15724,302,0001,012,0002,445,312
10Apr 10, 2026 22:585,62953,441,47023,304,0002,026,0002,281,472
11Mar 4, 2026 03:385,63251,139,50824,331,0001,013,0002,441,216
12Mar 4, 2026 03:385,63456,222,62523,324,0002,028,0002,449,408