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 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 | |||
| Apr 9, 2026 08:38 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:37 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:34 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:33 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:33 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:32 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:31 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:31 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:12 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:11 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:10 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:08 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:07 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:07 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:06 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:05 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:04 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:02 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:02 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:01 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 08:01 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:59 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:58 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:57 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:56 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:56 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:55 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:53 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:53 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:51 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:50 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:50 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:49 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:48 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:47 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:45 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:45 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:44 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:43 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:42 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:41 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:40 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:39 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:38 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:38 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:36 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:36 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:34 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:33 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:33 | CPPg++13.3.0 | Error | |||
| Apr 9, 2026 07:32 | CPPg++13.3.0 | Error |