s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s925807405
p00028
u829520323
1597580267
Python
Python3
py
Accepted
20
5600
202
import sys count = [0 for _ in range(101)] mode = 0 for s in sys.stdin: x = int(s) count[x] += 1 mode = max(mode, count[x]) for i in range(101): if count[i] == mode: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,302
s308305815
p00028
u878828646
1597559881
Python
Python3
py
Accepted
30
6000
252
import sys a=[] for i in sys.stdin: a.append(int(i)) import collections counted = collections.Counter(a) m = max(counted.values()) chars = [key for key, value in counted.items() if value == m] x=sorted(chars) [print(i) for i in x]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,303
s397347182
p00028
u799016206
1597507425
Python
Python3
py
Accepted
20
5592
210
a = [] try : while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,304
s163886573
p00028
u548283997
1597424027
Python
Python3
py
Accepted
20
5604
326
import sys readlines = sys.stdin.readlines write = sys.stdout.write def solve(): mp = {} for line in readlines(): v = int(line) mp[v] = mp.get(v, 0) + 1 ma = max(mp.values()) ans = [k for k, v in mp.items() if v == ma] ans.sort() write("\n".join(map(str, ans))) write("\n") solve()
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,305
s222782508
p00028
u419548414
1597417730
Python
Python3
py
Accepted
20
5592
206
a=[] while True: try: a.append(int(input())) except: break count=[0]*101 for i in a: count[i]+=1 for i in range (len(a)): if count[i]==max(count): print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,306
s471218426
p00028
u695386605
1597313629
Python
Python3
py
Accepted
20
5592
220
a = [] while True: try: a.append(int(input())) except: break counts = [0] * 101 for i in a: counts[i] = counts[i] + 1 for i in range(len(a)): if counts[i] == max(counts): print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,307
s999014375
p00028
u355413291
1597298283
Python
Python3
py
Accepted
30
5600
209
a=[] try : while True: a.append(int(input())) except EOFError : pass counts = [0]*101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,308
s091200059
p00028
u053015104
1597270670
Python
Python3
py
Accepted
20
5592
210
a = [] try: while True: a.append(int(input())) except EOFError: pass count = [0]*101 for n in a: count[n] += 1 for n in range(len(a)): if count[n] == max(count): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,309
s511650745
p00028
u278236319
1597127956
Python
Python3
py
Accepted
20
5592
199
a = list([0] * 100) while True : try : b=int(input()) a[b-1] += 1 except EOFError : break x = max(a) for i in range(100) : if a[i] == x : print(i+1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,310
s825378296
p00028
u512192552
1597127717
Python
Python3
py
Accepted
20
5600
216
# coding: utf-8 # Your code here! a=[] try: while True: a.append(int(input())) except EOFError: pass b=[0]*101 for i in a: b[i]+=1 c=max(b) for i in range(100): if b[i]==c: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,311
s999462269
p00028
u574841425
1596877493
Python
Python3
py
Accepted
20
5604
327
import sys readlines = sys.stdin.readlines write = sys.stdout.write def solve(): mp = {} for line in readlines(): v = int(line) mp[v] = mp.get(v, 0) + 1 ma = max(mp.values()) ans = [k for k, v in mp.items() if v == ma] ans.sort() write("\n".join(map(str, ans))) write("\n") solve()
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,312
s836574063
p00028
u455994792
1596779545
Python
Python3
py
Accepted
20
5592
239
a=[] try : while True: a.append(int(input())) except EOFError: pass counts =[0] *101 for n in a: #nの中にaを入れる counts[n] +=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,313
s451537096
p00028
u421274895
1596618244
Python
Python3
py
Accepted
20
5596
223
#(50)最頻値 a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,314
s858449226
p00028
u918533241
1596501876
Python
Python3
py
Accepted
20
5600
188
a=[] try: while True: a.append(int(input())) except EOFError: pass lis=[0]*101 for n in a: lis[n] +=1 for n in range(len(a)): if lis[n]==max(lis): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,315
s666921282
p00028
u834258010
1596473855
Python
Python3
py
Accepted
30
5592
148
n=[0]*101 while 1: try:n[int(input())]+=1 except:break m_n=max(n) for i in range(n.count(m_n)): print(n.index(m_n)+i) n.remove(m_n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,316
s171956049
p00028
u167524059
1596441425
Python
Python3
py
Accepted
20
5596
187
a = list([0] * 100) while True : try : a[int(input())-1] += 1 except EOFError : break x = max(a) for i in range(100) : if a[i] == x : print(i+1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,317
s442159284
p00028
u177648086
1596439281
Python
Python3
py
Accepted
20
5592
208
a=[] try: while True: a.append(int(input())) except EOFError: pass counts = [0]*101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,318
s335643676
p00028
u511292942
1596431434
Python
Python3
py
Accepted
20
5596
202
a = [] while True: try: n = int(input()) a.append(n) except: break b = [0]*101 for i in a: b[i]+=1 c = max(b) for j in range(100): if b[j]==c: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,319
s606496631
p00028
u900012957
1596431252
Python
Python3
py
Accepted
20
5592
170
a = [0] * 100 while 1: try: n = int(input()) a[n] += 1 except: break v = max(a) for i in range(100): if v == a[i]: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,320
s844598515
p00028
u189528630
1596430998
Python
Python3
py
Accepted
20
5596
204
num_list = [0 for i in range(101)] try: while True: num_list[int(input())] += 1 except EOFError: i = max(num_list) for j in range(1,101): if num_list[j] == i:print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,321
s333121061
p00028
u056263240
1596430144
Python
Python3
py
Accepted
20
5600
149
n=[0]*101 while 1: try:n[int(input())]+=1 except:break m_n=max(n) for i in range(n.count(m_n)): print(n.index(m_n)+i) n.remove(m_n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,322
s077853348
p00028
u062640303
1596425303
Python
Python3
py
Accepted
20
5600
203
a=[ ] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,323
s334920488
p00028
u319403848
1596385656
Python
Python3
py
Accepted
20
5596
116
a=[0]*100 while True: try: a[int(input())]+=1 except: break for i in range(100): if a[i]==max(a): print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,324
s622838850
p00028
u118506623
1596372147
Python
Python3
py
Accepted
20
5596
249
a = [] try : while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 # counts[n] nの個数と数える for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,325
s775394918
p00028
u514242733
1596188960
Python
Python3
py
Accepted
20
5600
199
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,326
s864513104
p00028
u413704014
1596187483
Python
Python3
py
Accepted
30
5596
225
numbers = [0 for i in range(100)] while True: try: n = int(input()) numbers[n - 1] += 1 except: break mode = max(numbers) for i in range(100): if mode == numbers[i]: print(i + 1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,327
s637870122
p00028
u685887060
1596172706
Python
Python3
py
Accepted
20
5596
205
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,328
s128387892
p00028
u896809383
1596035729
Python
Python3
py
Accepted
20
5600
167
import sys cnt = [0]*101 while True: try: cnt[int(input())] += 1 except EOFError: break max = max(cnt) for i in range(101): if cnt[i] == max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,329
s155859154
p00028
u677563181
1595901921
Python
Python3
py
Accepted
20
5592
150
n=[0]*101 while 1: try:n[int(input())]+=1 except:break m_n=max(n) for i in range(n.count(m_n)): print(n.index(m_n)+i) n.remove(m_n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,330
s564365766
p00028
u862272701
1595830698
Python
Python3
py
Accepted
20
5596
222
x = [] try: while True: n = int(input()) x.append(n) except EOFError: pass counts = [0]*101 for n in x: counts[n]+=1 for n in range(len(x)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,331
s491561619
p00028
u940983140
1595814505
Python
Python3
py
Accepted
20
5592
216
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range (len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,332
s439923856
p00028
u924938296
1595774734
Python
Python3
py
Accepted
30
6004
405
lst=[] while True: try: n=int(input()) lst.append(n) except EOFError: break continue import collections c = collections.Counter(lst) freqCheck = c.most_common() mode =[freqCheck[0][0]] maxCount = freqCheck[0][1] count = 1 while maxCount == freqCheck[count][1]: mode.append(freqCheck[count][0]) count = count + 1 mode.sort() for i in mode: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,333
s614299940
p00028
u320921262
1595670000
Python
Python3
py
Accepted
20
5592
210
a = [] try: while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,334
s673756342
p00028
u593595530
1595649866
Python
Python3
py
Accepted
20
5592
223
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n] +=1 #print(n) for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,335
s511155763
p00028
u596129030
1595579187
Python
Python3
py
Accepted
30
5596
212
list=[] try: while True: list.append(int(input())) except EOFError: pass count=[0]*101 for n in list: count[n]+=1 for n in range(len(list)): if count[n]==max(count): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,336
s788324880
p00028
u333382219
1595425240
Python
Python3
py
Accepted
20
5600
204
a = [] try: while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,337
s533611700
p00028
u497248335
1595297622
Python
Python3
py
Accepted
20
5596
186
l=[0]*101 while True: try: i=int(input()) l[i]+=1 except: break M=max(l) for j in range(1,101): if l[j]==M: print(j) else: pass
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,338
s281539325
p00028
u680047335
1595295273
Python
Python3
py
Accepted
20
5604
168
import sys cnt = [0]*101 while True: try: cnt[int(input())] += 1 except EOFError: break max = max(cnt) for i in range(101): if cnt[i] == max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,339
s696245777
p00028
u457539618
1595294278
Python
Python3
py
Accepted
30
5596
203
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n] +=1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,340
s704078545
p00028
u633358233
1595293256
Python
Python3
py
Accepted
20
5596
213
a = [] try : while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,341
s259282170
p00028
u293306835
1595292282
Python
Python3
py
Accepted
30
5596
160
s=[0]*101 while True: try: t=int(input()) s[t]+=1 except: break for i in range(sum(s)): if s[i]==max(s): print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,342
s747967356
p00028
u706683821
1595291862
Python
Python3
py
Accepted
30
6020
334
import collections import itertools t=[] while True: try: k=int(input()) t.append(k) except EOFError: break counter=collections.Counter(t) mode_v=counter.most_common()[0][-1] it=itertools.takewhile(lambda kv:kv[-1]==mode_v,counter.most_common()) m=(k for k,v in it) [print(i) for i in m]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,343
s519314642
p00028
u397004753
1595286456
Python
Python3
py
Accepted
20
5600
195
a=[] try: while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,344
s065953732
p00028
u662362547
1595258430
Python
Python3
py
Accepted
20
5596
209
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,345
s600372348
p00028
u221550784
1595232451
Python
Python3
py
Accepted
20
5592
192
x=[] while True: try: n=int(input()) x.append(n) except: break c=[0]*101 for i in x: c[i]+=1 b=max(c) for j in range(100): if c[j]==b: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,346
s063821295
p00028
u577978368
1595225138
Python
Python3
py
Accepted
20
5596
321
a=[] try: while True: a.append(int(input())) except EOFError: pass #print('@',a) counts = [0]*101 # counts[n] nの個数を数える #print('@',counts) for n in a: counts[n] +=1 #print('@',counts) #print('@',max(counts)) for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,347
s367422014
p00028
u869208015
1595223257
Python
Python3
py
Accepted
20
5596
204
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,348
s828083159
p00028
u528181593
1595221696
Python
Python3
py
Accepted
30
5596
206
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for i in a: counts[i]+=1 for i in range (len(a)): if counts[i]==max(counts): print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,349
s628699546
p00028
u661628543
1595090822
Python
Python3
py
Accepted
20
5596
201
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,350
s113130250
p00028
u630948380
1595049629
Python
Python3
py
Accepted
20
5596
201
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,351
s691422080
p00028
u673183698
1594910989
Python
Python3
py
Accepted
20
5592
163
x=[0]*101 while True : try : n=int(input()) x[n]+=1 except EOFError: break for i in range(sum(x)): if x[i]==max(x) : print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,352
s155380388
p00028
u635020217
1594891312
Python
Python3
py
Accepted
20
5604
252
# coding: utf-8 # Your code here! a = [] try : while True: a.append(int(input())) except EOFError: pass counts = [0] * 101 for n in a: counts[n] += 1 for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,353
s281683481
p00028
u100874602
1594874243
Python
Python3
py
Accepted
20
5596
204
a=[] while True: try: a.append(int(input())) except: break counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,354
s247801523
p00028
u555228137
1594846770
Python
Python3
py
Accepted
20
5600
195
a=[] try: while True: a.append(int(input())) except EOFError: pass count=[0]*101 for n in a: count[n]+=1 for n in range(len(a)): if count[n]==max(count): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,355
s228101332
p00028
u991830357
1594801589
Python
Python3
py
Accepted
20
5600
208
a=[] try: while True: a.append(int(input())) except EOFError: pass counts=[0]*101 for n in a: counts[n]+=1 for n in range(len(a)): if counts[n]==max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,356
s477227245
p00028
u272062354
1594797306
Python
Python3
py
Accepted
20
5596
197
a=[] try: while True: a.append(int(input())) except EOFError: pass count=[0]*101 for n in a: count[n]+=1 for n in range(len(a)): if count[n]==max(count): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,357
s034853902
p00028
u844203875
1594742400
Python
Python3
py
Accepted
20
5596
315
a = [] try : while True: a.append(int(input())) except EOFError: pass # print('@', a) counts = [0] * 101 # counts[n] n の個数を数える for n in a: counts[n] += 1 # print('@', counts) # print('@', max(counts)) for n in range(len(a)): if counts[n] == max(counts): print(n)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,358
s874903183
p00028
u799752967
1594691098
Python
Python3
py
Accepted
30
6020
355
# coding: utf-8 # Your code here! import collections import itertools t=[] while True: try: k=int(input()) t.append(k) except EOFError: break counter=collections.Counter(t) mode_v=counter.most_common()[0][-1] it=itertools.takewhile(lambda kv:kv[-1]==mode_v,counter.most_common()) m=(k for k,v in it) [print(i) for i in m]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,359
s713157641
p00028
u361745995
1594690793
Python
Python3
py
Accepted
20
5600
201
list=[] while True: try: a=int(input()) list.append(a) except: break x=[0]*101 for i in list: x[i]+=1 m=max(x) for j in range(100): if x[j]==m: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,360
s326315870
p00028
u695568874
1594689541
Python
Python3
py
Accepted
30
6016
326
import collections import itertools t=[] while True: try: k=int(input()) t.append(k) except EOFError: break counter = collections.Counter(t) mode_v=counter.most_common()[0][-1] it=itertools.takewhile(lambda kv:kv[-1]==mode_v,counter.most_common()) m=(k for k,v in it) [print(i) for i in m]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,361
s930676667
p00028
u442912414
1594622130
Python
Python3
py
Accepted
20
5596
173
lst=[0]*101 while True: try: x=int(input()) lst[x]+=1 except: break ans=max(lst) for i in range(101): if lst[i] == ans: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,362
s678204036
p00028
u251716708
1594620090
Python
Python3
py
Accepted
20
5596
388
a = [0 for i in range(101)] #101個の0がリストに入ってる while True: try: n = int(input()) a[n] += 1 except EOFError: break m = 0 for i in range(1, 101): #最頻値の最頻回数mを求めている m = max(m, a[i]) for i in range(1, 101): if a[i] == m: #最頻回数と一致するものをみつけて最頻値を出力 print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,363
s449356440
p00028
u926092389
1594365831
Python
Python3
py
Accepted
20
5600
274
a=[] c=[] while True: try: a.append(int(input())) except: break x=len(a) for i in range(x): b=a.count(i) c.append(b) r=max(c) e=len([i for i,x in enumerate(c) if x==r]) d=[i for i,x in enumerate(c) if x==r] for i in range(e): print(d[i])
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,364
s992429456
p00028
u187074069
1594286299
Python
Python3
py
Accepted
20
5596
167
a = [0]*101 while True: try: a[int(input())] += 1 except EOFError: break k = max(a) for i in range(100): if a[i] == k: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,365
s874166887
p00028
u573698742
1594212299
Python
Python3
py
Accepted
30
6008
222
from collections import Counter a=Counter() while True: try: a[int(input())]+=1 except EOFError: break b=a.most_common() c=b[0][1] d=[i[0] for i in b if i[1] == c] d.sort() for j in d: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,366
s623491610
p00028
u627612495
1594047995
Python
Python3
py
Accepted
20
5600
139
a = [0]*100 while True: try: a[int(input())-1]+=1 except: break [print(i+1) for i in range(100) if a[i] == max(a)]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,367
s953907266
p00028
u350481745
1594046224
Python
Python3
py
Accepted
20
5592
162
x=[0]*100 while True: try: y=int(input()) x[y-1]+=1 except: break z=max(x) for i in range(100): if x[i] == z: print(i+1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,368
s803430635
p00028
u644959375
1594040018
Python
Python3
py
Accepted
20
5596
319
a={} maxnum = 1 while True: try: ai = int(input()) if ai not in a: a[ai] = 1 else: a[ai] += 1 if maxnum < a[ai]: maxnum = a[ai] except: break b = sorted(a.items()) for key, value in b: if maxnum==value: print(key)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,369
s890979864
p00028
u371026526
1593412620
Python
Python3
py
Accepted
20
5596
138
x = [0]*101 while True: try: n = int(input()) x[n] += 1 except: for i in range(101): if x[i] == max(x): print(i) break
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,370
s720175584
p00028
u826807985
1593410047
Python
Python3
py
Accepted
20
5596
183
l = list([0] * 101) while True: try: a = int(input()) except EOFError: break l[a] += 1 x = max(l) for i in range(1,101): if l[i] ==x: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,371
s230305980
p00028
u711365732
1593409054
Python
Python3
py
Accepted
30
6000
342
import sys from collections import Counter list=[] while True: try: s = int(input()) list.append(s) except: break c=Counter(list) mode=c.most_common() print(mode[0][0]) max=mode[0][1] i=1 while True: if max==mode[i][1]: max=mode[i][1] print(mode[i][0]) i+=1 else: break
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,372
s589661239
p00028
u795882061
1593406985
Python
Python3
py
Accepted
30
6008
472
import collections S = [] while True: try: s = int(input()) S.append(s) except EOFError: break c = collections.Counter(S) k = 0 a = [] if len(S) == 0: pass else: for i in range(len(c)): if c.most_common()[i][1] == c.most_common()[i+1][1]: k += 1 else: break for i in range(k+1): a.append(c.most_common()[i][0]) a.sort() for i in range(len(a)): print(a[i])
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,373
s797950787
p00028
u919773430
1593403184
Python
Python3
py
Accepted
30
6004
571
from collections import Counter l = [] while True: try: a=int(input()) except EOFError: break l.append(a) L = sorted(l) def calculate_mode(L): c = Counter(L) freq_scores = c.most_common() max_count = freq_scores[0][1] modes = [] #出現回数と最大出現回数が等しいかを確認します。 for num in freq_scores: if num[1] == max_count: modes.append(num[0]) return(modes) if __name__ == '__main__': data = L modes = calculate_mode(L) for mode in modes: print(mode)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,374
s597973019
p00028
u838993229
1593256690
Python
Python3
py
Accepted
30
5596
348
def get_input(): while True: try: yield ''.join(input()) except EOFError: break n = list(get_input()) maxi = 0 nums = [0 for i in range(101)] for j in range(len(n)): k = int(n[j]) nums[int(n[j])] += 1 maxi = max(maxi, nums[k]) for i in range(101): if nums[i] == maxi: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,375
s272871535
p00028
u904289400
1593011508
Python
Python3
py
Accepted
20
5600
241
a=[] while True: try: a.append(input()) except: break n=len(a) m=[0 for i in range(101)] l=0 for j in range(n): k=int(a[j]) m[k]+=1 l=max(l,m[k]) for i in range(101): if m[i]==l: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,376
s315504276
p00028
u057249340
1592963243
Python
Python3
py
Accepted
20
5596
185
l = [0] * 101 while True: try: n = int(input()) l[n] += 1 except EOFError: break max = max(l) for i in range(101): if l[i] == max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,377
s721081823
p00028
u171326376
1592918673
Python
Python3
py
Accepted
20
6004
306
import collections as co a = [] while True: try: n = int(input()) except: break a.append(n) b = co.Counter(a) c = b.most_common() N = c[0][1] maxs =[] for c2 in c: if c2[1] == N: maxs.append(c2[0]) maxs.sort() d = len(maxs) for j in range(d): print(maxs[j])
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,378
s249131462
p00028
u444626963
1592906024
Python
Python3
py
Accepted
20
5592
235
ans = [0]*101 while True: try: ans[int(input())] += 1 except EOFError: break printqueue = [] maxi = max(ans) for i in range(1,101): if ans[i] == maxi : printqueue.append(i) for i in printqueue: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,379
s069310912
p00028
u206985725
1592803186
Python
Python3
py
Accepted
20
5592
443
x=[] y=[] z=[] while True: try: n=int(input()) x.append(n) except EOFError: break Counter = [0] * 101 for n in x: Counter[n] += 1 y.append(Counter[n]) # print(n) #print(y) #print(x) y_len=len(y) for i in range(y_len): # print(i,x[i],y[i]) if y[i]==max(y): # print(x[i]) z.append(x[i]) #print(z) z.sort() z_len=len(z) for i in range(z_len): print(z[i])
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,380
s432320757
p00028
u322947441
1592798864
Python
Python3
py
Accepted
30
6008
371
import collections a = [] while True: try: n = int(input()) except EOFError: break a.append(n) if len(a) != 0: b = collections.Counter(a) c = b.most_common() x = c[0][1] d = [] for elem in c: if elem[1] == x: d.append(elem[0]) else: break d.sort() [print(k) for k in d]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,381
s460095081
p00028
u931484744
1592651835
Python
Python3
py
Accepted
30
5600
222
# coding: utf-8 # Your code here! a = list([0] * 100) while True : try : a[int(input())-1] += 1 except EOFError : break x = max(a) for i in range(100) : if a[i] == x : print(i+1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,382
s026332416
p00028
u874049078
1592367606
Python
Python3
py
Accepted
30
5992
319
#50 最頻値 import collections collections.Counter x = [0]*101 while True: try: x[int(input())] += 1 except EOFError: break #EOFErrorになったらbreakする max = max(x) for i in range(101): if x[i] == max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,383
s429186576
p00028
u037263780
1592206994
Python
Python3
py
Accepted
20
5596
184
l=[0]*101 while True: try: i=int(input()) l[i]+=1 except: break M=max(l) for j in range(1,101): if l[j]==M: print(j) else: pass
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,384
s565731497
p00028
u228556128
1591874871
Python
Python3
py
Accepted
20
5600
176
lst = [0 for i in range(1,101)] while True: try: lst[int(input())]+=1 except: break m=max(lst) for i in range(100): if m==lst[i]: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,385
s639224319
p00028
u288578617
1591667344
Python
Python3
py
Accepted
30
6020
328
import collections import itertools t = [] while True: try: k=int(input()) t.append(k) except EOFError: break counter = collections.Counter(t) mode_v=counter.most_common()[0][-1] it = itertools.takewhile(lambda kv:kv[-1]==mode_v,counter.most_common()) m=(k for k,v in it) [print(i) for i in m]
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,386
s335501163
p00028
u140569607
1591592060
Python
Python3
py
Accepted
20
5592
151
a = [0] * 101 while True: try: a[int(input())] += 1 except: break for i in range(101): if a[i] == max(a): print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,387
s360789638
p00028
u895962529
1591535417
Python
Python3
py
Accepted
20
5600
159
import sys c = [0]*101 while True: try: c[int(input())] += 1 except EOFError: break max = max(c) for i in range(101): if c[i] == max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,388
s473644476
p00028
u842461513
1591400266
Python
Python3
py
Accepted
20
5596
453
#数字の数を求めるためのリストを作成する num_list = [0 for i in range(101)] #"EOFError"がくるまで入力を繰り返し、入力の番号のインデックスを1ふやす try: while True: num_list[int(input())] += 1 except EOFError: #最瀕値の数が出てきた数を変数に代入し最瀕値であれば出力する i = max(num_list) for j in range(1,101): if num_list[j] == i:print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,389
s797847496
p00028
u173393391
1591195098
Python
Python3
py
Accepted
30
5992
220
from collections import Counter l=[0]*100 while True: try: x=int(input()) l[x+1]+=1 except: break for i in range(100): if l[i]==max(l): print(i-1) else: pass
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,390
s368104582
p00028
u511744190
1591026312
Python
Python3
py
Accepted
20
5604
248
a=[] while True: try: x=int(input()) a.append(x) except: break b=[] for i in range(1,101): y=a.count(i) b.append(y) c=[j for j, v in enumerate(b) if v == max(b)] e=len(c) for h in range(e): print(c[h]+1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,391
s019729895
p00028
u988962397
1590992190
Python
Python3
py
Accepted
20
5596
215
l=[0]*101 while True: try: x=int(input()) l[x]+=1 except: max_va=max(l) for i in range(101): if l[i]==max_va: print(i) break
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,392
s739518693
p00028
u470391435
1590991553
Python
Python3
py
Accepted
20
5592
188
a = [] while True: try: a.append(int(input())) except: break b=[0]*101 for i in a: b[i] += 1 c = max(b) for i in range(100): if b[i] == c: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,393
s552856973
p00028
u435414815
1590988675
Python
Python3
py
Accepted
20
5596
181
c=[0]*101 while True : try : a=int(input()) c[a]=c[a]+1 except EOFError : break max=max(c) for i in range(101): if c[i]==max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,394
s367975168
p00028
u253463111
1590894093
Python
Python3
py
Accepted
20
5596
179
c=[0]*101 while True: try : a=int(input()) c[a]+=1 except EOFError : break max=max(c) for i in range(101): if c[i]==max: print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,395
s858714874
p00028
u753534330
1590765317
Python
Python3
py
Accepted
20
5600
354
a = [] for i in range(100): try: n = int(input()) a.append(n) except: pass M = 0 b = [] for i in range(100): bi = a.count(i) #print(bi) if bi == M: b.append(i) M = bi elif bi > M: b.clear() b.append(i) M = bi for i in range(len(b)): print(b[i])
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,396
s555179983
p00028
u286298310
1590680219
Python
Python3
py
Accepted
20
5608
313
import sys A = [i+1 for i in range(100)] B = [0 for i in range(100)] a = [0 for i in range(100)] for l in sys.stdin: a.append(int(l)) # for i in range(4): # a[i] = int(input()) for x in a: if x in A: B[x-1] += 1 max = max(B) for i in range(100): if B[i] == max: print(i+1)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,397
s408172599
p00028
u128671689
1590571628
Python
Python3
py
Accepted
20
5596
195
x=[] while True: try: n=int(input()) x.append(n) except: break c=[0]*101 for i in x: c[i]+=1 b=max(c) for j in range(100): if c[j]==b: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,398
s953868175
p00028
u647921435
1590456948
Python
Python3
py
Accepted
20
5596
192
x=[] while True: try: n=int(input()) x.append(n) except: break c=[0]*101 for i in x: c[i]+=1 b=max(c) for j in range(100): if c[j]==b: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,399
s244913187
p00028
u884758681
1590455682
Python
Python3
py
Accepted
20
5592
196
x = [] while True: try: n=int(input()) x.append(n) except: break c=[0]*101 for i in x: c[i] += 1 b=max(c) for j in range(100): if c[j]==b: print(j)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,400
s982752034
p00028
u994684803
1590424778
Python
Python3
py
Accepted
20
5596
170
a = [0] * 100 while True : try : a[int(input())] += 1 except : break x = max(a) for i in range(100) : if a[i] == x : print(i)
p00028
<h1>Mode Value</h1> <p> Your task is to write a program which reads a sequence of integers and prints mode values of the sequence. The mode value is the element which occurs most frequently. </p> <H2>Input</H2> <p> A sequence of integers <var>a<sub>i</sub></var> (1 &le; <var>a<sub>i</sub></var> &le; 100). The number of integers is less than or equals to 100. </p> <H2>Output</H2> <p> Print the mode values. If there are several mode values, print them in ascending order. </p> <H2>Sample Input</H2> <pre> 5 6 3 5 8 7 5 3 9 7 3 4 </pre> <H2>Output for the Sample Input</H2> <pre> 3 5 </pre> <p> For example, 3 and 5 respectively occur three times, 7 occurs two times, and others occur only one. So, the mode values are 3 and 5. </p>
5 6 3 5 8 7 5 3 9 7 3 4
3 5
8,401