message
stringlengths
2
30.5k
message_type
stringclasses
2 values
message_id
int64
0
1
conversation_id
int64
237
109k
cluster
float64
10
10
__index_level_0__
int64
474
217k
Provide tags and a correct Python 3 solution for this coding contest problem. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several purchases. During one purchase he can choose any s...
instruction
0
32,580
10
65,160
Tags: dp, greedy, sortings Correct Solution: ``` n,m,k=map(int,input().split()) arr=list(map(int,input().split())) offer=[list(map(int,input().split())) for _ in range(m)] arr=sorted(arr) arr=arr[:k] arr=arr[::-1] acum=[0] for i in range(k): acum.append(acum[-1]+arr[i]) dp=[acum[i] for i in range(k+1)] for x,y in o...
output
1
32,580
10
65,161
Provide tags and a correct Python 3 solution for this coding contest problem. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several purchases. During one purchase he can choose any s...
instruction
0
32,581
10
65,162
Tags: dp, greedy, sortings Correct Solution: ``` #!/usr/bin/env python # -*- coding: utf-8 -*- """Codeforces Round #552 (Div. 3) Problem F. Shovels Shop :author: Kitchen Tong :mail: kctong529@gmail.com Please feel free to contact me if you have any question regarding the implementation below. """ __vers...
output
1
32,581
10
65,163
Provide tags and a correct Python 3 solution for this coding contest problem. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several purchases. During one purchase he can choose any s...
instruction
0
32,582
10
65,164
Tags: dp, greedy, sortings Correct Solution: ``` n, m, k = map(int, input().split()) a = list(map(int, input().split())) a = sorted(a) a = a[:k] d = [(1, 0)] for i in range(m): x, y = map(int, input().split()) if x > k: continue d.append((x, y)) d = sorted(d) s = [0] * (k + 1) s[1] = a[0] for i in ...
output
1
32,582
10
65,165
Provide tags and a correct Python 3 solution for this coding contest problem. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several purchases. During one purchase he can choose any s...
instruction
0
32,583
10
65,166
Tags: dp, greedy, sortings Correct Solution: ``` from audioop import reverse n, m, k = map(int,input().split()) price = list(map(int,input().split())) offer = [0] * (k + 1) for i in range(m): x , y = map(int,input().split()) if x <= k: offer[x] = max(offer[x] , y) price.sort() for _ in range(n-k): p...
output
1
32,583
10
65,167
Provide tags and a correct Python 3 solution for this coding contest problem. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several purchases. During one purchase he can choose any s...
instruction
0
32,584
10
65,168
Tags: dp, greedy, sortings Correct Solution: ``` # http://codeforces.com/contest/1154/problem/F # Explain: https://codeforces.com/blog/entry/66586?locale=en from collections import defaultdict def input2int(): return map(int, input().split()) n, m, k = input2int() cost = list(input2int()) cost = sorted(cost)[:k...
output
1
32,584
10
65,169
Provide tags and a correct Python 3 solution for this coding contest problem. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several purchases. During one purchase he can choose any s...
instruction
0
32,585
10
65,170
Tags: dp, greedy, sortings Correct Solution: ``` n,m,k = map(int,input().split()) ai = list(map(int,input().split())) ar = [0] * k for i in range(m): x,y = list(map(int,input().split())) x -= 1 if x < k: ar[x] = max(ar[x],y) ai.sort() big = 10**9 ar2 = [big] * (k+1) ar3 = [0] * (k+1) ar3[0] = 0 for ...
output
1
32,585
10
65,171
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,586
10
65,172
Yes
output
1
32,586
10
65,173
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,587
10
65,174
Yes
output
1
32,587
10
65,175
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,588
10
65,176
Yes
output
1
32,588
10
65,177
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,589
10
65,178
Yes
output
1
32,589
10
65,179
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,590
10
65,180
No
output
1
32,590
10
65,181
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,591
10
65,182
No
output
1
32,591
10
65,183
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,592
10
65,184
No
output
1
32,592
10
65,185
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. There are n shovels in the nearby shop. The i-th shovel costs a_i bourles. Misha has to buy exactly k shovels. Each shovel can be bought no more than once. Misha can buy shovels by several pur...
instruction
0
32,593
10
65,186
No
output
1
32,593
10
65,187
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,052
10
66,104
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) input_ = list(map(int, input().split(' '))) pos = n a = [0 for i in range(n+1)] res = 1 ans = [1] for x in input_: a[x] = 1 res += 1 while a[pos]==1: pos -= 1 res -= 1 ans.append(res) print (' '.join...
output
1
33,052
10
66,105
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,053
10
66,106
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) a = list(map(int, input().split())) p = [0] * (n + 1) ans = [1] * (n + 1) ind = n for i in range(n): p[a[i] - 1] = 1 while ind > 0 and p[ind - 1] == 1: ind -= 1 ans[i + 1] = 1 + (i + 1) - (n - ind) print(' '.joi...
output
1
33,053
10
66,107
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,054
10
66,108
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) arr = list(map(int, input().split())) ar2 = [False] * (n+2) ar2[-1] = True res = [1] acc = 1 ptr = n for e in arr: ar2[e] = True acc += 1 while ar2[ptr]: ptr -= 1 res.append(acc - (n-ptr)) print(*res) ```
output
1
33,054
10
66,109
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,055
10
66,110
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) positions = [int(x) for x in input().split(" ")] output = '1 ' pointer_to_right_wall = n - 1 coins = [False for i in range(len(positions))] filled = 1 for i in range(len(positions)): coins[positions[i] - 1] = True if position...
output
1
33,055
10
66,111
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,056
10
66,112
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` import sys input = sys.stdin.readline from collections import defaultdict n = int(input()) ans = [0 for _ in range(n + 1)] ans[0] = 1 ans[-1] = 1 sample = [0 for _ in range(n)] last = n - 1 q = list(map(int, input().split())) for i in range(n - 1)...
output
1
33,056
10
66,113
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,057
10
66,114
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) l = list(map(int,input().split())) print(1,end = " ") ptr = n-1 v = [0]*n for i in range(n): v[l[i]-1] = 1 while(ptr>=0 and v[ptr]==1):ptr-=1 print(i+1-(n-1-ptr)+1,end = " ") ```
output
1
33,057
10
66,115
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,058
10
66,116
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) x = [0]*n a = 0 p = list(map(int, input().split())) z = n-1 ans = ['1'] for i in range(n): x[p[i]-1] = 1 a += 1 while z> -1 and x[z] == 1: z-=1 a-=1 ans.append(str(a+1)) print(' '.join(ans)) ```
output
1
33,058
10
66,117
Provide tags and a correct Python 3 solution for this coding contest problem. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in order, that is why he wants his coins to be arran...
instruction
0
33,059
10
66,118
Tags: dsu, implementation, sortings, two pointers Correct Solution: ``` n = int(input()) input_ = list(map(int, input().split())) pos = n a = [0 for i in range(n+1)] res = 1 ans = [1] for x in input_: a[x] = 1 res += 1 while a[pos]==1: pos -= 1 res -= 1 ans.append(res) print(' '.join(map...
output
1
33,059
10
66,119
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in or...
instruction
0
33,060
10
66,120
Yes
output
1
33,060
10
66,121
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in or...
instruction
0
33,061
10
66,122
Yes
output
1
33,061
10
66,123
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in or...
instruction
0
33,062
10
66,124
Yes
output
1
33,062
10
66,125
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in or...
instruction
0
33,063
10
66,126
Yes
output
1
33,063
10
66,127
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collections of coins. Sasha likes having things in or...
instruction
0
33,064
10
66,128
No
output
1
33,064
10
66,129
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,565
10
67,130
Tags: data structures, greedy, implementation Correct Solution: ``` import sys,bisect input = sys.stdin.readline n = int(input()) sell = [] pos = [-1 for i in range(n)] rest_left = [i-1 for i in range(2*n)] rest_right = [i+1 for i in range(2*n)] for i in range(2*n): s = input().split() if s[0]=="+": ...
output
1
33,565
10
67,131
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,566
10
67,132
Tags: data structures, greedy, implementation Correct Solution: ``` """ #If FastIO not needed, used this and don't forget to strip #import sys, math #input = sys.stdin.readline """ import os import sys from io import BytesIO, IOBase import heapq as h from bisect import bisect_left, bisect_right from types import Gen...
output
1
33,566
10
67,133
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,567
10
67,134
Tags: data structures, greedy, implementation Correct Solution: ``` import sys import heapq input = sys.stdin.readline n = int(input()) data = [[x for x in input().split()] for _ in range(2 * n)] q = [] result = [] for i in data[::-1]: if i[0] == "-": heapq.heappush(q, int(i[1])) else: if q: ...
output
1
33,567
10
67,135
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,568
10
67,136
Tags: data structures, greedy, implementation Correct Solution: ``` import sys input = sys.stdin.readline import heapq n = int(input()) tmp = [list(input().split()) for i in range(2 * n)] info = [-1] * (2 * n) for i, q in enumerate(tmp): if q[0] == "-": val = int(q[1]) info[i] = val hq = [] p...
output
1
33,568
10
67,137
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,569
10
67,138
Tags: data structures, greedy, implementation Correct Solution: ``` #Code by Sounak, IIESTS #------------------------------warmup---------------------------- import os import sys import math from io import BytesIO, IOBase from fractions import Fraction import collections from itertools import permutations from collect...
output
1
33,569
10
67,139
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,570
10
67,140
Tags: data structures, greedy, implementation Correct Solution: ``` import sys, io, os BUFSIZE = 8192 class FastIO(io.IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = io.BytesIO() self.writable = "x" in file.mode or "r" not in file.mode ...
output
1
33,570
10
67,141
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,571
10
67,142
Tags: data structures, greedy, implementation Correct Solution: ``` import sys, os from io import BytesIO, IOBase from math import floor, gcd, fabs, factorial, fmod, sqrt, inf, log from collections import defaultdict as dd, deque from heapq import merge, heapify, heappop, heappush, nsmallest from bisect import bisect_l...
output
1
33,571
10
67,143
Provide tags and a correct Python 3 solution for this coding contest problem. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, which is empty at the beginning of the day. Her job...
instruction
0
33,572
10
67,144
Tags: data structures, greedy, implementation Correct Solution: ``` import heapq import sys import os import sys from io import BytesIO, IOBase from collections import defaultdict BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer ...
output
1
33,572
10
67,145
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,573
10
67,146
Yes
output
1
33,573
10
67,147
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,574
10
67,148
Yes
output
1
33,574
10
67,149
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,575
10
67,150
Yes
output
1
33,575
10
67,151
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,576
10
67,152
Yes
output
1
33,576
10
67,153
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,577
10
67,154
No
output
1
33,577
10
67,155
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,578
10
67,156
No
output
1
33,578
10
67,157
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,579
10
67,158
No
output
1
33,579
10
67,159
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tenten runs a weapon shop for ninjas. Today she is willing to sell n shurikens which cost 1, 2, ..., n ryo (local currency). During a day, Tenten will place the shurikens onto the showcase, whic...
instruction
0
33,580
10
67,160
No
output
1
33,580
10
67,161
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,670
10
67,340
Yes
output
1
33,670
10
67,341
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,671
10
67,342
Yes
output
1
33,671
10
67,343
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,672
10
67,344
Yes
output
1
33,672
10
67,345
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,673
10
67,346
Yes
output
1
33,673
10
67,347
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,674
10
67,348
No
output
1
33,674
10
67,349
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,675
10
67,350
No
output
1
33,675
10
67,351
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. The "BerCorp" company has got n employees. These employees can use m approved official languages for the formal correspondence. The languages are numbered with integers from 1 to m. For each emp...
instruction
0
33,676
10
67,352
No
output
1
33,676
10
67,353