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. Tak performed the following action N times: rolling two dice. The result of the i-th roll is D_{i,1} and D_{i,2}. Check if doublets occurred at least three times in a row. Specifically, check i...
instruction
0
89,004
19
178,008
No
output
1
89,004
19
178,009
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tak performed the following action N times: rolling two dice. The result of the i-th roll is D_{i,1} and D_{i,2}. Check if doublets occurred at least three times in a row. Specifically, check i...
instruction
0
89,005
19
178,010
No
output
1
89,005
19
178,011
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Tak performed the following action N times: rolling two dice. The result of the i-th roll is D_{i,1} and D_{i,2}. Check if doublets occurred at least three times in a row. Specifically, check i...
instruction
0
89,006
19
178,012
No
output
1
89,006
19
178,013
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,070
19
178,140
Yes
output
1
89,070
19
178,141
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,071
19
178,142
Yes
output
1
89,071
19
178,143
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,072
19
178,144
Yes
output
1
89,072
19
178,145
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,073
19
178,146
Yes
output
1
89,073
19
178,147
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,074
19
178,148
No
output
1
89,074
19
178,149
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,075
19
178,150
No
output
1
89,075
19
178,151
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,076
19
178,152
No
output
1
89,076
19
178,153
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Amidakuji is a traditional method of lottery in Japan. To make an amidakuji, we first draw W parallel vertical lines, and then draw horizontal lines that connect them. The length of each vertic...
instruction
0
89,077
19
178,154
No
output
1
89,077
19
178,155
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,802
19
179,604
Tags: brute force, implementation Correct Solution: ``` n = int(input()) s = list(map(int, input().split())) ans = 0 x0 = 0 x1 = 0 for i in range(n): if s[i] == 1: x1 = max(x0, x1) + 1 else: x0 = x0 + 1 ans = max(x0, x1) print(ans) ```
output
1
89,802
19
179,605
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,803
19
179,606
Tags: brute force, implementation Correct Solution: ``` n = int(input()) string = ''.join(map(str, input().split())) maxx = 0 for i in range(n+1): maxx = max(maxx, string[:i].count('0')+string[i:].count('1')) print(maxx) ```
output
1
89,803
19
179,607
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,804
19
179,608
Tags: brute force, implementation Correct Solution: ``` a=int(input()) b=input().split() zerocount=0 zero=[] onecount=0 one=[] maxi=0 for i in range(a): if(b[i]=='0'): zerocount+=1 zero.append(zerocount) for i in range(a-1, -1, -1): if(b[i]=='1'): onecount+=1 one.append(onecount) one.reverse() if(maxi<one[0]...
output
1
89,804
19
179,609
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,805
19
179,610
Tags: brute force, implementation Correct Solution: ``` def solve(n, games): games_to_keep = 0 # Calculate prefix for ones (how many ones from start to i) ones_prefix = [0 for i in range(n)] if games[0] == '1': ones_prefix[0] = 1 for i in range(1, n): ...
output
1
89,805
19
179,611
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,806
19
179,612
Tags: brute force, implementation Correct Solution: ``` input() n = [int(x) for x in input().split()] a = -1 aa = 0 for i, x in enumerate(n): aaa = aa + len([x for x in n[i:] if x]) if aaa > a: a = aaa if not x: aa += 1 print(max(a,aa)) ```
output
1
89,806
19
179,613
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,807
19
179,614
Tags: brute force, implementation Correct Solution: ``` n = int(input()) p = list(map(int, input().split())) ind_z = [] ind_o = [] for i in range(n): if p[i] == 0: ind_z.append(i) else: ind_o.append(i) z = [0] * len(ind_z) o = [0] * len(ind_o) for i in range(len(z)): z[i] = i + 1 for j i...
output
1
89,807
19
179,615
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,808
19
179,616
Tags: brute force, implementation Correct Solution: ``` n = int(input()) arr = list(map(int, input().split())) pref1 = [0] for i in arr: pref1.append(pref1[-1] + i) suf0 = [0] for i in arr[::-1]: suf0.append(suf0[-1] + (i + 1) % 2) ans = [] for i in range(n + 1): ans.append(n - (suf0[::-1][i] + pref1[i])) p...
output
1
89,808
19
179,617
Provide tags and a correct Python 3 solution for this coding contest problem. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career Hideo has produced n games. Some of them were s...
instruction
0
89,809
19
179,618
Tags: brute force, implementation Correct Solution: ``` def solve(s): ''' >>> solve([1, 1, 0, 1]) 3 >>> solve([0, 1, 0, 0, 1, 0]) 4 >>> solve([0]) 1 ''' zeroes = accum(s, 0) ones = list(reversed(accum(reversed(s), 1))) return max(x + y for x, y in zip(zeroes, ones)) def a...
output
1
89,809
19
179,619
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,810
19
179,620
Yes
output
1
89,810
19
179,621
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,811
19
179,622
Yes
output
1
89,811
19
179,623
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,812
19
179,624
Yes
output
1
89,812
19
179,625
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,813
19
179,626
Yes
output
1
89,813
19
179,627
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,814
19
179,628
No
output
1
89,814
19
179,629
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,815
19
179,630
No
output
1
89,815
19
179,631
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,816
19
179,632
No
output
1
89,816
19
179,633
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Hideo Kojima has just quit his job at Konami. Now he is going to find a new place to work. Despite being such a well-known person, he still needs a CV to apply for a job. During all his career ...
instruction
0
89,817
19
179,634
No
output
1
89,817
19
179,635
Provide a correct Python 3 solution for this coding contest problem. There are N balls and N+1 holes in a line. Balls are numbered 1 through N from left to right. Holes are numbered 1 through N+1 from left to right. The i-th ball is located between the i-th hole and (i+1)-th hole. We denote the distance between neighb...
instruction
0
90,001
19
180,002
"Correct Solution: ``` import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,D,X = map(int,read().split()) answer = 0 for n in range(N,0,-1): mean = D + X * (n+n-1) / 2 answer += mean D = ((n+n+2) * D + 5 * X) / (2*n) X = (n + 2) * X / n ...
output
1
90,001
19
180,003
Provide a correct Python 3 solution for this coding contest problem. There are N balls and N+1 holes in a line. Balls are numbered 1 through N from left to right. Holes are numbered 1 through N+1 from left to right. The i-th ball is located between the i-th hole and (i+1)-th hole. We denote the distance between neighb...
instruction
0
90,002
19
180,004
"Correct Solution: ``` N,D,X = map(int,input().split()) """ ・玉の位置は無視できる ・等差数列なので左右反転して平均化→完全等間隔に帰着 ・ひとつ取り去ったあとの平均化→それも完全等間隔の定数倍 ・すべての間隔が1であるN区間の場合の期待値を求める """ x = .5 for n in range(2,N+1): x += .5 + x/n answer = x * (2*D+X*(2*N-1)) print(answer) ```
output
1
90,002
19
180,005
Provide a correct Python 3 solution for this coding contest problem. There are N balls and N+1 holes in a line. Balls are numbered 1 through N from left to right. Holes are numbered 1 through N+1 from left to right. The i-th ball is located between the i-th hole and (i+1)-th hole. We denote the distance between neighb...
instruction
0
90,003
19
180,006
"Correct Solution: ``` def solve(n, d, x): ans = 0 while n: ans += d + (2 * n - 1) * x / 2 d = ((n + 1) * d + 5 * x / 2) / n x *= (n + 2) / n n -= 1 return ans print('{:.10f}'.format(solve(*map(float, input().split())))) ```
output
1
90,003
19
180,007
Provide a correct Python 3 solution for this coding contest problem. There are N balls and N+1 holes in a line. Balls are numbered 1 through N from left to right. Holes are numbered 1 through N+1 from left to right. The i-th ball is located between the i-th hole and (i+1)-th hole. We denote the distance between neighb...
instruction
0
90,004
19
180,008
"Correct Solution: ``` from decimal import Decimal, getcontext getcontext().prec = 200 n, d, x = map(Decimal, input().split()) ans = 0 for i in range(1, int(n) + 1): i = Decimal(str(i)) ans += Decimal(str((int(n) - int(i) + 1))) / Decimal(str(i)) * (d + x * Decimal(str(int(n) * 2 - 1)) / Decimal("2")) print(ans...
output
1
90,004
19
180,009
Provide a correct Python 3 solution for this coding contest problem. There are N balls and N+1 holes in a line. Balls are numbered 1 through N from left to right. Holes are numbered 1 through N+1 from left to right. The i-th ball is located between the i-th hole and (i+1)-th hole. We denote the distance between neighb...
instruction
0
90,005
19
180,010
"Correct Solution: ``` import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N, d, x = map(int, read().split()) def main(N, d, x): ret = 0 while N: ret += d + (N-0.5) * x d = d + (d/N) + (5*x)/(2*N) x += 2*x/N N -= ...
output
1
90,005
19
180,011
Provide tags and a correct Python 3 solution for this coding contest problem. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions them as he wants into n disjoint pairs. 2. Then,...
instruction
0
90,324
19
180,648
Tags: constructive algorithms, dfs and similar, interactive, math, number theory Correct Solution: ``` import sys n = int(input()) if n % 2: print('Second') sys.stdout.flush() l = list(map(lambda x: int(x)-1,input().split())) rev1 = [-1]*n rev2 = [-1]*n revs = [0]*n for i in range(2 * n): ...
output
1
90,324
19
180,649
Provide tags and a correct Python 3 solution for this coding contest problem. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions them as he wants into n disjoint pairs. 2. Then,...
instruction
0
90,325
19
180,650
Tags: constructive algorithms, dfs and similar, interactive, math, number theory Correct Solution: ``` import sys;n = int(input()) if n % 2: print('Second');sys.stdout.flush();l = list(map(lambda x: int(x)-1,input().split()));rev1,rev2,revs = [-1]*n,[-1]*n,[0]*n;out = [0] * (2 * n);curr,todo,q,s1,rout = 0,2*n,[],0,...
output
1
90,325
19
180,651
Provide tags and a correct Python 3 solution for this coding contest problem. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions them as he wants into n disjoint pairs. 2. Then,...
instruction
0
90,326
19
180,652
Tags: constructive algorithms, dfs and similar, interactive, math, number theory Correct Solution: ``` # Fast IO (be careful about bytestring) # import os,io # input=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline import sys n = int(input()) if n % 2 == 0: print("First") sys.stdout.flush() ans = [] ...
output
1
90,326
19
180,653
Provide tags and a correct Python 3 solution for this coding contest problem. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions them as he wants into n disjoint pairs. 2. Then,...
instruction
0
90,327
19
180,654
Tags: constructive algorithms, dfs and similar, interactive, math, number theory Correct Solution: ``` import sys n = int(input()) if n % 2: print('Second') sys.stdout.flush() l = list(map(lambda x: int(x)-1,input().split())) rev1 = [-1]*n rev2 = [-1]*n revs = [0]*n for i in range(2 * n): ...
output
1
90,327
19
180,655
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions the...
instruction
0
90,328
19
180,656
No
output
1
90,328
19
180,657
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions the...
instruction
0
90,329
19
180,658
No
output
1
90,329
19
180,659
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions the...
instruction
0
90,330
19
180,660
No
output
1
90,330
19
180,661
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. This is an interactive problem. Consider a fixed positive integer n. Two players, First and Second play a game as follows: 1. First considers the 2n numbers 1, 2, ..., 2n, and partitions the...
instruction
0
90,331
19
180,662
No
output
1
90,331
19
180,663
Provide tags and a correct Python 3 solution for this coding contest problem. Two players play a game. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board have two chips. The first player's goal is to shift the chips to the same square. The seco...
instruction
0
90,396
19
180,792
Tags: combinatorics, constructive algorithms Correct Solution: ``` n,m,X,Y,x,y=map(int,input().split()) a=[abs(X-x),abs(Y-y)] a.sort() print("First" if a[1]<5 and a[0]+a[1]<7 else "Second") ```
output
1
90,396
19
180,793
Provide tags and a correct Python 3 solution for this coding contest problem. Two players play a game. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board have two chips. The first player's goal is to shift the chips to the same square. The seco...
instruction
0
90,397
19
180,794
Tags: combinatorics, constructive algorithms Correct Solution: ``` n,m,X,Y,x,y=map(int,input().split()) a=[abs(X-x),abs(Y-y)] a.sort() print("First" if a[1]<5 and a[0]+a[1]<7 else "Second") # Made By Mostafa_Khaled ```
output
1
90,397
19
180,795
Provide tags and a correct Python 3 solution for this coding contest problem. Two players play a game. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board have two chips. The first player's goal is to shift the chips to the same square. The seco...
instruction
0
90,398
19
180,796
Tags: combinatorics, constructive algorithms Correct Solution: ``` # ------------------- fast io -------------------- import os import sys from io import BytesIO, IOBase BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO...
output
1
90,398
19
180,797
Provide tags and a correct Python 3 solution for this coding contest problem. Two players play a game. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board have two chips. The first player's goal is to shift the chips to the same square. The seco...
instruction
0
90,399
19
180,798
Tags: combinatorics, constructive algorithms Correct Solution: ``` n,m,x1,y1,x2,y2 = map(int, input().split()) n = abs(x1 - x2) m = abs(y1 - y2) if n > 4 or m > 4: print("Second") elif n <= 3 and m <= 3: print("First") elif min(n, m) <= 2: print("First") else: print("Second") ```
output
1
90,399
19
180,799
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. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board have two chips. The first player's goal is ...
instruction
0
90,400
19
180,800
No
output
1
90,400
19
180,801
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. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board have two chips. The first player's goal is ...
instruction
0
90,401
19
180,802
No
output
1
90,401
19
180,803
Provide tags and a correct Python 3 solution for this coding contest problem. Vasily has a deck of cards consisting of n cards. There is an integer on each of the cards, this integer is between 1 and 100 000, inclusive. It is possible that some cards have the same integers on them. Vasily decided to sort the cards. T...
instruction
0
90,620
19
181,240
Tags: data structures, implementation, sortings Correct Solution: ``` # -*- coding: utf-8 -*- import sys # fout = open("output.txt", "w") fin = sys.stdin # fin = open("input.txt", "r") fout = sys.stdout n = int(fin.readline()) a = list(map(int, fin.readline().split())) def solution(n, a): sorted_arr = [(i, ele...
output
1
90,620
19
181,241
Evaluate the correctness of the submitted Python 3 solution to the coding contest problem. Provide a "Yes" or "No" response. Vasily has a deck of cards consisting of n cards. There is an integer on each of the cards, this integer is between 1 and 100 000, inclusive. It is possible that some cards have the same integer...
instruction
0
90,621
19
181,242
No
output
1
90,621
19
181,243
Provide tags and a correct Python 3 solution for this coding contest problem. The Smart Beaver from ABBYY decided to have a day off. But doing nothing the whole day turned out to be too boring, and he decided to play a game with pebbles. Initially, the Beaver has n pebbles. He arranges them in a equal rows, each row h...
instruction
0
91,186
19
182,372
Tags: number theory Correct Solution: ``` def isPrime(num): if num > 1: for i in range(2,num): if (num % i) == 0: return False break else: return True else: return False def RectangularGame(n): sum...
output
1
91,186
19
182,373
Provide tags and a correct Python 3 solution for this coding contest problem. The Smart Beaver from ABBYY decided to have a day off. But doing nothing the whole day turned out to be too boring, and he decided to play a game with pebbles. Initially, the Beaver has n pebbles. He arranges them in a equal rows, each row h...
instruction
0
91,187
19
182,374
Tags: number theory Correct Solution: ``` n = int(input()) sum = n while n%2 == 0: n = n//2 sum = sum + n i = 3 while i<=int(n**0.5): while n%i == 0: n=n//i sum = sum + n i = i + 2 if n > 2: sum = sum + 1 print(sum) ```
output
1
91,187
19
182,375