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
s700882284
p00577
u261940473
1572490109
Python
Python3
py
Accepted
100
6508
248
n=int(input()) s=list(input()) cnt=0 def jesus(a,b): if (a=='O' and b=='X') or (b=='O' and a=='X'): return True else: return False i=0 while i+1<n: if jesus(s[i],s[i+1]): cnt+=1 i+=1 i+=1 print(cnt)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,175
s706502879
p00577
u537758214
1572489647
Python
Python3
py
Accepted
30
5792
342
def main(): N = int(input()) S = input() pre = False ans = 0 for i in range(N-1): if pre: pre = False continue if (S[i] == 'O' and S[i+1] == 'X') or (S[i] == 'X' and S[i+1] == 'O'): ans += 1 pre = True print(ans) if __name__ == '_...
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,176
s695488937
p00577
u481641204
1572489139
Python
Python3
py
Accepted
70
5792
154
n = int(input()) s = input() i = 0 x = 0 while i+1 < n: if s[i:i+2] in ['OX','XO']: i += 2 x += 1 else: i += 1 print(x)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,177
s966878884
p00577
u811733736
1571537794
Python
Python3
py
Accepted
40
7484
65
import re input() print(re.sub(r'OX|XO','@',input()).count('@'))
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,178
s080337298
p00577
u702095819
1570987035
Python
Python3
py
Accepted
90
5748
172
times = input() str = input() depth = 0 i = 1 while i < len(str): if str[i - 1] != str[i]: depth += 1 i += 2 else: i += 1 print(depth)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,179
s562842766
p00577
u215870135
1570264693
Python
Python3
py
Accepted
100
8112
365
import sys input = sys.stdin.readline def main(): N = int(input()) s = "**" + input().strip() dp = [0] * (N+2) for i in range(N+2): if s[i-1:i+1] == "OX" or s[i-1:i+1] == "XO": dp[i] = max(dp[i-1], dp[i-2] + 1) else: dp[i] = dp[i-1] # print(dp) print(dp...
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,180
s916390463
p00577
u852592538
1570174531
Python
Python3
py
Accepted
80
5788
183
N = int(input()) S = input() cnt = 0 while N > 1: stamp = S[N-2:N] if stamp == "OX" or stamp == "XO": cnt += 1 N -= 2 else: N -= 1 print(cnt)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,181
s461857780
p00577
u813197825
1566311025
Python
Python3
py
Accepted
100
5788
162
N = int(input()) s = input() cnt = 0 i = 0 while i < N - 1: if not s[i] == s[i + 1]: cnt += 1 i += 2 else: i += 1 print(cnt)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,182
s080634214
p00577
u972439298
1565177612
Python
Python3
py
Accepted
80
5792
246
N = int(input()) S = input() x0, x1 = -1, -1 cnt = 0 flag = False for i in range(N): if flag == False: if i > 0 and S[i] != S[i-1]: cnt += 1 flag = True else: flag = False x0 = x1 print(cnt)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,183
s715197488
p00577
u784856415
1564192727
Python
Python3
py
Accepted
100
5792
142
n=int(input()) s=input() i,cnt=0,0 while i<n-1: t=s[i]+s[i+1] if t=="OX" or t=="XO": cnt+=1 i+=1 i+=1 print(cnt)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,184
s996835164
p00577
u885163055
1563373880
Python
Python3
py
Accepted
60
5792
326
def solve(): N = int(input()) S = input() stomp = 0 for i in range(1, len(S)): pass i = 0 while True: if i >= len(S) - 1: break if S[i] != S[i + 1]: stomp += 1 i += 1 i += 1 print(stomp) if __name__ == '__main__': sol...
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,185
s613285364
p00577
u037441960
1562813622
Python
Python3
py
Accepted
100
6492
274
N = int(input()) S = list(input()) cnt = 0 for i in range(N - 1) : if(S[i] == "O" and S[i + 1] == "X") : S[i] = "l" S[i + 1] = "l" cnt += 1 elif(S[i] == "X" and S[i + 1] == "O") : S[i] = "l" S[i + 1] = "l" cnt += 1 else : pass print(cnt)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,186
s184885166
p00577
u272180444
1561341927
Python
Python3
py
Accepted
50
5860
383
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys import math def main(): n= int(input()) str = input() ans = 0 last =str[0] for i in range(n): if( str[i] != last): ans +=1 if(i+1 >= n): break; i += 1 last = str[i] else: last ...
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,187
s151769078
p00577
u352394527
1558369163
Python
Python3
py
Accepted
30
5784
239
n = int(input()) s = input() pre_c = "" flag = False ans = 0 for c in s: if flag: if pre_c != c: ans += 1 flag = False pre_c = c else: flag = True pre_c = c print(ans)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,188
s705059110
p00577
u231562319
1557040740
Python
Python3
py
Accepted
60
5792
160
n = int(input()) s = input() i = 0 ans = 0 while i+1 < n: if s[i:i+2] in ['OX','XO']: i += 2 ans += 1 else: i += 1 print(ans)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,189
s807612266
p00577
u990228206
1553764684
Python
Python3
py
Accepted
20
5780
101
n=int(input()) s=input() ans=0 ans+=s.count("OX") s=s.replace('OX','') ans+=s.count("XO") print(ans)
p00577
<h1>マルバツスタンプ (Circle Cross Stamps)</h1> <!--  時間制限 : 2sec / メモリ制限 : 256MB--> <h2>問題文</h2> <p> JOI 君はマルスタンプ,バツスタンプ,マルバツスタンプの3種類のスタンプをそれぞれ <var>0</var> 個以上持っている.これらはマルやバツのマークを紙に印字することができるスタンプである. </p> <p> マルスタンプを使うとマルが <var>1</var> つ印字され,バツスタンプを使うとバツが <var>1</var> つ印字される.マルバツスタンプを使うとマルとバツが横一列に <var>1</var> つずつ印字され,スタン...
5 OXXOX
2
23,190
s757175024
p00586
u898097781
1534817486
Python
Python3
py
Accepted
20
5596
93
import sys for line in sys.stdin: line = line.split(' ') print(sum(map(int, line)))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,191
s475895197
p00586
u150414576
1408119047
Python
Python
py
Accepted
10
4192
180
def run(infile,outfile): for line in infile.readlines(): print >> outfile,sum(map(int,line.rstrip().split())) if __name__ == "__main__": import sys run(sys.stdin, sys.stdout)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,192
s523821003
p00586
u586434734
1421030626
Python
Python
py
Accepted
10
4200
418
#!/usr/bin/python # -*- coding: utf-8 -*- def main(): # 入力 input = [] while(True): try: input_list = list2int(raw_input().split()) input.append(input_list) except EOFError: break for x in input: print(sum(x)) # リストの要素をintに変換 def list2int(lis...
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,193
s186122657
p00586
u879226672
1426128898
Python
Python
py
Accepted
20
4184
103
while True: try: print sum(map(int,raw_input().split())) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,194
s975905188
p00586
u280308796
1454261699
Python
Python3
py
Accepted
30
7512
69
import sys for line in sys.stdin: print(sum(map(int,line.split())))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,195
s206514802
p00586
u075836834
1458347003
Python
Python3
py
Accepted
30
7476
133
import sys for line in sys.stdin.readlines(): data=line.split() #print(int(data[0])+int(data[1])) print(eval(data[0]+"+"+data[1]))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,196
s398108285
p00586
u075836834
1458347023
Python
Python3
py
Accepted
30
7536
133
import sys for line in sys.stdin.readlines(): data=line.split() print(int(data[0])+int(data[1])) #print(eval(data[0]+"+"+data[1]))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,197
s899842666
p00586
u075836834
1458347102
Python
Python3
py
Accepted
20
7656
87
while True: try: x,y=map(int,input().split()) print(x+y) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,198
s817588885
p00586
u473221511
1461766968
Python
Python3
py
Accepted
20
7564
184
import sys l = [] for line in sys.stdin: l.append(line) for i in range(len(l)): numl = l[i].split(' ') a = int(numl[0]) b = int(numl[1]) sum = a + b print(sum)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,199
s005235844
p00586
u074121480
1462679082
Python
Python3
py
Accepted
20
7504
85
import sys for line in sys.stdin: a, b = map(int, line.split()) print(a + b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,200
s831216691
p00586
u203261375
1466603766
Python
Python3
py
Accepted
20
7588
75
import sys for i in sys.stdin: a,b = map(int, i.split()) print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,201
s158102181
p00586
u617990214
1468806036
Python
Python3
py
Accepted
20
7648
128
out=[] while True: try: k=list(map(int,input().split(" "))) except: break out.append(k[0]+k[1]) for i in out: print(i)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,202
s405260518
p00586
u146816547
1471792596
Python
Python
py
Accepted
10
6320
107
while True: try: a, b = map(int, raw_input().split(' ')) except EOFError: break print a + b
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,203
s867339711
p00586
u821897729
1475144445
Python
Python
py
Accepted
10
6220
141
import sys score = [] for line in sys.stdin: (a, b) = map(int, line.strip().split()) score.append(a + b) for i in score: print i
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,204
s858399826
p00586
u545973195
1475303003
Python
Python3
py
Accepted
30
7528
154
ans="" while True: try: info=input() except: break if ans!="": ans+="\n" info_2=info.split() ans+=str(int(info_2[0])+int(info_2[1])) print(ans)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,205
s509761892
p00586
u372789658
1475417431
Python
Python3
py
Accepted
20
7484
97
while True: try: print(sum(list(map(int,input().split())))) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,206
s547508547
p00586
u813534019
1475543836
Python
Python
py
Accepted
10
6420
112
while True: try: a=raw_input().split() print int(a[0]) + int(a[1]) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,207
s250259020
p00586
u866596794
1475828105
Python
Python3
py
Accepted
50
7596
105
import sys for line in sys.stdin: line = [int(n) for n in line.strip().split()] print(sum(line))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,208
s441549086
p00586
u392445270
1475828289
Python
Python3
py
Accepted
20
7680
97
import sys for line in sys.stdin: nums = [int(_) for _ in line.split()] print(sum(nums))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,209
s544339275
p00586
u517745281
1475828305
Python
Python3
py
Accepted
20
7588
88
import sys for line in sys.stdin: a, b = [int(x) for x in line.split()] print(a + b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,210
s409999963
p00586
u505912349
1475829532
Python
Python3
py
Accepted
20
7452
109
import sys su = 0 for line in sys.stdin: for x in line.split(): su += int(x) print(su) su = 0
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,211
s503743517
p00586
u774210788
1478524134
Python
Python3
py
Accepted
20
7548
88
import sys for line in sys.stdin: l = line.split() print(int(l[0]) + int(l[1]))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,212
s414057158
p00586
u301729341
1481433854
Python
Python3
py
Accepted
30
7500
115
while True: try: a,b = map(int,input().split()) print(a + b) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,213
s050131452
p00586
u123687446
1482154713
Python
Python3
py
Accepted
20
7532
116
while True: try: a, b = list(map(int,input().split())) except EOFError: break print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,214
s845868496
p00586
u078042885
1483057562
Python
Python3
py
Accepted
30
7596
104
while 1: try: n,m=map(int,input().split()) except EOFError: break print(n+m)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,215
s561798254
p00586
u078042885
1483770934
Python
Python3
py
Accepted
30
7532
65
import sys for l in sys.stdin: print(sum(map(int,l.split())))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,216
s339359997
p00586
u546285759
1483962125
Python
Python3
py
Accepted
20
7568
92
while True: try: print(sum(map(int, input().split()))) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,217
s871727298
p00586
u711765449
1485445853
Python
Python3
py
Accepted
30
7652
113
while True: try: a,b = map(int,input().split()) print(a+b) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,218
s086575135
p00586
u014788538
1487519798
Python
Python3
py
Accepted
20
7604
83
import sys for line in sys.stdin: a, b = map(int, line.split()) print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,219
s181608063
p00586
u243053043
1487947994
Python
Python3
py
Accepted
30
7536
117
try: while True: a, b = [int(x) for x in input().split(' ')] print(a+b) except EOFError: pass
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,220
s462720483
p00586
u858992370
1489384539
Python
Python3
py
Accepted
20
7420
285
import sys val = [] result = [] count = 0 for line in sys.stdin: if line != '\n': for word in line.split(): val.append(int(word)) result.append(sum(val)) val = [] count = count + 1 else: break for x in result: print(x)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,221
s393197893
p00586
u921541953
1489802754
Python
Python3
py
Accepted
20
7616
78
import sys for s in sys.stdin: A, B = map(int, s.split()) print(A + B)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,222
s450706562
p00586
u208157605
1491804863
Python
Python3
py
Accepted
30
7388
141
import sys answers = [] for line in sys.stdin: a,b = list(map(int,line.split())) answers.append(a+b) for a in answers: print(a)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,223
s010911915
p00586
u421983421
1496120428
Python
Python
py
Accepted
10
6376
99
while True: try: inpt = map(int, raw_input().split()) print inpt[0] + inpt[1] except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,224
s725429344
p00586
u825178626
1496162039
Python
Python3
py
Accepted
10
7620
147
# coding: utf-8 # Here your code ! while 1: try: n=list(map(int,input().split())) print(n[0]+n[1]) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,225
s606805498
p00586
u589276934
1496639667
Python
Python3
py
Accepted
30
7496
243
# coding: utf-8 hasContinuousQuestion = True while hasContinuousQuestion: try: valueA, valueB = list(map(int, input().split(" "))) print("{0}".format(valueA + valueB)) except: hasContinuousQuestion = False
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,226
s644191408
p00586
u662126750
1497259013
Python
Python3
py
Accepted
30
7608
115
while True: try: a = map(int, input().split()) print(sum(a)) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,227
s828619802
p00586
u582608581
1499397932
Python
Python3
py
Accepted
20
7388
92
while True: try: print(sum([eval(x) for x in input().split()])) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,228
s766281567
p00586
u600821328
1499949502
Python
Python3
py
Accepted
20
7732
190
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys def main(): for line in sys.stdin: a, b = map(int, line.split()) print(a+b) if __name__ == "__main__": main()
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,229
s785638364
p00586
u501510481
1500021695
Python
Python3
py
Accepted
30
7648
101
import sys for line in sys.stdin: items = line.split() print( int(items[0]) + int(items[1]) )
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,230
s138728550
p00586
u498511622
1501502936
Python
Python3
py
Accepted
20
7532
85
try: while True: a,b=map(int,input().split()) print(a+b) except EOFError: pass
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,231
s934139580
p00586
u350064373
1501502964
Python
Python3
py
Accepted
20
7668
106
while True: try: a, b = map(int, input().split()) print(a+b) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,232
s029740178
p00586
u546285759
1502596470
Python
Python3
py
Accepted
20
7480
92
while True: try: print(sum(map(int, input().split()))) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,233
s479942931
p00586
u748033250
1503550698
Python
Python3
py
Accepted
30
7532
81
while (1): try: a, b = map(int,input().split()) except: break print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,234
s537163934
p00586
u256256172
1506941807
Python
Python3
py
Accepted
30
7676
92
while True: try: print(sum(map(int, input().split()))) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,235
s492211948
p00586
u166520445
1507705991
Python
Python3
py
Accepted
30
7620
175
import sys line = sys.stdin.readlines() top = [0,0,0] for i in range(len(line)): line[i] = list(map(int, line[i].rstrip("\n").split(" "))) print(line[i][0]+line[i][1])
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,236
s925750758
p00586
u742505495
1510820081
Python
Python3
py
Accepted
30
7548
89
while True: try: a,b = map(int,input().split()) print(a+b) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,237
s585769767
p00586
u187646742
1511453077
Python
Python3
py
Accepted
30
7564
98
while True: try: x, y = input().split() print(int(x)+int(y)) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,238
s816947198
p00586
u471400255
1511499224
Python
Python3
py
Accepted
30
7628
133
from sys import stdin Ans = [] for i in stdin: A,B = [int(po) for po in i.split()] Ans.append(A+B) for k in Ans: print(k)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,239
s142779588
p00586
u181768286
1513647644
Python
Python
py
Accepted
10
4624
101
# coding: utf-8 import sys for line in sys.stdin: num = map(int, line.split()) print sum(num)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,240
s546277596
p00586
u205327055
1513863150
Python
Python
py
Accepted
10
4616
103
try: while True: a,b=map(int,raw_input().split()) print (a+b) except: None
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,241
s914768728
p00586
u546285759
1514090331
Python
Python3
py
Accepted
20
5580
92
while True: try: print(sum(map(int, input().split()))) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,242
s137572310
p00586
u011621222
1517278765
Python
Python3
py
Accepted
20
5592
159
while True: try: s=input() a = s.split(' ') print(int(a[0]) + int(a[1])) #do something except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,243
s193657273
p00586
u009288816
1519733952
Python
Python3
py
Accepted
30
5616
118
import sys l = [] for i in sys.stdin: l.append(i.split()) for data in l: print(int(data[0]) + int(data[1]))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,244
s057870168
p00586
u011621222
1520292289
Python
Python3
py
Accepted
20
5604
140
import sys for line in sys.stdin: if line == None or line == '/n': break a,b = line.split(" ") print( int(a) + int(b) )
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,245
s260465075
p00586
u600263347
1521103972
Python
Python3
py
Accepted
20
5588
124
while True: try: A = list(map(int,input().split())) print(A[0]+A[1]) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,246
s460879401
p00586
u043254318
1526318703
Python
Python3
py
Accepted
20
5672
240
import math def get_input(): while True: try: yield ''.join(input()) except EOFError: break N = list(get_input()) for l in range(len(N)): a,b = [int(i) for i in N[l].split()] print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,247
s973214927
p00586
u136916346
1529646861
Python
Python3
py
Accepted
20
5612
84
import sys for l in sys.stdin: a,b=list(map(int,l[:-1].split())) print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,248
s424552813
p00586
u352394527
1530346415
Python
Python3
py
Accepted
20
5580
90
while True: try: print(sum(map(int, input().split()))) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,249
s042763108
p00586
u847467233
1530699942
Python
Python3
py
Accepted
20
5576
123
# AOJ 1000: A + B Problem # Python3 2018.7.4 bal4u while True: try: print(sum(map(int, input().split()))) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,250
s157273991
p00586
u894941280
1344955057
Python
Python
py
Accepted
10
4196
97
while True: try: a = map(int,raw_input().split()) print a[0]+a[1] except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,251
s987137004
p00586
u147801965
1345782466
Python
Python
py
Accepted
20
4200
108
while True: try: a = map(int,raw_input().split()) a,b = a[0],a[1] print a+b except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,252
s008868952
p00586
u575065019
1347718500
Python
Python
py
Accepted
10
4204
169
ans = [] while True: try: temp = raw_input() except EOFError: break a,b = map(int,temp.split()) ans.append(a+b) for i in ans: print i
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,253
s471147463
p00586
u504990413
1352982513
Python
Python
py
Accepted
20
5016
128
while True: try: x = map(int, raw_input().split(" ")) print x[0]+x[1] except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,254
s960885158
p00586
u577457452
1363623085
Python
Python
py
Accepted
10
4200
101
while 1: try: print sum(map(int, raw_input().split())) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,255
s159005811
p00586
u318424563
1366620647
Python
Python
py
Accepted
10
4204
140
while True: try: text = raw_input() a, b = text.split() print int(a) + int(b) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,256
s175171848
p00586
u865312527
1372701423
Python
Python
py
Accepted
10
4196
91
import sys for line in sys.stdin.readlines(): print sum(map(int,line.rstrip().split()))
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,257
s886530993
p00586
u872035937
1384522914
Python
Python
py
Accepted
20
4188
104
while True: try: print sum(map(int, raw_input().split())) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,258
s842152895
p00586
u266872031
1385566360
Python
Python
py
Accepted
10
4180
94
import sys for line in sys.stdin: L=map(int,line.split()) A,B=L[0],L[1] print A+B
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,259
s062126781
p00586
u633068244
1394106169
Python
Python
py
Accepted
10
4176
81
import sys for inp in sys.stdin: i, j = map(int, inp.split()) print i + j
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,260
s021539292
p00586
u350508326
1400170751
Python
Python3
py
Accepted
30
6720
120
while True: try: a, b = map(int, input().split()) print(a+b) except EOFError as e: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,261
s718067854
p00586
u617183767
1400479659
Python
Python
py
Accepted
10
4176
90
import sys for line in sys.stdin.readlines(): a, b = map(int, line.split()) print a + b
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,262
s246083772
p00586
u703446356
1400689690
Python
Python
py
Accepted
10
4184
113
while(True): try: (a, b) = map(int, raw_input().split()) except EOFError: break print "%d" % (a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,263
s299650173
p00586
u703196441
1402107191
Python
Python
py
Accepted
20
4180
108
while 1: try: a, b = raw_input().split() print int(a) + int(b) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,264
s859193470
p00586
u703196441
1402107321
Python
Python
py
Accepted
10
4180
108
while 1: try: a, b = map(int, raw_input().split()) print a + b except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,265
s781457300
p00586
u814278309
1592143308
Python
Python3
py
Accepted
20
5584
102
while 1: try: a,b = map(int,input().split()) print(a+b) except: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,266
s575472580
p00586
u842461513
1588639973
Python
Python3
py
Accepted
20
5580
132
try: while True: a,b = input().split(" ") num = int(a) + int(b) print(num) except EOFError: num = 0
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,267
s702179724
p00586
u668489394
1579072248
Python
Python3
py
Accepted
20
5592
176
if __name__ == '__main__': try: while True: a, b = input().strip().split() print(int(a) + int(b)) except EOFError: pass
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,268
s353403680
p00586
u606731189
1576053348
Python
Python3
py
Accepted
20
5588
109
while True: try: A,B=map(int,input().split()) except EOFError: break print(A+B)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,269
s001967405
p00586
u350155409
1573576652
Python
Python3
py
Accepted
20
5608
89
import sys for s in sys.stdin: a,b = [ int(x) for x in s.split() ] print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,270
s379716554
p00586
u489396453
1571563015
Python
Python3
py
Accepted
20
5584
169
while(True): try: data = input().split() result = 0 for i in data: result += int(i) print(result) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,271
s638284031
p00586
u078106527
1568802472
Python
Python3
py
Accepted
20
5580
119
while True: try: a, b = map(int, input().split()) print(a+b) except EOFError: break
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,272
s952811041
p00586
u074302614
1568154175
Python
Python3
py
Accepted
20
5604
165
import sys ans = lambda a, b: a + b try: while True: a, b = [int(i) for i in input().split()] print(ans(a, b)) except Exception: sys.exit()
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,273
s687586596
p00586
u051789695
1562901286
Python
Python3
py
Accepted
30
5580
99
while True: try: a,b=map(int,input().split()) except: break print(a+b)
p00586
<H1>A + B Problem</H1> <p> Compute A + B. </p> <H2>Input</H2> <p> The input will consist of a series of pairs of integers A and B separated by a space, one pair of integers per line. The input will be terminated by EOF. </p> <H2>Output</H2> <p> For each pair of input integers A and B, you must output the sum...
1 2 10 5 100 20
3 15 120
23,274