message
stringlengths
2
67k
message_type
stringclasses
2 values
message_id
int64
0
1
conversation_id
int64
463
109k
cluster
float64
19
19
__index_level_0__
int64
926
217k
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,889
19
69,778
Yes
output
1
34,889
19
69,779
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,890
19
69,780
Yes
output
1
34,890
19
69,781
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,891
19
69,782
Yes
output
1
34,891
19
69,783
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,892
19
69,784
Yes
output
1
34,892
19
69,785
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,893
19
69,786
No
output
1
34,893
19
69,787
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,894
19
69,788
No
output
1
34,894
19
69,789
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,895
19
69,790
No
output
1
34,895
19
69,791
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Two players play a game. Initially there are n integers a_1, a_2, …, a_n written on the board. Each turn a player selects one number and erases it from the board. This continues until there is ...
instruction
0
34,896
19
69,792
No
output
1
34,896
19
69,793
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,027
19
70,054
"Correct Solution: ``` # -*- coding: utf-8 -*- import sys from functools import reduce from operator import xor def input(): return sys.stdin.readline().strip() def list2d(a, b, c): return [[c] * b for i in range(a)] def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)] def ceil(x, y=1): retu...
output
1
35,027
19
70,055
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,028
19
70,056
"Correct Solution: ``` import sys input=sys.stdin.readline N=int(input()) ALL=0 bit=[0 for i in range(31)] for i in range(N): a=int(input()) ALL^=a B=100 for j in range(31): if a//(2**(30-j))==1: B=j a%=(2**(30-j)) bit[B]=1 #print(bit) all=[0 for i in range(31)] for j in...
output
1
35,028
19
70,057
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,029
19
70,058
"Correct Solution: ``` # -*- coding: utf-8 -*- import sys from collections import Counter from functools import reduce from operator import xor def input(): return sys.stdin.readline().strip() def list2d(a, b, c): return [[c] * b for i in range(a)] def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in ...
output
1
35,029
19
70,059
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,030
19
70,060
"Correct Solution: ``` n = int(input()) a = [int(input()) for _ in range(n)] gr = 0 for x in a: gr ^= x exist = set() for i in range(n): cnt = 0 while (a[i]>>cnt)&1 == 0: cnt += 1 exist.add(cnt) ok = True ans = 0 for i in range(35, -1, -1): if (gr>>i)&1: if i not in exist: ok = False else: gr %= (1<<(i...
output
1
35,030
19
70,061
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,031
19
70,062
"Correct Solution: ``` n = int(input()) a = [int(input()) for i in range(n)] xora = 0 xorls = [] for i in a: xora ^= i xorls.append(i^(i-1)) xorls.sort(reverse=True) ans = 0 for i in xorls: if xora == 0: break if xora.bit_length() == i.bit_length(): xora ^= i ans += 1 if xora: print(-1) else: pr...
output
1
35,031
19
70,063
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,032
19
70,064
"Correct Solution: ``` import sys, collections def solve(): file = sys.stdin.readline N = int(file()) mindig = collections.defaultdict(int) nim = 0 for i in range(N): a = int(file()) nim ^= a mindig[a^(a-1)] += 1 if nim == 0: print(0) else: nim = format(nim, ...
output
1
35,032
19
70,065
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,033
19
70,066
"Correct Solution: ``` # cf16-exhibition-final-openC - Cheating Nim import sys input = sys.stdin.readline def main(): # player is second move -> make xor 0 N = int(input()) A = sorted(map(int, [input() for _ in range(N)]), reverse=1) ans, x, flg = 0, 0, [0] * 30 for i in A: x ^= i ...
output
1
35,033
19
70,067
Provide a correct Python 3 solution for this coding contest problem. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheetah plays first. In each turn, the player chooses one of ...
instruction
0
35,034
19
70,068
"Correct Solution: ``` N=int(input()) x=0 A=[0]*N from collections import defaultdict cnt=defaultdict(int) for i in range(N): a=int(input()) x^=a cnt[a^(a-1)]+=1 two=[1]*31 for i in range(1,31): two[i]=two[i-1]*2 ans=0 for i in range(30,0,-1): if ans<0: break if x%two[i]//two[i-1]==1: ...
output
1
35,034
19
70,069
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,035
19
70,070
Yes
output
1
35,035
19
70,071
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,036
19
70,072
Yes
output
1
35,036
19
70,073
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,037
19
70,074
Yes
output
1
35,037
19
70,075
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,038
19
70,076
Yes
output
1
35,038
19
70,077
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,039
19
70,078
No
output
1
35,039
19
70,079
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,040
19
70,080
No
output
1
35,040
19
70,081
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,041
19
70,082
No
output
1
35,041
19
70,083
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. A cheetah and a cheater are going to play the game of Nim. In this game they use N piles of stones. Initially the i-th pile contains a_i stones. The players take turns alternately, and the cheet...
instruction
0
35,042
19
70,084
No
output
1
35,042
19
70,085
Provide tags and a correct Python 3 solution for this coding contest problem. A famous gang of pirates, Sea Dogs, has come back to their hideout from one of their extravagant plunders. They want to split their treasure fairly amongst themselves, that is why You, their trusted financial advisor, devised a game to help ...
instruction
0
35,382
19
70,764
Tags: math Correct Solution: ``` import os import sys from io import BytesIO, IOBase # region fastio BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in file.mode or "r" not in file.mode ...
output
1
35,382
19
70,765
Provide tags and a correct Python 3 solution for this coding contest problem. A famous gang of pirates, Sea Dogs, has come back to their hideout from one of their extravagant plunders. They want to split their treasure fairly amongst themselves, that is why You, their trusted financial advisor, devised a game to help ...
instruction
0
35,383
19
70,766
Tags: math Correct Solution: ``` import os import sys from io import BytesIO, IOBase def main(): pass # region fastio BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in file.mode ...
output
1
35,383
19
70,767
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,481
19
70,962
Tags: math, probabilities Correct Solution: ``` a,b,c,d=list(map(int,input().split())) awin=a/b aloss=1-(a/b) bloss=1-(c/d) ans=awin*(1/(1-(aloss*bloss))) print("%.12f" % ans) ```
output
1
35,481
19
70,963
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,482
19
70,964
Tags: math, probabilities Correct Solution: ``` def main(): l=[int(x) for x in input().split(' ')] r=(l[0]*l[3])/(l[1]*l[2]+l[0]*l[3]-l[0]*l[2]) print(r) if __name__=='__main__': main() ```
output
1
35,482
19
70,965
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,483
19
70,966
Tags: math, probabilities Correct Solution: ``` #!/usr/bin/env python import os import sys from io import BytesIO, IOBase from typing import Union def main(): a, b, c, d = map(int, input().split()) p = a / b x = (1 - p) * (1 - c / d) print(p / (1 - x)) # region fastio BU...
output
1
35,483
19
70,967
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,484
19
70,968
Tags: math, probabilities Correct Solution: ``` a,b,c,d = list(map(int, input().split())) b1 = a/b q = (1-b1)*(1-(c/d)) n = 10000 res = b1*(q**n - 1) / (q - 1) print(res) ```
output
1
35,484
19
70,969
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,485
19
70,970
Tags: math, probabilities Correct Solution: ``` def main(): args=input().split() a=int(args[0]) b=int(args[1]) c=int(args[2]) d=int(args[3]) p=a/b q=(1-c/d)*(1-a/b) print(p/(1-q)) main() ```
output
1
35,485
19
70,971
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,486
19
70,972
Tags: math, probabilities Correct Solution: ``` a, b, c, d = map(int, input().split()) p1 = a / b p2 = c / d print(p1 / (1 - (1 - p1) * (1 - p2))) ```
output
1
35,486
19
70,973
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,487
19
70,974
Tags: math, probabilities Correct Solution: ``` a,b,c,d=map(int,input().split());print((a/b)/(1-(1-c/d)*(1-a/b))) ```
output
1
35,487
19
70,975
Provide tags and a correct Python 3 solution for this coding contest problem. SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is <image> for SmallR while <image> for Zanoes. The one ...
instruction
0
35,488
19
70,976
Tags: math, probabilities Correct Solution: ``` a,b,c,d = [int(i) for i in input().split()] prob1 = a/b prob2 = c/d probDoisErrarem = (1-prob1)*(1-prob2) prob1Ganhar = prob1/(1-probDoisErrarem) print(prob1Ganhar) ```
output
1
35,488
19
70,977
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,498
19
70,996
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` def zip_sorted(a,b): # sorted by a a,b = zip(*sorted(zip(a,b))) # sorted by b sorted(zip(a, b), key=lambda x: x[1]) return a,b import sys input = sys.stdin.readline I = lambda : list(map(int,input().split())) S = lambda : list(map(str,...
output
1
35,498
19
70,997
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,499
19
70,998
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` n,m=map(int,input().split()) if n==m: print('01'*m) elif m==n-1: print('01'*m+'0') elif m>n and m<=2*(n+1): while n!=m and n>0 and m>0: print('110',end='') n-=1 m-=2 print('10'*n,end='') m-=n print('1'*m,end='') else: print(-1) ```
output
1
35,499
19
70,999
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,500
19
71,000
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` n,m = list(map(int,input().split())) if m>(n+1)*2 or m<n-1: print(-1) else: a = '10'*n p = m-n s = '' i = 0 if p<0: print(a[1:]) elif p==0: print(a) else: v = min(n,p) s = '110'*v ...
output
1
35,500
19
71,001
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,501
19
71,002
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` from collections import Counter,defaultdict from math import factorial as fact #t = int(input()) n,m = [int(x) for x in input().split()] if n>m+1 or (m-2)/n>2: print(-1) else: if n==m+1: print('01'*m+'0') elif n==m: ...
output
1
35,501
19
71,003
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,502
19
71,004
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` m, n = map(int, input().split()) if(n >= m-1 and n<=2*(m+1)): if(n == m-1): print("01"*n,"0",sep="") else: while(n > m and m > 0): print("110",end="") n -= 2 m -= 1 if(m==n an...
output
1
35,502
19
71,005
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,503
19
71,006
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` n,m=map(int,input().split()) if(m<=2*(n+1) and m>=n-1): if(n==m): s='01'*(n) print(s) elif(n<m): s='' while(True): if(n==m or n<=0 or m<=0): break s+='110' ...
output
1
35,503
19
71,007
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,504
19
71,008
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` from sys import stdin,stdout from math import gcd, ceil, sqrt ii1 = lambda: int(stdin.readline().strip()) is1 = lambda: stdin.readline().strip() iia = lambda: list(map(int, stdin.readline().strip().split())) isa = lambda: stdin.readline().strip...
output
1
35,504
19
71,009
Provide tags and a correct Python 3 solution for this coding contest problem. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork. For each team Olympia...
instruction
0
35,505
19
71,010
Tags: constructive algorithms, greedy, implementation Correct Solution: ``` n,m=map(int,input().split()) if(n==m or n==m-1): s='' s2="10" while(len(s)<m+n): s=s+s2 s=s[:m+n] print(s) elif(n==m+1): s='' s2="01" while(len(s)<m+n): s=s+s2 s=s[:m+n] print(s) else: if((m > n and m <= 2 * (n + 1))): ...
output
1
35,505
19
71,011
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,506
19
71,012
Yes
output
1
35,506
19
71,013
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,507
19
71,014
Yes
output
1
35,507
19
71,015
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,508
19
71,016
Yes
output
1
35,508
19
71,017
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,509
19
71,018
Yes
output
1
35,509
19
71,019
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,510
19
71,020
No
output
1
35,510
19
71,021
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,511
19
71,022
No
output
1
35,511
19
71,023
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,512
19
71,024
No
output
1
35,512
19
71,025
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can someho...
instruction
0
35,513
19
71,026
No
output
1
35,513
19
71,027