question_title
stringlengths 2
58
| question_content
stringlengths 92
7.2k
| platform
stringclasses 1
value | question_id
stringclasses 45
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
8.17k
| verdict
stringclasses 1
value | state
stringlengths 1
6.16k
| t
int64 2
1.76k
| id
int64 0
29.5k
| accepted
bool 1
class | completion
stringlengths 30
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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Two Subsequences
| "On an IT lesson Valera studied data compression. The teacher told about a new method, which we shal(...TRUNCATED)
|
codeforces
|
E
| 83
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\nimport functools\nfrom itertools import accumulate\n\ndef find_min_length(se(...TRUNCATED)
| "import sys\nimport functools\nfrom itertools import accumulate\n\ndef find_min_length(seq):\n @f(...TRUNCATED)
|
OK
| "import sys\nimport functools\nfrom itertools import accumulate\n\ndef find_min_length(seq):\n @f(...TRUNCATED)
| 117
| 0
| true
|
* (max_len + 1) for _ in range(n+1)]
for i in range(1, n+1):
for
| ["import sys\nimport functools\nfrom itertools import accumulate\n\ndef find_min_length(seq):\n @(...TRUNCATED)
| [128000,475,5826,198,475,57566,198,1527,42431,1179,47376,271,755,1505,7408,5228,35920,997,262,571,12(...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,57566,198,1527,42431,1179,47376,271,755,1505,7408,5228,35920,997,262,571,1(...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,57566,198,1527,42431,1179,47376,271,755,1505,7408,5228,35920,997,262,571,12(...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,57566,198,1527,42431,1179,47376,271,755,1505,7408,5228,35920,997,262,571,12(...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,57566,198,1527,42431,1179,47376,271,755,1505,7408,5228,35920,997,262,571,12(...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.4640586376190186,-2.583325147628784,0.7224398851394653,-2.5610082149505615,4.694009780883789,-0.3(...TRUNCATED)
| [2.0853686332702637,-2.200611114501953,-0.48036620020866394,-2.4819180965423584,4.4275617599487305,0(...TRUNCATED)
| [1.2060329914093018,-2.674119234085083,0.37573596835136414,-2.9353702068328857,4.641716003417969,0.2(...TRUNCATED)
| [[1.837541103363037,-3.3680193424224854,1.491086483001709,-2.22656512260437,4.559560775756836,0.6574(...TRUNCATED)
| [1.2559731006622314,-2.7870371341705322,0.457960844039917,-2.6709442138671875,4.599116325378418,-0.0(...TRUNCATED)
|
|
Letter
| "Patrick has just finished writing a message to his sweetheart Stacey when he noticed that the messa(...TRUNCATED)
|
codeforces
|
C
| 180
|
2025-01-20T20:58:05.360400
|
medium
| "```python\ndef solve(message):\n count_upper = 0\n count_lower = 0\n operations = 0\n\n (...TRUNCATED)
| "def solve(message):\n count_upper = 0\n count_lower = 0\n operations = 0\n\n for char i(...TRUNCATED)
|
OK
| "def solve(message):\n count_upper = 0\n count_lower = 0\n operations = 0\n\n for char i(...TRUNCATED)
| 64
| 1
| true
| " for i in range(len(message)):\n if message[i].isupper():\n if index > count_lowe(...TRUNCATED)
| ["def solve(message):\n count_upper = 0\n count_lower = 0\n operations = 0\n\n for char (...TRUNCATED)
| [128000,755,11886,7483,997,262,1797,35545,284,220,15,198,262,1797,31525,284,220,15,198,262,7677,284,(...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,755,11886,7483,997,262,1797,35545,284,220,15,198,262,1797,31525,284,220,15,198,262,7677,284(...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,755,11886,7483,997,262,1797,35545,284,220,15,198,262,1797,31525,284,220,15,198,262,7677,284,(...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,755,11886,7483,997,262,1797,35545,284,220,15,198,262,1797,31525,284,220,15,198,262,7677,284,(...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,755,11886,7483,997,262,1797,35545,284,220,15,198,262,1797,31525,284,220,15,198,262,7677,284,(...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.6258963346481323,-1.1763664484024048,-0.009583056904375553,-2.8471672534942627,5.950598239898682,(...TRUNCATED)
| [-0.4246155321598053,-1.9850506782531738,-1.1416499614715576,-2.305617332458496,5.4896769523620605,0(...TRUNCATED)
| [-0.030961232259869576,-1.8627585172653198,-0.22592036426067352,-2.5181233882904053,5.58629083633422(...TRUNCATED)
| [[0.2661276161670685,-1.413609266281128,1.243497371673584,-3.0755133628845215,5.262683391571045,-0.5(...TRUNCATED)
| [0.14946593344211578,-1.7563011646270752,0.023245571181178093,-2.498385429382324,5.434773921966553,-(...TRUNCATED)
|
|
Burning Midnight Oil
| "One day a highly important task was commissioned to Vasya — writing a program in a night. The pro(...TRUNCATED)
|
codeforces
|
B
| 165
|
2025-01-20T20:58:05.360400
|
medium
| "```python\n# Read input from the user\nn, k = map(int, input().split())\n\n# Initialize the minimum(...TRUNCATED)
| "# Read input from the user\nn, k = map(int, input().split())\n\n# Initialize the minimum allowed va(...TRUNCATED)
|
OK
| "# Read input from the user\nn, k = map(int, input().split())\n\n# Initialize the minimum allowed va(...TRUNCATED)
| 67
| 2
| true
| " equal to n\nwhile total_lines < n:\n # Increment the minimum allowed value of v\n min_v += 1(...TRUNCATED)
| ["# Read input from the user\nn, k = map(int, input().split())\n\n# Initialize the minimum allowed v(...TRUNCATED)
| [128000,2,4557,1988,505,279,1217,198,77,11,597,284,2472,1577,11,1988,1020,7105,12647,2,9185,279,8187(...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,2,4557,1988,505,279,1217,198,77,11,597,284,2472,1577,11,1988,1020,7105,12647,2,9185,279,818(...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,2,4557,1988,505,279,1217,198,77,11,597,284,2472,1577,11,1988,1020,7105,12647,2,9185,279,8187(...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,2,4557,1988,505,279,1217,198,77,11,597,284,2472,1577,11,1988,1020,7105,12647,2,9185,279,8187(...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,2,4557,1988,505,279,1217,198,77,11,597,284,2472,1577,11,1988,1020,7105,12647,2,9185,279,8187(...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.011787815019488335,-1.4198698997497559,3.0539345741271973,-4.237892150878906,4.539243221282959,1.(...TRUNCATED)
| [0.7478479146957397,-2.9063973426818848,0.7042098641395569,-2.4564590454101562,4.702692985534668,-0.(...TRUNCATED)
| [0.9374665021896362,-2.4101343154907227,1.5489020347595215,-3.299028158187866,4.603964328765869,0.15(...TRUNCATED)
| [[0.7978115081787109,-2.518608808517456,4.64329719543457,-4.360215187072754,3.7945396900177,1.526310(...TRUNCATED)
| [0.2495720535516739,-1.9481557607650757,2.380248546600342,-4.059791088104248,4.5590105056762695,0.71(...TRUNCATED)
|
|
Little Elephant and Strings
| "The Little Elephant loves strings very much. \n\nHe has an array *a* from *n* strings, consisting o(...TRUNCATED)
|
codeforces
|
E
| 204
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\ninput = sys.stdin.readline\nfrom collections import defaultdict, deque\n\ncl(...TRUNCATED)
| "import sys\ninput = sys.stdin.readline\nfrom collections import defaultdict, deque\n\nclass ACtrie:(...TRUNCATED)
|
OK
| "import sys\ninput = sys.stdin.readline\nfrom collections import defaultdict, deque\n\nclass ACtrie:(...TRUNCATED)
| 251
| 3
| true
|
n, k = map(int, input().split())
a = [input().strip() for _ in range(n)]
trie = AC
| ["import sys\ninput = sys.stdin.readline\nfrom collections import defaultdict, deque\n\nclass ACtrie(...TRUNCATED)
| [128000,475,5826,198,1379,284,5826,44284,32900,198,1527,15661,1179,44008,11,43050,271,1058,10807,910(...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,198,1527,15661,1179,44008,11,43050,271,1058,10807,91(...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,198,1527,15661,1179,44008,11,43050,271,1058,10807,910(...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,198,1527,15661,1179,44008,11,43050,271,1058,10807,910(...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,198,1527,15661,1179,44008,11,43050,271,1058,10807,910(...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.711864709854126,-1.1091102361679077,1.2228610515594482,-2.1884992122650146,5.158839702606201,-1.6(...TRUNCATED)
| [0.9312649965286255,-1.2720056772232056,0.6551890969276428,-2.1857290267944336,5.063820838928223,-1.(...TRUNCATED)
| [0.7209969162940979,-1.2717026472091675,0.8712559342384338,-2.131234884262085,5.059521198272705,-1.6(...TRUNCATED)
| [[1.5389846563339233,-1.250241756439209,1.494165062904358,-1.7075471878051758,5.25449800491333,-1.32(...TRUNCATED)
| [0.5134725570678711,-1.271562099456787,0.9882786273956299,-2.105677604675293,5.0081987380981445,-1.6(...TRUNCATED)
|
|
Coin Troubles
| "In the Isle of Guernsey there are *n* different types of coins. For each *i* (1<=≤<=*i*<=≤<=*n*(...TRUNCATED)
|
codeforces
|
C
| 283
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\n\n# Define the modulo value\nMOD = 1000000007\n\n# Define a class to represe(...TRUNCATED)
| "import sys\n\n# Define the modulo value\nMOD = 1000000007\n\n# Define a class to represent a monoid(...TRUNCATED)
|
OK
| "import sys\n\n# Define the modulo value\nMOD = 1000000007\n\n# Define a class to represent a monoid(...TRUNCATED)
| 359
| 4
| true
|
= MapFunction(cmap[i + 1].m, cmap[i + 1].c, r // gcd(r, coins[i]), coins[i
| ["import sys\n\n# Define the modulo value\nMOD = 1000000007\n\n# Define a class to represent a monoi(...TRUNCATED)
| [128000,475,5826,271,2,19127,279,60964,907,198,27557,284,220,1041,931,931,22,271,2,19127,264,538,311(...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,19127,279,60964,907,198,27557,284,220,1041,931,931,22,271,2,19127,264,538,31(...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,19127,279,60964,907,198,27557,284,220,1041,931,931,22,271,2,19127,264,538,311(...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,19127,279,60964,907,198,27557,284,220,1041,931,931,22,271,2,19127,264,538,311(...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,19127,279,60964,907,198,27557,284,220,1041,931,931,22,271,2,19127,264,538,311(...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.6887634992599487,-3.026148557662964,2.3325071334838867,-2.387594223022461,5.752484321594238,-1.50(...TRUNCATED)
| [1.0624572038650513,-3.7348215579986572,2.447305679321289,-2.8902039527893066,5.76898717880249,-1.36(...TRUNCATED)
| [1.2843735218048096,-3.5733633041381836,2.4371485710144043,-2.5695712566375732,5.406569480895996,-1.(...TRUNCATED)
| [[1.4652153253555298,-3.6624860763549805,2.446667194366455,-1.3747353553771973,4.930864334106445,-0.(...TRUNCATED)
| [1.3386598825454712,-3.5355453491210938,2.5309438705444336,-2.6223368644714355,5.417418003082275,-1.(...TRUNCATED)
|
|
Vanya and Fence
| "Vanya and his friends are walking along the fence of height *h* and they do not want the guard to n(...TRUNCATED)
|
codeforces
|
A
| 677
|
2025-01-20T20:58:05.360400
|
easy
| "```python\nn, h = map(int, input().split())\na = list(map(int, input().split()))\n\n# Sort the arra(...TRUNCATED)
| "n, h = map(int, input().split())\na = list(map(int, input().split()))\n\n# Sort the array in descen(...TRUNCATED)
|
OK
|
n, h = map(int, input
| 9
| 5
| true
| "().split())\na = list(map(int, input().split()))\n\n# Sort the array in descending order to priorit(...TRUNCATED)
| ["n, h = map(int, input().split())\narr = list(map(int, input().split()))\n\n# pair[i] 가 i번째 (...TRUNCATED)
| [128000,77,11,305,284,2472,1577,11,1988,1020,7105,2455,64,284,1160,9325,1577,11,1988,1020,7105,51062(...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,77,11,305,284,2472,1577,11,1988,77,11,305,284,2472,1577,11,1988,1020,7105,2455,1138,284,116(...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,77,11,305,284,2472,1577,11,1988,128001,128001,128001,128001,128001,128001,128001,128001,1280(...TRUNCATED)
| [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,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,77,11,305,284,2472,1577,11,1988,1020,7105,2455,64,284,1160,9325,1577,11,1988,1020,7105,51062(...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,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED)
| [128000,77,11,305,284,2472,1577,11,1988,1020,7105,2455,64,284,1160,9325,1577,11,1988,1020,7105,51062(...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.3556345999240875,-3.020228147506714,2.9288218021392822,-3.8246891498565674,4.197747230529785,1.58(...TRUNCATED)
| [0.5541749000549316,-2.260564088821411,-1.1420981884002686,-1.7786266803741455,3.8716583251953125,-2(...TRUNCATED)
| [1.18109929561615,-3.898876190185547,-0.5562641024589539,-2.37139630317688,4.62029504776001,-1.09983(...TRUNCATED)
| [[0.453827440738678,-3.147679090499878,-1.3554418087005615,-2.2912940979003906,5.267545223236084,0.6(...TRUNCATED)
| [0.9196316599845886,-3.930576801300049,0.19728168845176697,-2.4253311157226562,4.525309085845947,-0.(...TRUNCATED)
|
|
Berland Elections
| "The elections to Berland parliament are happening today. Voting is in full swing!\n\nTotally there (...TRUNCATED)
|
codeforces
|
F
| 847
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nfrom collections import defaultdict\nimport sys\n\ndef solution():\n n, k, m, a = map(...TRUNCATED)
| "from collections import defaultdict\nimport sys\n\ndef solution():\n n, k, m, a = map(int, input(...TRUNCATED)
|
OK
| "from collections import defaultdict\nimport sys\n\ndef solution():\n n, k, m, a = map(int, input(...TRUNCATED)
| 211
| 6
| true
| " seats[i] = 3\n\n result = [str(seats[i]) for i in range(n)]\n print(\" \".join(re(...TRUNCATED)
| ["from collections import defaultdict\nimport sys\n\ndef solution():\n n, k, m, a = map(int, inpu(...TRUNCATED)
| [128000,1527,15661,1179,44008,198,475,5826,271,755,6425,4019,262,308,11,597,11,296,11,264,284,2472,1(...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,15661,1179,44008,198,475,5826,271,755,6425,4019,262,308,11,597,11,296,11,264,284,2472,(...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,15661,1179,44008,198,475,5826,271,755,6425,4019,262,308,11,597,11,296,11,264,284,2472,1(...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,15661,1179,44008,198,475,5826,271,755,6425,4019,262,308,11,597,11,296,11,264,284,2472,1(...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,15661,1179,44008,198,475,5826,271,755,6425,4019,262,308,11,597,11,296,11,264,284,2472,1(...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.5595589876174927,-1.6960655450820923,0.5451129078865051,-2.270554542541504,5.819985866546631,-1.3(...TRUNCATED)
| [0.6831814646720886,-1.9229649305343628,0.11264516413211823,-2.5381205081939697,5.512720584869385,-0(...TRUNCATED)
| [0.7246075868606567,-1.8156702518463135,0.20743617415428162,-2.4293673038482666,5.741546630859375,-1(...TRUNCATED)
| [[0.9689421653747559,-2.233973741531372,1.9620341062545776,-2.163881540298462,5.982646465301514,-0.5(...TRUNCATED)
| [0.5595589876174927,-1.6960655450820923,0.5451129078865051,-2.270554542541504,5.819985866546631,-1.3(...TRUNCATED)
|
|
Ice Skating
| "Bajtek is learning to skate on ice. He's a beginner, so his only mode of transportation is pushing (...TRUNCATED)
|
codeforces
|
A
| 217
|
2025-01-20T20:58:05.360400
|
medium
| "```python\nimport sys\nfrom collections import deque\nfrom typing import Set, List\n\ndef read_inpu(...TRUNCATED)
| "import sys\nfrom collections import deque\nfrom typing import Set, List\n\ndef read_inputs() -> (Se(...TRUNCATED)
|
OK
| "import sys\nfrom collections import deque\nfrom typing import Set, List\n\ndef read_inputs() -> (Se(...TRUNCATED)
| 277
| 7
| true
| " return True\n\ndef is_connected(graph: Dict[Tuple[Tuple[int, int], Tuple[int, int]], int], n: int)(...TRUNCATED)
| ["import sys\nfrom collections import deque\nfrom typing import Set, List\n\ndef read_inputs() -> (S(...TRUNCATED)
| [128000,475,5826,198,1527,15661,1179,43050,198,1527,20061,1179,2638,11,1796,271,755,1373,29657,368,1(...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,1527,15661,1179,43050,198,1527,20061,1179,2638,11,1796,271,755,1373,29657,368,(...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,1527,15661,1179,43050,198,1527,20061,1179,2638,11,1796,271,755,1373,29657,368,1(...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,1527,15661,1179,43050,198,1527,20061,1179,2638,11,1796,271,755,1373,29657,368,1(...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,1527,15661,1179,43050,198,1527,20061,1179,2638,11,1796,271,755,1373,29657,368,1(...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.389912724494934,-1.6696439981460571,1.0703339576721191,-1.451596736907959,5.333474636077881,-1.37(...TRUNCATED)
| [1.8190038204193115,-2.0299901962280273,0.46031326055526733,-2.015974521636963,5.535417556762695,-1.(...TRUNCATED)
| [1.8866603374481201,-2.1135823726654053,0.7518423199653625,-1.9229955673217773,5.520236968994141,-1.(...TRUNCATED)
| [[1.3961178064346313,-2.381147623062134,2.043405771255493,-1.1926194429397583,6.3646416664123535,-0.(...TRUNCATED)
| [1.8260750770568848,-2.0737428665161133,0.795921266078949,-1.8855358362197876,5.485171318054199,-1.7(...TRUNCATED)
|
|
Points
| "Pete and Bob invented a new interesting game. Bob takes a sheet of paper and locates a Cartesian co(...TRUNCATED)
|
codeforces
|
D
| 19
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\n\nclass Point:\n def __init__(self, x, y):\n self.x = x\n s(...TRUNCATED)
| "import sys\n\nclass Point:\n def __init__(self, x, y):\n self.x = x\n self.y = y\n(...TRUNCATED)
|
OK
| "import sys\n\nclass Point:\n def __init__(self, x, y):\n self.x = x\n self.y = y\n(...TRUNCATED)
| 242
| 8
| true
| " tree[p] = None\n else:\n tree[p] = p\n return\n\n mid = (lo + hi) // 2(...TRUNCATED)
| ["import sys\n\nclass Point:\n def __init__(self, x, y):\n self.x = x\n self.y = y\(...TRUNCATED)
| [128000,475,5826,271,1058,5236,512,262,711,1328,2381,3889,726,11,865,11,379,997,286,659,2036,284,865(...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,1058,5236,512,262,711,1328,2381,3889,726,11,865,11,379,997,286,659,2036,284,86(...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,1058,5236,512,262,711,1328,2381,3889,726,11,865,11,379,997,286,659,2036,284,865(...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,1058,5236,512,262,711,1328,2381,3889,726,11,865,11,379,997,286,659,2036,284,865(...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,1058,5236,512,262,711,1328,2381,3889,726,11,865,11,379,997,286,659,2036,284,865(...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.362427830696106,-2.5268008708953857,1.4857901334762573,-3.2104225158691406,5.525333881378174,-0.6(...TRUNCATED)
| [1.1221307516098022,-2.3131473064422607,1.1336607933044434,-3.0566587448120117,5.98066520690918,-0.6(...TRUNCATED)
| [1.2008544206619263,-2.2096316814422607,1.1700607538223267,-3.054661512374878,5.875905513763428,-0.7(...TRUNCATED)
| [[1.25249183177948,-1.8465032577514648,1.8737446069717407,-2.102121591567993,5.751675605773926,-0.72(...TRUNCATED)
| [1.2221182584762573,-2.182450532913208,1.1952351331710815,-2.996673822402954,5.841272830963135,-0.71(...TRUNCATED)
|
|
Walking!
| "There is a sand trail in front of Alice's home.\n\nIn daytime, people walk over it and leave a foot(...TRUNCATED)
|
codeforces
|
E
| 578
|
2025-01-20T20:58:05.360400
|
hard
| "```python\nimport sys\n\ns = input()\n\nleft = [i for i in s if i == 'L']\nright = [i for i in s if(...TRUNCATED)
| "import sys\n\ns = input()\n\nleft = [i for i in s if i == 'L']\nright = [i for i in s if i == 'R']\(...TRUNCATED)
|
OK
| "import sys\n\ns = input()\n\nleft = [i for i in s if i == 'L']\nright = [i for i in s if i == 'R']\(...TRUNCATED)
| 36
| 9
| true
| "answer = []\n\nfor L, R in zip(left, right):\n if L.index(R) > R.index(L):\n answer.appen(...TRUNCATED)
| ["import sys\n\ns = input()\n\nleft = [i for i in s if i == 'L']\nright = [i for i in s if i == 'R'](...TRUNCATED)
| [128000,475,5826,271,82,284,1988,2892,2414,284,510,72,369,602,304,274,422,602,624,364,43,4532,1315,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,1(...TRUNCATED)
| [[128000,475,5826,271,82,284,1988,2892,2414,284,510,72,369,602,304,274,422,602,624,364,43,4532,1315,(...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,82,284,1988,2892,2414,284,510,72,369,602,304,274,422,602,624,364,43,4532,1315,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0(...TRUNCATED)
| [128000,475,5826,271,82,284,1988,2892,2414,284,510,72,369,602,304,274,422,602,624,364,43,4532,1315,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,1(...TRUNCATED)
| [128000,475,5826,271,82,284,1988,2892,2414,284,510,72,369,602,304,274,422,602,624,364,43,4532,1315,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,1(...TRUNCATED)
| [0.9993695020675659,-2.046926736831665,-0.888076663017273,-3.4554238319396973,4.814774036407471,0.06(...TRUNCATED)
| [1.5095447301864624,-2.2475857734680176,-1.6751363277435303,-1.3614000082015991,3.6333489418029785,-(...TRUNCATED)
| [1.2833528518676758,-2.4821770191192627,-1.5694478750228882,-1.7697784900665283,4.1275224685668945,-(...TRUNCATED)
| [[0.12123681604862213,-2.435504674911499,-0.2203676998615265,-2.688319683074951,4.452722549438477,0.(...TRUNCATED)
| [1.2378358840942383,-2.456254243850708,-1.456784963607788,-2.6910603046417236,4.000799179077148,-0.3(...TRUNCATED)
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 107