Parse JSON 
Compute the total amount of non-canceled external USD transactions from a stream of JSON records as fast as possible.
Input: 1 000 000 JSON records on STDIN, one per line. Each record has the following structure:
{
"user_id": 0,
"currency": "USD",
"transactions": [
{
"amount": 0,
"to_user_id": 0,
"canceled": false
}
]
}
| Field | Constraints |
|---|---|
user_id |
Integer, max 10 000 |
currency |
One of "GBP", "USD", "RUB", "JPY", "CHF" |
transactions |
Array, max 10 elements |
amount |
Integer, max 1000 |
canceled |
Boolean; may be omitted when false |
Field order is not guaranteed within any object.
Output: The total amount of all transactions where:
record.currency == "USD"transaction.to_user_id != record.user_id(external)transaction.canceledisfalseor absent
| Date | Author | Language | Status | Score | |
|---|---|---|---|---|---|
| Apr 16, 2026 08:50 | CPPg++13.3.0 | Success | 4,894 | ||
| Apr 16, 2026 08:44 | CPPg++13.3.0 | Success | 4,760+57.10 RP | ||
| Apr 16, 2026 08:31 | CPPg++13.3.0 | Success | 4,893+30.85 RP | ||
| Apr 16, 2026 08:28 | CPPg++13.3.0 | Success | 5,110 | ||
| Apr 16, 2026 08:24 | CPPg++13.3.0 | Success | 5,151 | ||
| Apr 16, 2026 08:02 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 08:00 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:57 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:55 | CPPg++13.3.0 | Success | 4,968+127.87 RP | ||
| Apr 16, 2026 07:43 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:41 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:39 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:36 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:30 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:29 | CPPg++13.3.0 | Success | 5,309 | ||
| Apr 16, 2026 07:28 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:26 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:23 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:21 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:18 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 07:15 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 05:56 | CPPg++13.3.0 | Success | 5,305+1'868.63 RP | ||
| Apr 16, 2026 05:45 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 05:42 | CPPg++13.3.0 | Success | 610,350+16.38 RP | ||
| Apr 16, 2026 05:18 | CPPg++13.3.0 | Success | 3,176 | ||
| Apr 16, 2026 03:58 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 03:52 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 03:24 | RUSTrust-1.94.0 | Success | 3,314 | ||
| Apr 16, 2026 03:05 | RUSTrust-1.94.0 | Success | 3,356 | ||
| Apr 16, 2026 02:46 | RUSTrust-1.94.0 | Error | |||
| Apr 16, 2026 02:44 | CPPg++13.3.0 | Success | 3,147 | ||
| Apr 16, 2026 02:26 | CPPg++13.3.0 | Success | 3,170 | ||
| Apr 16, 2026 02:23 | CPPg++13.3.0 | Success | 3,169 | ||
| Apr 16, 2026 02:11 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 02:08 | CPPg++13.3.0 | Error | |||
| Apr 16, 2026 01:53 | CPPg++13.3.0 | Success | 3,187 | ||
| Apr 16, 2026 01:51 | CPPg++13.3.0 | Success | 3,170 | ||
| Apr 15, 2026 04:00 | GOgo1.26.1 | Success | 7,623 | ||
| Apr 14, 2026 07:19 | ZIG0.14.0 | Error | |||
| Apr 14, 2026 07:15 | ZIG0.14.0 | Error | |||
| Apr 14, 2026 06:55 | ZIG0.14.0 | Error | |||
| Apr 14, 2026 06:52 | ZIG0.14.0 | Error | |||
| Apr 14, 2026 00:57 | ZIG0.14.0 | Error | |||
| Apr 13, 2026 00:02 | GOgo1.26.1 | Error | |||
| Apr 12, 2026 21:06 | GOgo1.26.1 | Error | |||
| Apr 12, 2026 14:25 | CSHARP9.0.14 | Error | |||
| Apr 12, 2026 13:00 | CSHARP9.0.14 | Error | |||
| Apr 12, 2026 02:09 | CSHARP9.0.14 | Error | |||
| Apr 10, 2026 10:05 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 21:29 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 21:25 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 21:21 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 19:39 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 19:31 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 17:13 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 17:09 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 17:06 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 16:58 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 16:54 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 16:50 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 15:38 | CPPg++13.3.0 | Success | 3,228 | ||
| Apr 9, 2026 15:16 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 15:11 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 15:09 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 15:06 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 11:32 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 11:28 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 11:25 | CSHARP9.0.14 | Error | |||
| Apr 9, 2026 10:46 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 10:43 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 10:41 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 10:31 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 10:29 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 10:26 | GOgo1.26.1 | Error | |||
| Apr 9, 2026 09:36 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 09:32 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 09:27 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 09:24 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 09:18 | ZIG0.14.0 | Error | |||
| Apr 9, 2026 08:56 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:55 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:54 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:54 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:53 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:51 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:50 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:50 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:49 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:49 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:48 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:45 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:45 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:44 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:44 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:43 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:43 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:40 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:39 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:39 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:38 | CPPg++13.3.0 | Error |