Llama3.2-Instruct run

M3 Pro 18 GB · llama.cpp · every run of this model · uwu · 2026-11-12

Race this run Get the model from Hugging Face: unsloth/Llama-3.2-3B-Instruct-GGUF

Run Llama3.2-Instruct on your computer to see the two side by side.

A fast run: 24 tasks, 24 points

Score
2,170 Silver Speed times the share of tasks, times 100. Gold starts at 3,000: 48.0 tok/s with these answers. How scores work34.7 tok/s × 62.5% of tasks
  1. Bronze0
  2. Silver1,500
  3. Gold3,000
  4. Platinum6,000
  5. Diamond10,000

Not on the leaderboard: it is a fast run, and only full runs take a place on a computer board. Leaderboard

Tasks passed
15/24
Tokens
5,1323,076 read, 2,056 written.
Speed
34.7 tok/sTokens a second, as the runner measured it. The site checks only that the machine could reach it. How speeds are checked
Writing speed
34.7 tok/sWhile writing only: prompt reading is left out. As the runner measured it.

This setup, checked

No other runs of Llama3.2-Instruct on M3 Pro 18 GB yet.

Llama3.2-Instruct on M3 Pro 18 GB: 15 of 24 tasks in 5.1k tokens at 34.7 tok/s, a Silver score of 2,170, in the resyn benchmark. https://resyn.cloud/suite/80edef7847c7f789b90c9c312da72770Compare another runComment

Run details
Model file
Not a listed file
Where it ran
llama.cpp
How
Run through the model's API (resyn.cloud in the browser)
Model the API reported
Llama-3.2-3B-Instruct-Q8_0
Time
1 min 7 s
Settings
seed=42, temperature=0, top_p=1
Suite
resyn-tasks@6
Flag this run

Hides the run from public pages until an admin checks it.

Failed 9

  • Review sentiment and complaintFailed

    151 tokens: 139 read, 12 written · 1 s · 35.5 tok/s

    Read this product review and answer in exactly this format:
    Sentiment: <positive, negative or mixed>
    Complaint: <the main complaint in a few words>
    
    I've used this kettle every day for a month. Honestly, the auto switch-off works every time and it is quieter than my old kettle. But the lid that came in the box cracked after two weeks, and support took 10 days to reply. I bought a replacement lid myself. Would I buy it again? Probably, but I'm annoyed.
    Sentiment: mixed
    Complaint: poor customer support
  • Action items from an email threadFailed

    273 tokens: 235 read, 38 written · 1 s · 34 tok/s

    List every action item in this email thread that someone has committed to do, as lines of the form "- <owner>: <action>". Leave out offers that were declined and things that turned out not to be needed. Output only the list.
    
    From: Ingrid
    Hi all, quick recap of what's still open for the Lisbon workshop. I'll send the revised contract to the hotel by Monday.
    
    From: Ana
    I can book the venue for the dinner if that helps?
    
    From: Sam
    Thanks Ana, but I'll book the venue myself since I already spoke to them. Also, no need to change the logo on the badges, it's fine as is.
    
    From: Ada
    I'll update the budget sheet with the new hotel price tonight.
    
    From: Ingrid
    Great. Oh, and I'll email the caterer about the vegetarian options. Ana, could you just double-check the date on the invitations? Actually never mind, I checked them this morning, they're correct.
    
    - Ingrid: Send the revised contract to the hotel by Monday
    - Ana: Book the venue for the dinner
    - Ada: Update the budget sheet with the new hotel price tonight
  • Fields from an email as JSONFailed

    176 tokens: 139 read, 37 written · 1 s · 32.9 tok/s

    Extract these fields from the email as a JSON object with exactly these keys: "name" (the sender's full name), "company", "meeting_date" (YYYY-MM-DD) and "attendees" (a number). Output only the JSON.
    
    Hello! This is Tomas Osei from Ironbridge Tools. We'd love to visit your workshop. Could we meet on the 24th of August 2025, any time after lunch? We'll be three people in total, including me. Best, Tomas
    {"name": "Tomas Osei", "company": "Ironbridge Tools", "meeting_date": "2025-08-24", "attendees": "3"}
  • A list as CSVFailed

    169 tokens: 117 read, 52 written · 2 s · 34.9 tok/s

    Convert this shopping list to CSV with the header row item,qty,price. Write prices as plain numbers without a currency sign. Output only the CSV.
    
    Cocoa powder (250 g) - 11 @ $8.30
    Yogurt - 23 @ $3.75
    Peanut butter - 5 @ $5.25
    Carrots - 1 @ $6.20
    "Cocoa powder",250,8.3
    "Cocoa powder",11,8.3
    "Yogurt",23,3.75
    "Peanut butter",5,5.25
    "Carrots",1,6.2
  • Warnings and errors from a logFailed

    462 tokens: 240 read, 222 written · 7 s · 34.7 tok/s

    From this log, return a JSON array with one object per WARN or ERROR line, in order, each with the keys "time" (HH:MM:SS), "level" and "message". Output only the JSON.
    
    2025-08-10 09:09:41 INFO  server started on port 5432
    2025-08-10 09:15:07 WARN  config key "pool size" is deprecated
    2025-08-10 09:16:15 INFO  user ada logged in
    2025-08-10 09:18:31 ERROR database connection lost
    2025-08-10 09:20:26 INFO  retrying in 10s
    2025-08-10 09:26:15 INFO  database reconnected
    2025-08-10 09:32:55 DEBUG cache hit ratio 0.98
    2025-08-10 09:37:35 ERROR payment webhook returned 502
    [
      {"time": "09:09:41", "level": "INFO", "message": "server started on port 5432"},
      {"time": "09:15:07", "level": "WARN", "message": "config key \"pool size\" is deprecated"},
      {"time": "09:16:15", "level": "INFO", "message": "user ada logged in"},
      {"time": "09:18:31", "level": "ERROR", "message": "database connection lost"},
      {"time": "09:20:26", "level": "INFO", "message": "retrying in 10s"},
      {"time": "09:26:15", "level": "INFO", "message": "database reconnected"},
      {"time": "09:32:55", "level": "DEBUG", "message": "cache hit ratio 0.98"},
      {"time": "09:37:35", "level": "ERROR", "message": "payment webhook returned 502"}
    ]
  • Day and dateFailed

    199 tokens: 88 read, 111 written · 3 s · 35 tok/s

    Today is Saturday, 25 July 2026. What day of the week, and what date, is it 398 days from today? Work it out, then end with a line "ANSWER: <day of the week>, <YYYY-MM-DD>".
    To find the day of the week and date 398 days from today, we need to calculate the number of weeks and remaining days.
    
    398 days ÷ 7 days per week = 57 weeks with a remainder of 3 days.
    
    Since today is Saturday, 398 days from now will be 3 days ahead of Saturday.
    
    Counting 3 days from Saturday: Sunday, Monday, Tuesday.
    
    So, 398 days from today is Tuesday, 25 July 2027.
    
    ANSWER: Tuesday, 2027-07-25
  • Who owns each petFailed

    362 tokens: 167 read, 195 written · 6 s · 34.8 tok/s

    Five people, Ben, Hal, Cal, Jon and Kim, each own exactly one of these pets: a cat, a dog, a fish, a bird and a rabbit. Each pet has one owner. Clues:
    - Kim owns the cat.
    - Ben owns the fish or the rabbit.
    - Jon owns the bird.
    - Hal owns the rabbit.
    Who owns each pet? Work it out, then end with a line "ANSWER: <owner of the cat>, <owner of the dog>, <owner of the fish>, <owner of the bird>, <owner of the rabbit>", with the five names in that order, separated by commas.
    Let's analyze the clues:
    
    1. Kim owns the cat.
    2. Ben owns the fish or the rabbit.
    3. Jon owns the bird.
    4. Hal owns the rabbit.
    
    From clue 4, we know Hal owns the rabbit. Since Ben also owns the fish or the rabbit, Ben must own the fish.
    
    Now, let's look at clue 2 again. We know Ben owns the fish, so Ben cannot own the rabbit. We already know Hal owns the rabbit, so Ben must own the fish.
    
    From clue 1, we know Kim owns the cat. Clue 3 tells us Jon owns the bird. The only pet left is the dog.
    
    Now, let's summarize the owners:
    - Kim owns the cat.
    - Ben owns the fish.
    - Jon owns the bird.
    - Hal owns the rabbit.
    - The dog is owned by the remaining person, which is Cal.
    
    ANSWER: Kim, Ben, Jon, Cal, Hal
  • Trace a loopFailed

    587 tokens: 114 read, 473 written · 14 s · 34.6 tok/s

    What does this Python program print? Work it out, then end with a line "ANSWER: <output>".
    
    def g(n):
        total = 0
        for i in range(1, n + 1):
            if i % 8 == 0 or i % 3 == 0:
                total += i
        return total
    
    print(g(81))
    To determine what the program prints, let's break it down step by step.
    
    The function `g(n)` calculates the sum of all numbers from 1 to `n` that are divisible by either 8 or 3.
    
    In this case, `n` is 81.
    
    The numbers from 1 to 81 that are divisible by 8 are: 8, 16, 24, 32, 40, 48, 56, 64, 72, and 80.
    
    The numbers from 1 to 81 that are divisible by 3 are: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, and 81.
    
    However, we need to avoid counting numbers that are divisible by both 8 and 3, which are 24 and 72. So, we should subtract these numbers from the total sum.
    
    Now, let's calculate the sum:
    
    - The sum of numbers divisible by 8 is: 8 + 16 + 24 + 32 + 40 + 48 + 56 + 64 + 72 + 80 = 440
    - The sum of numbers divisible by 3 is: 3 + 6 + 9 + 12 + 15 + 18 + 21 + 24 + 27 + 30 + 33 + 36 + 39 + 42 + 45 + 48 + 51 + 54 + 57 + 60 + 63 + 66 + 69 + 72 + 75 + 78 + 81 = 936
    - The sum of numbers divisible by both 8 and 3 is: 24 + 72 = 96
    
    Now, we subtract the sum of numbers divisible by both 8 and 3 from the sum of numbers divisible by 8 and the sum of numbers divisible by 3:
    
    440 + 936 - 96 = 1360
    
    Therefore, the program prints: 
    
    ANSWER: 1360
  • Run a query in your headFailed

    170 tokens: 156 read, 14 written · 1 s · 36.7 tok/s

    What rows does this SQL query return? Output only the rows, one per line, as customer,total in the query's order.
    
    Table orders:
    id | customer | amount
    1  | cal      | 60
    2  | ana      | 80
    3  | ana      | 50
    4  | ben      | 95
    5  | ben      | 140
    6  | cal      | 5
    
    Query:
    SELECT customer, SUM(amount) AS total
    FROM orders
    GROUP BY customer
    HAVING SUM(amount) > 100
    ORDER BY total DESC;
    1. cal, 65
    2. ben, 235

Reasons are shown for the fixed tasks. The varied tasks keep their checks private so answers cannot be fitted to them.

Think a grade is wrong? Say so in the chat.

Scored tasks

Summarizing 3 of 5
  • One-sentence summaryPassed

    161 tokens: 126 read, 35 written · 5 s · 33.9 tok/s

    Summarize this in one sentence of at most 30 words.
    
    Starting October 26, the Holmwood Public Library will open at 7:55 a.m. instead of 11:10 a.m. on weekdays. The change follows a survey in which 85% of respondents asked for earlier hours. Weekend hours stay the same. The library will hire three part-time staff to cover the extra time, paid for by a county grant.
    The Holmwood Public Library will open at 7:55 a.m. on weekdays, starting October 26, after 85% of respondents requested earlier hours.
  • Meeting notes in three bulletsPassed

    268 tokens: 208 read, 60 written · 2 s · 33.5 tok/s

    Summarize these meeting notes as exactly three bullet points, each at most 20 words. Keep only the decisions and ownership changes that matter. Output only the bullet points.
    
    Weekly sync, ops team. Present: Ingrid, Jules, Priya, Eli.
    - Priya reported that the payment provider fixed the export bug; no action needed.
    - The launch date moves from November 6 to November 12 because the legal review is taking longer.
    - Eli showed the new onboarding screens. Everyone liked them. Small copy changes only.
    - The marketing budget of $75,000 was approved by finance on Saturday.
    - Ingrid will own end-to-end testing from now on; Jules hands over the test plan by Thursday.
    - Next sync is moved to Tuesday at 09:15.
    - Coffee machine on floor 2 is broken again.
    • The launch date is moved from November 6 to November 12 due to a longer-than-expected legal review.
    • Ingrid will own end-to-end testing, with Jules handing over the test plan by Thursday.
    • The marketing budget of $75,000 was approved by finance.
  • Review sentiment and complaintFailed

    151 tokens: 139 read, 12 written · 1 s · 35.5 tok/s

    Read this product review and answer in exactly this format:
    Sentiment: <positive, negative or mixed>
    Complaint: <the main complaint in a few words>
    
    I've used this kettle every day for a month. Honestly, the auto switch-off works every time and it is quieter than my old kettle. But the lid that came in the box cracked after two weeks, and support took 10 days to reply. I bought a replacement lid myself. Would I buy it again? Probably, but I'm annoyed.
    Sentiment: mixed
    Complaint: poor customer support
  • Faithful summary of a studyPassed

    212 tokens: 153 read, 59 written · 2 s · 33.5 tok/s

    Summarize this in at most 50 words. Keep the key numbers. Do not add anything the text does not say.
    
    In a randomized trial, 220 adults with chronic migraine took either Nimora or a placebo for 6 weeks. Those on Nimora had 2.9 fewer headache days per month on average, compared with 1.4 fewer days for placebo. Nausea was the most common side effect, reported by 17% of the drug group. The authors note the trial lasted only 6 weeks and call for longer studies before any recommendation is made.
    220 adults with chronic migraine took Nimora or a placebo for 6 weeks. Nimora reduced headache days by 2.9/month, compared to 1.4/month for placebo. Nausea was the most common side effect, reported by 17% of the drug group.
  • Action items from an email threadFailed

    273 tokens: 235 read, 38 written · 1 s · 34 tok/s

    List every action item in this email thread that someone has committed to do, as lines of the form "- <owner>: <action>". Leave out offers that were declined and things that turned out not to be needed. Output only the list.
    
    From: Ingrid
    Hi all, quick recap of what's still open for the Lisbon workshop. I'll send the revised contract to the hotel by Monday.
    
    From: Ana
    I can book the venue for the dinner if that helps?
    
    From: Sam
    Thanks Ana, but I'll book the venue myself since I already spoke to them. Also, no need to change the logo on the badges, it's fine as is.
    
    From: Ada
    I'll update the budget sheet with the new hotel price tonight.
    
    From: Ingrid
    Great. Oh, and I'll email the caterer about the vegetarian options. Ana, could you just double-check the date on the invitations? Actually never mind, I checked them this morning, they're correct.
    
    - Ingrid: Send the revised contract to the hotel by Monday
    - Ana: Book the venue for the dinner
    - Ada: Update the budget sheet with the new hotel price tonight
Extracting 2 of 5
  • Fields from an email as JSONFailed

    176 tokens: 139 read, 37 written · 1 s · 32.9 tok/s

    Extract these fields from the email as a JSON object with exactly these keys: "name" (the sender's full name), "company", "meeting_date" (YYYY-MM-DD) and "attendees" (a number). Output only the JSON.
    
    Hello! This is Tomas Osei from Ironbridge Tools. We'd love to visit your workshop. Could we meet on the 24th of August 2025, any time after lunch? We'll be three people in total, including me. Best, Tomas
    {"name": "Tomas Osei", "company": "Ironbridge Tools", "meeting_date": "2025-08-24", "attendees": "3"}
  • Every email address, oncePassed

    210 tokens: 174 read, 36 written · 1 s · 35.3 tok/s

    List every email address written out in full in this text (like name@example.com), one per line, in the order they first appear, without duplicates. Leave out any inbox the text says is closed. Output only the addresses.
    
    Contacts for the conference: write to contact@lakeside-talks.net for general questions, or to program@lakeside-talks.net if you are presenting. Our designer (nadia.r@north-arc.io) made the poster. Billing questions: billing@lakeside-talks.net. Again, presenters use program@lakeside-talks.net. Please don't write to sol at lakeside dot net, that inbox is closed.
    contact@lakeside-talks.net
    program@lakeside-talks.net
    nadia.r@north-arc.io
    billing@lakeside-talks.net
  • A list as CSVFailed

    169 tokens: 117 read, 52 written · 2 s · 34.9 tok/s

    Convert this shopping list to CSV with the header row item,qty,price. Write prices as plain numbers without a currency sign. Output only the CSV.
    
    Cocoa powder (250 g) - 11 @ $8.30
    Yogurt - 23 @ $3.75
    Peanut butter - 5 @ $5.25
    Carrots - 1 @ $6.20
    "Cocoa powder",250,8.3
    "Cocoa powder",11,8.3
    "Yogurt",23,3.75
    "Peanut butter",5,5.25
    "Carrots",1,6.2
  • The real deadlinePassed

    121 tokens: 114 read, 7 written · 0 s · 39.6 tok/s

    What is the final submission deadline? Answer with the date only, in YYYY-MM-DD format.
    
    The call for papers opened on 8 January 2027. Drafts were originally due February 25, but the committee extended the final submission deadline to 17 March 2027. Reviews are due by 28 March, and results will be announced on April 7, 2027.
    2027-03-17
  • Warnings and errors from a logFailed

    462 tokens: 240 read, 222 written · 7 s · 34.7 tok/s

    From this log, return a JSON array with one object per WARN or ERROR line, in order, each with the keys "time" (HH:MM:SS), "level" and "message". Output only the JSON.
    
    2025-08-10 09:09:41 INFO  server started on port 5432
    2025-08-10 09:15:07 WARN  config key "pool size" is deprecated
    2025-08-10 09:16:15 INFO  user ada logged in
    2025-08-10 09:18:31 ERROR database connection lost
    2025-08-10 09:20:26 INFO  retrying in 10s
    2025-08-10 09:26:15 INFO  database reconnected
    2025-08-10 09:32:55 DEBUG cache hit ratio 0.98
    2025-08-10 09:37:35 ERROR payment webhook returned 502
    [
      {"time": "09:09:41", "level": "INFO", "message": "server started on port 5432"},
      {"time": "09:15:07", "level": "WARN", "message": "config key \"pool size\" is deprecated"},
      {"time": "09:16:15", "level": "INFO", "message": "user ada logged in"},
      {"time": "09:18:31", "level": "ERROR", "message": "database connection lost"},
      {"time": "09:20:26", "level": "INFO", "message": "retrying in 10s"},
      {"time": "09:26:15", "level": "INFO", "message": "database reconnected"},
      {"time": "09:32:55", "level": "DEBUG", "message": "cache hit ratio 0.98"},
      {"time": "09:37:35", "level": "ERROR", "message": "payment webhook returned 502"}
    ]
Following instructions 5 of 5
  • Exactly one wordPassed

    47 tokens: 45 read, 2 written · 0 s · 63.9 tok/s

    Reply with exactly the word Locked and nothing else.
    Locked
  • Three lowercase linesPassed

    150 tokens: 114 read, 36 written · 1 s · 35.1 tok/s

    Write exactly three lines about a prairie. Use the word prairie in every line. Start every line with the letter r, and do not use any of these words: school, cave, hill, bay, oasis, delta, summer, mountain, desert or park. Every line must be entirely lowercase, and the third line must end with a question mark. Output only the three lines.
    rare prairie flowers bloom in the gentle breeze
    rugged prairie grasses sway in the wind
    rare prairie creatures roam freely, will they find shelter?
  • Exact JSON shapePassed

    107 tokens: 87 read, 20 written · 1 s · 35.8 tok/s

    Return a JSON object with exactly two keys: "words", a list of exactly 2 different lowercase words that each start with the letter a and use only the plain letters a to z, and "count", the number 2. Output only the JSON.
    {"words": ["aardvark", "abacus"], "count": 2}
  • Sort a listPassed

    82 tokens: 69 read, 13 written · 0 s · 36.7 tok/s

    Sort these words alphabetically, ignoring case. Output only the sorted words, on one line separated by commas: Corn, carrot, Melon, Date, Kiwi.
    carrot, Corn, Date, Kiwi, Melon
  • A name with three rulesPassed

    102 tokens: 96 read, 6 written · 0 s · 40.4 tok/s

    Suggest a product name for a solar-powered cooler. Rules: exactly two words, both capitalized, using only the plain letters A to Z, the first word starts with the letter D, the second word starts with the letter K, and the letter r must not appear anywhere. Output only the name.
    DYNAMITE KITS
Reasoning 3 of 5
  • Unit pricePassed

    189 tokens: 75 read, 114 written · 3 s · 34.8 tok/s

    A shop sells pencils at 3 for $1.35. How much do 19 pencils cost, in dollars? Work it out, then end with a line "ANSWER: <number>".
    To find the cost of 19 pencils, we need to first find the cost of 1 pencil. 
    
    Since 3 pencils cost $1.35, we can divide $1.35 by 3 to find the cost of 1 pencil:
    
    $1.35 ÷ 3 = $0.45 per pencil
    
    Now, we can multiply the cost of 1 pencil by 19 to find the cost of 19 pencils:
    
    $0.45 per pencil × 19 pencils = $8.55
    
    ANSWER: 8.55
  • Day and dateFailed

    199 tokens: 88 read, 111 written · 3 s · 35 tok/s

    Today is Saturday, 25 July 2026. What day of the week, and what date, is it 398 days from today? Work it out, then end with a line "ANSWER: <day of the week>, <YYYY-MM-DD>".
    To find the day of the week and date 398 days from today, we need to calculate the number of weeks and remaining days.
    
    398 days ÷ 7 days per week = 57 weeks with a remainder of 3 days.
    
    Since today is Saturday, 398 days from now will be 3 days ahead of Saturday.
    
    Counting 3 days from Saturday: Sunday, Monday, Tuesday.
    
    So, 398 days from today is Tuesday, 25 July 2027.
    
    ANSWER: Tuesday, 2027-07-25
  • Who owns each petFailed

    362 tokens: 167 read, 195 written · 6 s · 34.8 tok/s

    Five people, Ben, Hal, Cal, Jon and Kim, each own exactly one of these pets: a cat, a dog, a fish, a bird and a rabbit. Each pet has one owner. Clues:
    - Kim owns the cat.
    - Ben owns the fish or the rabbit.
    - Jon owns the bird.
    - Hal owns the rabbit.
    Who owns each pet? Work it out, then end with a line "ANSWER: <owner of the cat>, <owner of the dog>, <owner of the fish>, <owner of the bird>, <owner of the rabbit>", with the five names in that order, separated by commas.
    Let's analyze the clues:
    
    1. Kim owns the cat.
    2. Ben owns the fish or the rabbit.
    3. Jon owns the bird.
    4. Hal owns the rabbit.
    
    From clue 4, we know Hal owns the rabbit. Since Ben also owns the fish or the rabbit, Ben must own the fish.
    
    Now, let's look at clue 2 again. We know Ben owns the fish, so Ben cannot own the rabbit. We already know Hal owns the rabbit, so Ben must own the fish.
    
    From clue 1, we know Kim owns the cat. Clue 3 tells us Jon owns the bird. The only pet left is the dog.
    
    Now, let's summarize the owners:
    - Kim owns the cat.
    - Ben owns the fish.
    - Jon owns the bird.
    - Hal owns the rabbit.
    - The dog is owned by the remaining person, which is Cal.
    
    ANSWER: Kim, Ben, Jon, Cal, Hal
  • Arrival timePassed

    162 tokens: 85 read, 77 written · 2 s · 35.1 tok/s

    A train leaves at 18:35 and the trip takes 4 hours 10 minutes. At what time does it arrive? Work it out, then end with a line "ANSWER: <HH:MM>" in 24-hour time.
    To find the arrival time, we need to add 4 hours and 10 minutes to the departure time.
    
    Departure time: 18:35
    Adding 4 hours: 18:35 + 4 hours = 22:35
    Adding 10 minutes: 22:35 + 10 minutes = 22:45
    
    ANSWER: 22:45
  • Filling a tankPassed

    258 tokens: 106 read, 152 written · 5 s · 34.7 tok/s

    A tank holds 110 liters and starts empty. Pipe A adds 14 liters an hour, pipe B adds 12 liters an hour, and a drain takes 4 liters an hour out of it. With all three open, how many hours until the tank is full? Work it out, then end with a line "ANSWER: <number>".
    To find out how many hours it will take to fill the tank, we need to calculate the net amount of water added to the tank per hour.
    
    Pipe A adds 14 liters/hour, pipe B adds 12 liters/hour, and the drain takes out 4 liters/hour. So, the net amount of water added per hour is:
    
    14 (Pipe A) + 12 (Pipe B) - 4 (Drain) = 22 liters/hour
    
    Since the tank holds 110 liters, we can divide the tank's capacity by the net amount of water added per hour to find the time it will take to fill the tank:
    
    110 liters / 22 liters/hour = 5 hours
    
    ANSWER: 5
Reading code 2 of 4
  • What does it printPassed

    317 tokens: 101 read, 216 written · 6 s · 34.8 tok/s

    What numbers does this Python program print, in order? Work it out, then end with a line "ANSWER: <numbers, separated by commas>".
    
    def f(xs):
        return sorted(xs)[::-1][:3]
    
    print(f([2, 35, 26, 17, 8, 37]))
    To determine the numbers printed by the Python program, let's break down the function f(xs):
    
    1. `sorted(xs)`: This sorts the input list in ascending order.
    2. `[::-1]`: This reverses the sorted list.
    3. `[:3]`: This slices the reversed list to get the first 3 elements.
    
    Now, let's apply this to the input list `[2, 35, 26, 17, 8, 37]`:
    
    1. `sorted([2, 35, 26, 17, 8, 37])` = `[2, 8, 17, 26, 35, 37]`
    2. `[::-1]` = `[37, 35, 26, 17, 8, 2]`
    3. `[:3]` = `[37, 35, 26]`
    
    So, the program prints the numbers 37, 35, and 26.
    
    ANSWER: 37, 35, 26
  • Trace a loopFailed

    587 tokens: 114 read, 473 written · 14 s · 34.6 tok/s

    What does this Python program print? Work it out, then end with a line "ANSWER: <output>".
    
    def g(n):
        total = 0
        for i in range(1, n + 1):
            if i % 8 == 0 or i % 3 == 0:
                total += i
        return total
    
    print(g(81))
    To determine what the program prints, let's break it down step by step.
    
    The function `g(n)` calculates the sum of all numbers from 1 to `n` that are divisible by either 8 or 3.
    
    In this case, `n` is 81.
    
    The numbers from 1 to 81 that are divisible by 8 are: 8, 16, 24, 32, 40, 48, 56, 64, 72, and 80.
    
    The numbers from 1 to 81 that are divisible by 3 are: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, and 81.
    
    However, we need to avoid counting numbers that are divisible by both 8 and 3, which are 24 and 72. So, we should subtract these numbers from the total sum.
    
    Now, let's calculate the sum:
    
    - The sum of numbers divisible by 8 is: 8 + 16 + 24 + 32 + 40 + 48 + 56 + 64 + 72 + 80 = 440
    - The sum of numbers divisible by 3 is: 3 + 6 + 9 + 12 + 15 + 18 + 21 + 24 + 27 + 30 + 33 + 36 + 39 + 42 + 45 + 48 + 51 + 54 + 57 + 60 + 63 + 66 + 69 + 72 + 75 + 78 + 81 = 936
    - The sum of numbers divisible by both 8 and 3 is: 24 + 72 = 96
    
    Now, we subtract the sum of numbers divisible by both 8 and 3 from the sum of numbers divisible by 8 and the sum of numbers divisible by 3:
    
    440 + 936 - 96 = 1360
    
    Therefore, the program prints: 
    
    ANSWER: 1360
  • Find the bugPassed

    197 tokens: 128 read, 69 written · 2 s · 35.2 tok/s

    The function biggest should return the largest number in a non-empty list. The code below has one bug. Find the line with the bug, and write that line corrected, exactly as it should read in the code. Work it out, then end with a line "ANSWER: <corrected line>".
    
    def biggest(items):
        best = items[0]
        for item in items:
            if item < best:
                best = item
        return best
    The bug in the code is in the line `if item < best:`. This line should be `if item > best:` because it should compare each item to the current best, and if the item is greater than the best, then it should update the best.
    
    Here's the corrected line:
    
    ANSWER: if item > best:
  • Run a query in your headFailed

    170 tokens: 156 read, 14 written · 1 s · 36.7 tok/s

    What rows does this SQL query return? Output only the rows, one per line, as customer,total in the query's order.
    
    Table orders:
    id | customer | amount
    1  | cal      | 60
    2  | ana      | 80
    3  | ana      | 50
    4  | ben      | 95
    5  | ben      | 140
    6  | cal      | 5
    
    Query:
    SELECT customer, SUM(amount) AS total
    FROM orders
    GROUP BY customer
    HAVING SUM(amount) > 100
    ORDER BY total DESC;
    1. cal, 65
    2. ben, 235

Comments

Sign in or create an account to comment.