question_title
stringlengths 2
58
| question_content
stringlengths 97
7.2k
| platform
stringclasses 1
value | question_id
stringclasses 44
values | contest_id
int64 0
1.01k
| contest_date
stringclasses 1
value | starter_code
stringclasses 1
value | difficulty
stringclasses 3
values | output
stringlengths 87
13.3k
| code
stringlengths 73
7.57k
| verdict
stringclasses 1
value | state
stringlengths 1
5.99k
| t
int64 2
1.7k
| id
int64 0
31k
| accepted
bool 2
classes | completion
stringlengths 3
234
| null_code
sequencelengths 1
1
| input_ids_code
sequencelengths 2k
2k
| attention_mask_code
sequencelengths 2k
2k
| input_ids_null_code
sequencelengths 1
1
| attention_mask_null_code
sequencelengths 1
1
| input_ids_state
sequencelengths 2k
2k
| attention_mask_state
sequencelengths 2k
2k
| input_ids_state_ar
sequencelengths 2k
2k
| attention_mask_state_ar
sequencelengths 2k
2k
| input_ids_next_state
sequencelengths 2k
2k
| attention_mask_next_state
sequencelengths 2k
2k
| code_z
sequencelengths 4.1k
4.1k
| state_z
sequencelengths 4.1k
4.1k
| state_ar_z
sequencelengths 4.1k
4.1k
| null_code_z
sequencelengths 1
1
| next_state_z
sequencelengths 4.1k
4.1k
| empowerment
float64 -45.53
9.92
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Make Palindrome
| "A string is called palindrome if it reads the same from left to right and from right to left. For e(...TRUNCATED)
|
codeforces
|
C
| 600
|
2025-01-20T20:58:05.360400
|
medium
| "```python\nfrom sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts(...TRUNCATED)
| "from sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts = [0] * 26(...TRUNCATED)
|
OK
| "from sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts = [0] * 26(...TRUNCATED)
| 469
| 3,674
| false
| " new_counts[i] == 1:\n first_row_left = i\n break\n\n first_ro(...TRUNCATED)
| ["from sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts = [0] * 2(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,17(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [-0.20084796845912933,-2.2107837200164795,0.058035604655742645,-2.528590679168701,3.6862730979919434(...TRUNCATED)
| [0.6730853319168091,-2.1970438957214355,0.5639436841011047,-2.2395081520080566,3.758328914642334,-0.(...TRUNCATED)
| [0.5682927966117859,-2.04583740234375,0.48432883620262146,-2.294022798538208,3.7864716053009033,-0.1(...TRUNCATED)
| [[0.05097392573952675,-1.8000590801239014,1.890791416168213,-2.677229642868042,4.415539741516113,0.4(...TRUNCATED)
| [0.701180100440979,-2.171513080596924,0.5669912695884705,-2.3087146282196045,3.700845718383789,-0.12(...TRUNCATED)
| -45.526138
|
|
Make Palindrome
| "A string is called palindrome if it reads the same from left to right and from right to left. For e(...TRUNCATED)
|
codeforces
|
C
| 600
|
2025-01-20T20:58:05.360400
|
medium
| "```python\nfrom sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts(...TRUNCATED)
| "from sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts = [0] * 26(...TRUNCATED)
|
OK
| "from sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts = [0] * 26(...TRUNCATED)
| 469
| 3,674
| true
| " i == middle_idx:\n middle_necessary += 1\n if new_counts[i] >= 1:\n (...TRUNCATED)
| ["from sys import stdin, stdout\n\ns = stdin.readline().strip()\nn = len(s)\n\nchar_counts = [0] * 2(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,17(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,82,284,32469,32900,1020,13406,746,77,284,2479,1161,696,179(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [-0.20084796845912933,-2.2107837200164795,0.058035604655742645,-2.528590679168701,3.6862730979919434(...TRUNCATED)
| [0.6730853319168091,-2.1970438957214355,0.5639436841011047,-2.2395081520080566,3.758328914642334,-0.(...TRUNCATED)
| [0.701180100440979,-2.171513080596924,0.5669912695884705,-2.3087146282196045,3.700845718383789,-0.12(...TRUNCATED)
| [[-0.1279068887233734,-1.891279697418213,2.184593677520752,-2.898177146911621,4.383613586425781,0.55(...TRUNCATED)
| [0.6600084900856018,-2.1205997467041016,0.6113126277923584,-2.233736038208008,3.7165687084198,-0.124(...TRUNCATED)
| -45.045216
|
|
Фото на память - 2 (round version)
| "Прошло много лет, и на вечеринке снова встретились *n* д(...TRUNCATED)
|
codeforces
|
B
| 524
|
2025-01-20T20:58:05.360400
|
medium
| "```python\nimport sys\n\n# Читаем входные данные из стандартного (...TRUNCATED)
| "import sys\n\n# Читаем входные данные из стандартного потока(...TRUNCATED)
|
OK
| "import sys\n\n# Читаем входные данные из стандартного потока(...TRUNCATED)
| 345
| 4,001
| false
| "\n if total_steps > min(steps1, steps2):\n total_steps = min(steps1, steps2)\n (...TRUNCATED)
| ["import sys\n\n# Читаем входные данные из стандартного поток(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,2(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [-0.5052342414855957,-1.9690240621566772,0.04920821636915207,-2.481187105178833,3.822477102279663,-0(...TRUNCATED)
| [-0.9092668890953064,-2.4143195152282715,-0.7104711532592773,-2.8146097660064697,3.60932993888855,-0(...TRUNCATED)
| [-0.6319345235824585,-2.2359023094177246,-0.673667311668396,-2.684537410736084,3.760261297225952,-0.(...TRUNCATED)
| [[-0.5894594192504883,-1.975628137588501,0.19573889672756195,-2.5662150382995605,4.374635696411133,0(...TRUNCATED)
| [-0.7185210585594177,-2.2275960445404053,-0.3195019066333771,-2.5993213653564453,3.699848175048828,-(...TRUNCATED)
| -45.016266
|
|
Journey
| "The territory of Berland is represented by a rectangular field *n*<=×<=*m* in size. The king of Be(...TRUNCATED)
|
codeforces
|
D
| 43
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nfrom sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = (...TRUNCATED)
| "from sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = []\nfor i i(...TRUNCATED)
|
OK
| "from sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = []\nfor i i(...TRUNCATED)
| 854
| 20,713
| false
| " (x, y)!= border[:2]:\n x, y = border[2], border[3]\n\nstdout.write(str(min_teleporters)+'\\(...TRUNCATED)
| ["from sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = []\nfor i (...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [1.216104507446289,-1.9151363372802734,1.122100591659546,-3.066751003265381,4.1140456199646,0.085077(...TRUNCATED)
| [0.9322808980941772,-2.085050344467163,0.9267375469207764,-3.107870101928711,4.132992267608643,-0.05(...TRUNCATED)
| [0.6727446913719177,-2.2854554653167725,0.9097649455070496,-3.29925274848938,4.155068397521973,0.105(...TRUNCATED)
| [[-0.1294284462928772,-1.760571837425232,1.8544563055038452,-3.0860934257507324,3.742215394973755,0.(...TRUNCATED)
| [1.056969404220581,-1.932421326637268,1.039670467376709,-3.0838372707366943,4.0631022453308105,-0.04(...TRUNCATED)
| -43.963982
|
|
Circling Round Treasures
| "You have a map as a rectangle table. Each cell of the table is either an obstacle, or a treasure wi(...TRUNCATED)
|
codeforces
|
C
| 375
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\ninput = sys.stdin.readline\n\ndef sign(x, y):\n if x <= 0 and y <= 0:\n (...TRUNCATED)
| "import sys\ninput = sys.stdin.readline\n\ndef sign(x, y):\n if x <= 0 and y <= 0:\n retur(...TRUNCATED)
|
OK
| "import sys\ninput = sys.stdin.readline\n\ndef sign(x, y):\n if x <= 0 and y <= 0:\n retur(...TRUNCATED)
| 1,007
| 2,730
| false
|
y_prev
for v in range(n * m):
if v no
| ["import sys\ninput = sys.stdin.readline\n\ndef sign(x, y):\n if x <= 0 and y <= 0:\n retu(...TRUNCATED)
| [128000,475,5826,198,1379,284,5826,44284,32900,271,755,1879,2120,11,379,997,262,422,865,2717,220,15,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,475,5826,198,1379,284,5826,44284,32900,271,755,1879,2120,11,379,997,262,422,865,2717,220,15(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,475,5826,198,1379,284,5826,44284,32900,271,755,1879,2120,11,379,997,262,422,865,2717,220,15,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,198,1379,284,5826,44284,32900,271,755,1879,2120,11,379,997,262,422,865,2717,220,15,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,198,1379,284,5826,44284,32900,271,755,1879,2120,11,379,997,262,422,865,2717,220,15,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [0.9897826910018921,-1.449157476425171,1.6041334867477417,-2.617680072784424,4.84980583190918,0.5704(...TRUNCATED)
| [0.917809009552002,-1.5169358253479004,1.4737918376922607,-2.661128282546997,4.8714070320129395,0.41(...TRUNCATED)
| [0.990991473197937,-1.5171384811401367,1.78135347366333,-2.7430896759033203,4.9362263679504395,0.531(...TRUNCATED)
| [[-2.132581949234009,2.231454610824585,0.6372770667076111,3.10880970954895,2.597479820251465,2.45031(...TRUNCATED)
| [0.9006415605545044,-1.5434292554855347,1.4812361001968384,-2.6213536262512207,4.924943447113037,0.4(...TRUNCATED)
| -43.45335
|
|
Фото на память - 2 (round version)
| "Прошло много лет, и на вечеринке снова встретились *n* д(...TRUNCATED)
|
codeforces
|
B
| 524
|
2025-01-20T20:58:05.360400
|
medium
| "```python\nimport sys\n\n# Читаем входные данные из стандартного (...TRUNCATED)
| "import sys\n\n# Читаем входные данные из стандартного потока(...TRUNCATED)
|
OK
| "import sys\n\n# Читаем входные данные из стандартного потока(...TRUNCATED)
| 345
| 4,001
| true
| "\n\n total_steps += min(steps1, steps2)\n return total_steps\n\n# минимум по в(...TRUNCATED)
| ["import sys\n\n# Читаем входные данные из стандартного поток(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,2(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,271,2,100876,9542,32062,109941,44065,67181,23934,117692,39900,81803,74351,198,77,28(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [-0.5052342414855957,-1.9690240621566772,0.04920821636915207,-2.481187105178833,3.822477102279663,-0(...TRUNCATED)
| [-0.9092668890953064,-2.4143195152282715,-0.7104711532592773,-2.8146097660064697,3.60932993888855,-0(...TRUNCATED)
| [-0.7185210585594177,-2.2275960445404053,-0.3195019066333771,-2.5993213653564453,3.699848175048828,-(...TRUNCATED)
| [[-0.34684208035469055,-1.9521470069885254,0.18647558987140656,-2.525470495223999,4.192148208618164,(...TRUNCATED)
| [-0.4199398159980774,-2.164260149002075,-0.17478930950164795,-2.5872068405151367,3.8656013011932373,(...TRUNCATED)
| -42.827095
|
|
Cowslip Collections
| "In an attempt to make peace with the Mischievious Mess Makers, Bessie and Farmer John are planning (...TRUNCATED)
|
codeforces
|
F
| 645
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nfrom collections import defaultdict\nfrom math import gcd\nfrom functools import reduce\(...TRUNCATED)
| "from collections import defaultdict\nfrom math import gcd\nfrom functools import reduce\ninput()\nn(...TRUNCATED)
|
OK
|
from
| 2
| 27,232
| false
| " CSM import CSModel as model\nfrom CSM.data import MAF, FANCY, LOC, DO\nimport numpy as np\nfrom PP(...TRUNCATED)
| ["from azure.cli.core.commands.parameters import resource_group_name_type\nfrom azext_ariot.custom i(...TRUNCATED)
| [128000,1527,15661,1179,44008,198,1527,7033,1179,45958,198,1527,57566,1179,8108,198,1379,746,77,11,5(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,1527,1527,77630,57718,4976,35002,28427,1179,5211,6422,1292,1857,198,1527,12657,428,62,2850,(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,1527,128001,128001,128001,128001,128001,128001,128001,128001,128001,128001,128001,128001,128(...TRUNCATED)
| [1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED)
| [128000,1527,356,9691,1179,10211,1747,439,1646,198,1527,356,9691,2245,1179,386,8440,11,435,27267,56,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0(...TRUNCATED)
| [128000,1527,15661,1179,44008,198,1527,7033,1179,45958,198,1527,57566,1179,8108,198,1379,746,77,11,5(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED)
| [1.0713251829147339,-2.6372807025909424,1.5895856618881226,-2.925123929977417,4.01276159286499,0.457(...TRUNCATED)
| [-2.939093828201294,0.39931201934814453,-0.5338876843452454,-0.9171468019485474,6.125591278076172,-0(...TRUNCATED)
| [2.3447470664978027,-1.911003589630127,-0.036970093846321106,-2.7306859493255615,3.9549248218536377,(...TRUNCATED)
| [[-0.5118337869644165,-2.5866758823394775,0.6222869753837585,-1.7686264514923096,3.260246753692627,1(...TRUNCATED)
| [1.9693434238433838,-1.8164145946502686,-0.39892643690109253,-2.1981797218322754,4.661479473114014,-(...TRUNCATED)
| -42.416355
|
|
Journey
| "The territory of Berland is represented by a rectangular field *n*<=×<=*m* in size. The king of Be(...TRUNCATED)
|
codeforces
|
D
| 43
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nfrom sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = (...TRUNCATED)
| "from sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = []\nfor i i(...TRUNCATED)
|
OK
| "from sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = []\nfor i i(...TRUNCATED)
| 854
| 20,713
| true
| " len(cur_path)!= path_length + 2:\n print(-1)\n exit()\n\nprint(min_teleporters)\nfor(...TRUNCATED)
| ["from sys import stdin, stdout\n\nn, m = map(int, stdin.readline().split())\n\nborders = []\nfor i (...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,1527,5826,1179,32469,11,20676,271,77,11,296,284,2472,1577,11,32469,32900,1020,7105,12647,65,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [1.216104507446289,-1.9151363372802734,1.122100591659546,-3.066751003265381,4.1140456199646,0.085077(...TRUNCATED)
| [0.9322808980941772,-2.085050344467163,0.9267375469207764,-3.107870101928711,4.132992267608643,-0.05(...TRUNCATED)
| [1.056969404220581,-1.932421326637268,1.039670467376709,-3.0838372707366943,4.0631022453308105,-0.04(...TRUNCATED)
| [[-0.39160341024398804,-2.0406785011291504,1.8040013313293457,-2.8028852939605713,3.7218778133392334(...TRUNCATED)
| [1.216104507446289,-1.9151363372802734,1.122100591659546,-3.066751003265381,4.1140456199646,0.085077(...TRUNCATED)
| -41.979988
|
|
Snake
| "Let us remind you the rules of a very popular game called \"Snake\" (or sometimes \"Boa\", \"Python(...TRUNCATED)
|
codeforces
|
D
| 225
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\nimport heapq\n\ndx = [0, 1, 0, -1]\ndy = [1, 0, -1, 0]\n\ndef bfs(x, y, leng(...TRUNCATED)
| "import sys\nimport heapq\n\ndx = [0, 1, 0, -1]\ndy = [1, 0, -1, 0]\n\ndef bfs(x, y, length, visited(...TRUNCATED)
|
OK
| "import sys\nimport heapq\n\ndx = [0, 1, 0, -1]\ndy = [1, 0, -1, 0]\n\ndef bfs(x, y, length, visited(...TRUNCATED)
| 398
| 27,660
| false
|
[apple_position[0]][apple_position[1]], (apple_position[0] + dx[(i + 2) % 4], a
| ["import sys\nimport heapq\n\ndx = [0, 1, 0, -1]\ndy = [1, 0, -1, 0]\n\ndef bfs(x, y, length, visite(...TRUNCATED)
| [128000,475,5826,198,475,89622,271,13009,284,510,15,11,220,16,11,220,15,11,482,16,933,10470,284,510,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,475,5826,198,475,89622,271,13009,284,510,15,11,220,16,11,220,15,11,482,16,933,10470,284,510(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,475,5826,198,475,89622,271,13009,284,510,15,11,220,16,11,220,15,11,482,16,933,10470,284,510,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,198,475,89622,271,13009,284,510,15,11,220,16,11,220,15,11,482,16,933,10470,284,510,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,475,5826,198,475,89622,271,13009,284,510,15,11,220,16,11,220,15,11,482,16,933,10470,284,510,(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [1.2946840524673462,-1.9686082601547241,0.21182218194007874,-1.8315857648849487,4.754154682159424,0.(...TRUNCATED)
| [1.3615219593048096,-2.3516249656677246,0.18008363246917725,-1.9492841958999634,4.901387691497803,0.(...TRUNCATED)
| [1.423022747039795,-2.199309825897217,0.45377132296562195,-1.8163740634918213,4.920845985412598,0.34(...TRUNCATED)
| [[0.8280865550041199,-1.6593674421310425,1.445926308631897,-0.887365460395813,4.79176664352417,0.826(...TRUNCATED)
| [1.3655704259872437,-2.2296981811523438,0.21263237297534943,-1.9650315046310425,4.85178279876709,0.3(...TRUNCATED)
| -41.599388
|
|
Football Championship
| "Any resemblance to any real championship and sport is accidental.\n\nThe Berland National team take(...TRUNCATED)
|
codeforces
|
C
| 200
|
2025-01-20T20:58:05.360400
|
medium
| "```python\nberland_points = 0\nberland_games = 2\nberland_goals = 0\nberland_missed_goals = 0\n\not(...TRUNCATED)
| "berland_points = 0\nberland_games = 2\nberland_goals = 0\nberland_missed_goals = 0\n\nother_teams =(...TRUNCATED)
|
OK
| "berland_points = 0\nberland_games = 2\nberland_goals = 0\nberland_missed_goals = 0\n\nother_teams =(...TRUNCATED)
| 1,310
| 12,618
| false
| ") if point[\"name\"] == \"BERLAND\")\n\n other_teams = [{\n other_teams_point[\"name\"]: (...TRUNCATED)
| ["berland_points = 0\nberland_games = 2\nberland_goals = 0\nberland_missed_goals = 0\n\nother_teams (...TRUNCATED)
| [128000,655,1974,13224,284,220,15,198,655,1974,68470,284,220,17,198,655,1974,97344,284,220,15,198,65(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [[128000,655,1974,13224,284,220,15,198,655,1974,68470,284,220,17,198,655,1974,97344,284,220,15,198,6(...TRUNCATED)
| [[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,(...TRUNCATED)
| [128000,655,1974,13224,284,220,15,198,655,1974,68470,284,220,17,198,655,1974,97344,284,220,15,198,65(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,655,1974,13224,284,220,15,198,655,1974,68470,284,220,17,198,655,1974,97344,284,220,15,198,65(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [128000,655,1974,13224,284,220,15,198,655,1974,68470,284,220,17,198,655,1974,97344,284,220,15,198,65(...TRUNCATED)
| [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
| [0.33688071370124817,-0.4796006679534912,1.559325098991394,-3.1266207695007324,3.965238094329834,0.5(...TRUNCATED)
| [0.5134463310241699,-0.7671293020248413,1.2450135946273804,-3.2448487281799316,3.731252670288086,1.3(...TRUNCATED)
| [0.5898634195327759,-0.5584575533866882,1.3314828872680664,-3.235452890396118,3.7685909271240234,1.4(...TRUNCATED)
| [[-0.5377412438392639,0.9721713066101074,1.1250860691070557,-0.5030418634414673,0.08410432934761047,(...TRUNCATED)
| [0.4963166117668152,-0.6895215511322021,1.3104221820831299,-3.2896649837493896,3.800428867340088,1.4(...TRUNCATED)
| -41.554909
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 59