messages listlengths 1 1 | ground_truth stringlengths 140 10M | dataset stringclasses 2
values |
|---|---|---|
[
{
"content": "You are given an integer sequence A=(A_1,\\ldots,A_N) of length N. Here, A_1, A_2, \\ldots, A_N are all distinct.\nWhich element in A is the second largest?\n\nInput\n\nThe input is given from Standard Input in the following format:\nN \r\nA_1 A_2 \\ldots A_{N}\n\nOutput\n\nPrint the integer X suc... | eJztljtuHkcQhGnqAeEHnPkAHTIydt4zN3HizAKkRBagn4EDAz4AndH39Vc1KwK2ZVoHMBOCxO5s91fV1fPbyz9+//bGPz8+3v36ePfw6v2Hj/fXx4dLvczI0SJdHh9e/3x/9X9vC3+9ub79dL3+8vHt48OrT9ef3n94vOfNd7cP381L4p0SVe8dsSLx9ruXD7edX6//9vSbcik8fT6R//nED3ff3Nyk47h8PrLHiKlTDw6OxLslUo3Ex3qkEWlGWpGPyJSRI3N8jdwi98gjMv2sKEeUFIUjS5QapUXpUUaUGWVFPaKmqDkqX6xRW9Qe... | code_stdio_lcbv5 |
[
{
"content": "You are given an integer Y between 1583 and 2023.\nFind the number of days in the year Y of the Gregorian calendar.\nWithin the given range, the year Y has the following number of days:\n\n- \r\nif Y is not a multiple of 4, then 365 days;\n\n- \r\nif Y is a multiple of 4 but not a multiple of 100,... | eJxrYJn6kpEBDGKnaNRO0ehhzcwrKC2Z0sNqZGBkzDWlhy2/tAQswGJsZgrkc5SkFpeUVBakApUUl6Rk5k0pBWrLYOphNbS0NOKaksECUmkGZLBhKLAwMIApMMWqwAyhALsJphbG+E2wsDTDb4KZhTleE4wMCLjByMAQvxWQgMPnSFNLU/wKLE0sCXjT0IKACbiCOlUPAIWammM= | code_stdio_lcbv5 |
[
{
"content": "You are given an integer sequence A=(A_1,\\ldots,A_N) of length N. Find the value of the following expression:\n\\displaystyle \\sum_{i=1}^{N-1}\\sum_{j=i+1}^N (A_i \\oplus A_{i+1}\\oplus \\ldots \\oplus A_j).\n\nNotes on bitwise XOR\r\nThe bitwise XOR of non-negative integers A and B, denoted as ... | [{"input": "2\n22198728 43294043\n", "output": "63317139\n", "testtype": "stdin"}, {"input": "2\n100000000 100000000\n", "output": "0\n", "testtype": "stdin"}, {"input": "7\n2 5 6 5 2 1 7\n", "output": "83\n", "testtype": "stdin"}, {"input": "3\n1 3 2\n", "output": "3\n", "testtype": "stdin"}, {"input": "2\n1 1\n", "ou... | code_stdio_lcbv5 |
[{"content":"Takahashi and Aoki played rock-paper-scissors N times. [Note: In this game, Rock beats (...TRUNCATED) | "eJxsvU2OZUuyXkfwD1IB0gg0ADZJQhQ0BDUdvjvqqCcCjx2KAOs11CCgAbxmqa+hqiLi2FrLdmTeeyPO2ce3udn3rc+rMjPixP/(...TRUNCATED) | code_stdio_lcbv5 |
[{"content":"There are N people participating in an event, and the transportation cost for the i-th (...TRUNCATED) | "[{\"input\": \"10 23\\n2 5 6 5 2 1 7 9 7 2\\n\", \"output\": \"2\\n\", \"testtype\": \"stdin\"}, {\(...TRUNCATED) | code_stdio_lcbv5 |
[{"content":"You are given an integer n and a 2D integer array queries.\nThere are n cities numbered(...TRUNCATED) | "eJztvU3PLtuRJXS7quz6oBujRoCEQLJgQA9SKPdHfg1bMGPEBF3p6IJKLZdcErhaVfaAARJiBNJtqQfuEeOWWgyYIv4AEhJjhJj(...TRUNCATED) | code_functional_lcbv5 |
[{"content":"There are some red and blue tiles arranged circularly. You are given an array of intege(...TRUNCATED) | "eJzsvbuubUuSHdagqCbZfyCvITk0GkK+H6YsQZZcQoWC0CK6VQ2Q1QRZZcggoA8os/hB+g/9iDxF7n1WRsTJiDHnaUFeXgTOXXu(...TRUNCATED) | code_functional_lcbv5 |
[{"content":"There is a snake in an n x n matrix grid and can move in four possible directions. Each(...TRUNCATED) | "eJztWk9rE1EQ38a21iAoKpb2IBo89CCl3TRNe/OgVUFssRUDUrVIQoKaFpscPAh+gD2uF/HoSUH8JH4SD34D3WZ3k33zfjPzzB8(...TRUNCATED) | code_functional_lcbv5 |
[{"content":"You are given an array of positive integers nums of length n.\nWe call a pair of non-ne(...TRUNCATED) | "eJztfU2vJceRXYuiKFEYwwvD9gADW4RnM4uCURH5WbtZeuXxsoEHwRAGEijApsYeEgMvDNjwloA3PT/N/8XwyjcjzonM2xIfVyy(...TRUNCATED) | code_functional_lcbv5 |
[{"content":"You are given an integer n representing the number of players in a game and a 2D array (...TRUNCATED) | "eJztWsuOXbUS7YRnwpW4yoRpiwHK4Aj5/ZgCH8AQKdqCgDp0JO4Jgm4hBkj3A87w8DXMGTDnS/gB9rFrVZWdTu/wGKYHx7297XJ(...TRUNCATED) | code_functional_lcbv5 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 14