{"readAt":"2026-11-30T07:51:53Z","version":1,"judgeRubric":"You are judging two anonymous answers to the same prompt. Prefer the answer that is correct, follows every instruction in the prompt (format, length, language), is clear and useful, and does not pad. Ignore answer length unless the prompt sets one. Do not favour an answer for its position. If both are equally good or equally bad, say tie.","prompts":[{"id":"c01","category":"code","prompt":"Write a JavaScript function `isPalindrome(s)` that returns true if the string reads the same forwards and backwards, ignoring case and any character that is not a letter or digit. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"isPalindrome","tests":[{"args":["A man, a plan, a canal: Panama"],"expect":true},{"args":["race a car"],"expect":false},{"args":[""],"expect":true}]}},{"id":"c02","category":"code","prompt":"Write a JavaScript function `fizzbuzz(n)` that returns an array of strings for 1..n: \"Fizz\" for multiples of 3, \"Buzz\" for multiples of 5, \"FizzBuzz\" for both, otherwise the number as a string. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"fizzbuzz","tests":[{"args":[5],"expect":["1","2","Fizz","4","Buzz"]},{"args":[15],"expect":["1","2","Fizz","4","Buzz","Fizz","7","8","Fizz","Buzz","11","Fizz","13","14","FizzBuzz"]}]}},{"id":"c03","category":"code","prompt":"Write a JavaScript function `flatten(arr)` that flattens arbitrarily nested arrays into one flat array, keeping order, without using Array.prototype.flat. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"flatten","tests":[{"args":[[1,[2,[3,[4]]],5]],"expect":[1,2,3,4,5]},{"args":[[]],"expect":[]},{"args":[[["a"],[],["b",["c"]]]],"expect":["a","b","c"]}]}},{"id":"c04","category":"code","prompt":"Write a JavaScript function `romanToInt(s)` that converts a Roman numeral (I, V, X, L, C, D, M, with subtractive forms like IV and CM) to an integer. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"romanToInt","tests":[{"args":["MCMXCIV"],"expect":1994},{"args":["III"],"expect":3},{"args":["LVIII"],"expect":58}]}},{"id":"c05","category":"code","prompt":"Write a JavaScript function `chunk(arr, size)` that splits an array into consecutive groups of `size` elements; the last group may be shorter. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"chunk","tests":[{"args":[[1,2,3,4,5],2],"expect":[[1,2],[3,4],[5]]},{"args":[[],3],"expect":[]},{"args":[[1,2,3],3],"expect":[[1,2,3]]}]}},{"id":"c06","category":"code","prompt":"Write a JavaScript function `isBalanced(s)` that returns true if every bracket in the string ((), [], {}) is closed in the correct order. Other characters are ignored. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"isBalanced","tests":[{"args":["([]{})"],"expect":true},{"args":["([)]"],"expect":false},{"args":["(("],"expect":false},{"args":["a(b)c"],"expect":true}]}},{"id":"c07","category":"code","prompt":"Write a JavaScript function `wordCount(s)` that returns an object mapping each word to how many times it appears. A word is a run of letters A-Z (any case); count words in lowercase. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"wordCount","tests":[{"args":["The cat and the hat."],"expect":{"the":2,"cat":1,"and":1,"hat":1}},{"args":[""],"expect":{}}]}},{"id":"c08","category":"code","prompt":"Write a JavaScript function `gcd(a, b)` that returns the greatest common divisor of two non-negative integers. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"gcd","tests":[{"args":[48,18],"expect":6},{"args":[17,5],"expect":1},{"args":[0,9],"expect":9}]}},{"id":"c09","category":"code","prompt":"Write a JavaScript function `binarySearch(arr, target)` that returns the index of `target` in the ascending sorted array `arr`, or -1 if it is absent. Use binary search. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"binarySearch","tests":[{"args":[[1,3,5,7,9],7],"expect":3},{"args":[[1,3,5],4],"expect":-1},{"args":[[],1],"expect":-1}]}},{"id":"c10","category":"code","prompt":"Write a JavaScript function `camelCase(s)` that splits the input on spaces, hyphens and underscores, lowercases the first word, capitalises the first letter of each following word (rest lowercase) and joins them. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"camelCase","tests":[{"args":["hello world foo"],"expect":"helloWorldFoo"},{"args":["Make-it_work now"],"expect":"makeItWorkNow"}]}},{"id":"c11","category":"code","prompt":"Write a JavaScript function `uniqueSorted(arr)` that returns the distinct numbers of the array in ascending numeric order. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"uniqueSorted","tests":[{"args":[[3,1,2,3,1]],"expect":[1,2,3]},{"args":[[10,9,100]],"expect":[9,10,100]}]}},{"id":"c12","category":"code","prompt":"Write a JavaScript function `nthPrime(n)` that returns the n-th prime number (1-indexed, so nthPrime(1) is 2). Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"nthPrime","tests":[{"args":[1],"expect":2},{"args":[6],"expect":13},{"args":[100],"expect":541}]}},{"id":"c13","category":"code","prompt":"Write a JavaScript function `rle(s)` that run-length encodes a string as each character followed by its run length, for example \"aaab\" becomes \"a3b1\". The empty string stays empty. Reply with one ```js code block that defines the function (plain JavaScript, no imports), then at most two sentences.","check":{"type":"code","entry":"rle","tests":[{"args":["aaabccdddd"],"expect":"a3b1c2d4"},{"args":[""],"expect":""}]}},{"id":"r01","category":"reason","prompt":"A train travels 180 km in 2.5 hours at a constant speed. What is its speed in km/h? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"72"}},{"id":"r02","category":"reason","prompt":"How many positive divisors does 360 have? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"24"}},{"id":"r03","category":"reason","prompt":"What is the sum of all integers from 1 to 200 inclusive? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"20100"}},{"id":"r04","category":"reason","prompt":"A jacket costs $80. It is discounted by 25%, then a 10% sales tax is added to the discounted price. What is the final price in dollars? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"66"}},{"id":"r05","category":"reason","prompt":"Three workers build a wall in 12 days. Working at the same rate, how many days do nine workers need for the same wall? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"4"}},{"id":"r06","category":"reason","prompt":"Two fair six-sided dice are rolled. What is the probability that the sum is 7? Give it as a fraction. Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"1/6"}},{"id":"r07","category":"reason","prompt":"How many distinct arrangements are there of the letters of the word LEVEL? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"30"}},{"id":"r08","category":"reason","prompt":"Solve for x: 2x + 7 = 31. Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"12"}},{"id":"r09","category":"reason","prompt":"What is the remainder when 2^20 is divided by 7? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"4"}},{"id":"r10","category":"reason","prompt":"A rectangle has perimeter 46 and area 120. What is the length of its longer side? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"15"}},{"id":"r11","category":"reason","prompt":"How many minutes are there from 09:47 to 14:13 on the same day? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"266"}},{"id":"r12","category":"reason","prompt":"What is the sum of the interior angles of a hexagon, in degrees? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"720"}},{"id":"r13","category":"reason","prompt":"$1000 is invested at 10% per year, compounded annually. What is it worth after 3 years, in dollars? Show brief working, then end with a final line in the form `Answer: <number>`.","check":{"type":"math","answer":"1331"}},{"id":"w01","category":"write","prompt":"Write a four-line poem about a lighthouse keeper who has never seen the sea in daylight."},{"id":"w02","category":"write","prompt":"Write a product description of at most 80 words for a mechanical pencil made for architects."},{"id":"w03","category":"write","prompt":"Rewrite this sentence so it is clear and concise: \"Due to the fact that the meeting was postponed by the manager, the report which was supposed to be submitted will be delayed as well.\""},{"id":"w04","category":"write","prompt":"Write a short apology email, under 120 words, to a customer whose order arrived two weeks late."},{"id":"w05","category":"write","prompt":"Write the opening paragraph of a mystery story set in a night market that has just closed."},{"id":"w06","category":"write","prompt":"Explain to a ten-year-old, in three sentences, why the sky is blue."},{"id":"w07","category":"write","prompt":"Write a haiku about debugging code at 3 a.m."},{"id":"w08","category":"write","prompt":"Summarise the plot of Shakespeare's Romeo and Juliet in exactly two sentences."},{"id":"w09","category":"write","prompt":"Write a persuasive argument of about 100 words for planting trees on school grounds."},{"id":"w10","category":"write","prompt":"Write a limerick about a cat who learns to use a keyboard."},{"id":"w11","category":"write","prompt":"Suggest five names for a bakery that only sells sourdough bread, each with a one-line reason."},{"id":"w12","category":"write","prompt":"Write a six-word story about moving to a new city."},{"id":"b01","category":"bahasa","prompt":"Jelaskan dengan bahasa sederhana apa itu inflasi, lalu beri satu contoh dari kehidupan sehari-hari."},{"id":"b02","category":"bahasa","prompt":"Tulis sebuah pantun empat baris tentang kebiasaan menabung."},{"id":"b03","category":"bahasa","prompt":"Terjemahkan ke bahasa Inggris yang wajar: \"Saya sudah menunggu di halte ini selama setengah jam, tapi bus belum juga datang.\""},{"id":"b04","category":"bahasa","prompt":"Buatkan pesan WhatsApp yang sopan kepada atasan untuk minta izin tidak masuk kerja hari ini karena sakit."},{"id":"b05","category":"bahasa","prompt":"Apa perbedaan \"di\" sebagai kata depan dan \"di-\" sebagai awalan? Beri dua contoh untuk masing-masing."},{"id":"b06","category":"bahasa","prompt":"Tulis resep singkat nasi goreng untuk satu porsi, paling banyak 8 langkah."},{"id":"b07","category":"bahasa","prompt":"Sebuah toko memberi diskon 20%, lalu diskon tambahan 10% dari harga setelah diskon pertama. Berapa persen total diskonnya dari harga awal? Tulis langkah singkat, lalu akhiri dengan baris `Answer: <angka>`.","check":{"type":"math","answer":"28"}},{"id":"b08","category":"bahasa","prompt":"Berikan tiga tips belajar yang efektif untuk mahasiswa yang juga bekerja paruh waktu."},{"id":"b09","category":"bahasa","prompt":"Ringkas dalam dua kalimat: apa manfaat dan risiko memakai pinjaman online?"},{"id":"b10","category":"bahasa","prompt":"Tulis cerita pendek lima kalimat tentang seorang anak yang menemukan anak kucing di pasar."},{"id":"b11","category":"bahasa","prompt":"Jelaskan arti peribahasa \"Air beriak tanda tak dalam\" dan beri satu contoh penggunaannya dalam kalimat."},{"id":"b12","category":"bahasa","prompt":"Buat fungsi JavaScript `hitungVokal(teks)` yang mengembalikan jumlah huruf vokal (a, i, u, e, o; huruf besar maupun kecil) dalam teks. Balas dengan satu blok kode ```js yang mendefinisikan fungsi itu (JavaScript biasa, tanpa import), lalu paling banyak dua kalimat.","check":{"type":"code","entry":"hitungVokal","tests":[{"args":["Selamat Pagi"],"expect":5},{"args":["xyz"],"expect":0},{"args":["AIUEO aiueo"],"expect":10}]}},{"id":"b13","category":"bahasa","prompt":"Budi berjalan 4 km/jam dan berangkat pukul 07.00. Ani bersepeda 12 km/jam dan berangkat pukul 08.00 dari titik dan rute yang sama. Pukul berapa Ani menyusul Budi? Tulis langkah singkat, lalu akhiri dengan baris `Jawaban: <jam>` (format jam.menit).","check":{"type":"regex","pattern":"(Jawaban|Answer)\\s*:\\s*\\**\\s*0?8[.:]30"}},{"id":"o01","category":"other","prompt":"What are three practical ways to reduce daily phone screen time? Be concrete."},{"id":"o02","category":"other","prompt":"Compare SQL and NoSQL databases in a short table with four rows."},{"id":"o03","category":"other","prompt":"I have eggs, spinach, cheese and cooked rice. Suggest one dinner and the steps to make it."},{"id":"o04","category":"other","prompt":"Explain what a Merkle tree is in under 100 words."},{"id":"o05","category":"other","prompt":"Give a five-day beginner running plan for someone who has never run before."},{"id":"o06","category":"other","prompt":"List six questions to ask yourself before adopting a dog."},{"id":"o07","category":"other","prompt":"Explain the difference between weather and climate, with one example of each."},{"id":"o08","category":"other","prompt":"Write a regular expression that matches a 24-hour time such as 23:59 but not 24:00, and explain each part."},{"id":"o09","category":"other","prompt":"How does a refrigerator keep food cold? Explain in plain words."},{"id":"o10","category":"other","prompt":"Plan a one-day, low-budget itinerary for a first visit to Yogyakarta."},{"id":"o11","category":"other","prompt":"List three advantages and three disadvantages of working from home."},{"id":"o12","category":"other","prompt":"What is the difference between a virus and a bacterium?"},{"id":"o13","category":"other","prompt":"Suggest a name and a one-sentence pitch for an app that helps neighbours lend each other tools."}]}