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 stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s020291417 | p02400 | u597483031 | 1528473134 | Python | Python3 | py | Runtime Error | 0 | 0 | 80 | r=float(input())
x=math.pi
print("{:.7f}".format(r*r*x),"{:.7f}".format(2*r*x))
|
s329905987 | p02400 | u597483031 | 1528473372 | Python | Python3 | py | Runtime Error | 0 | 0 | 91 | from math import pi
r=int(input())
print("{:.7f}".format(pi*r*r),"{:.7f}".format(2*r*pi))
|
s493759277 | p02400 | u920278525 | 1529070159 | Python | Python3 | py | Runtime Error | 0 | 0 | 117 | Pi = 3.14159265
R = int(input())
M = 2 * R * Pi
E = R ** 2 * Pi
print("{:.10}".format(M))
print("{:.10}".format(E))
|
s605190786 | p02400 | u920278525 | 1529070242 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | Pi = 3.14159265
R = int(input())
M = 2 * R * Pi
E = R ** 2 * Pi
"""
print("{:.10}".format(M))
print("{:.10}".format(E))
"""
print(M)
print(E)
|
s680980579 | p02400 | u920278525 | 1529070255 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | Pi = 3.14159265
R = int(input())
M = 2 * R * Pi
E = R ** 2 * Pi
"""
print("{:.10}".format(M))
print("{:.10}".format(E))
"""
print(M)
print(E)
|
s068825145 | p02400 | u922112509 | 1529117015 | Python | Python3 | py | Runtime Error | 0 | 0 | 155 | # Circle
# Import math.py
from math import pi
radius = int(input())
r = radius
area = r * r * pi
circumference = 2 * r * pi
print(area, circumference)
|
s162549026 | p02400 | u922112509 | 1529117038 | Python | Python3 | py | Runtime Error | 0 | 0 | 155 | # Circle
# Import math.py
from math import pi
radius = int(input())
r = radius
area = r * r * pi
circumference = 2 * r * pi
print(area, circumference)
|
s540163512 | p02400 | u922112509 | 1529117042 | Python | Python3 | py | Runtime Error | 0 | 0 | 155 | # Circle
# Import math.py
from math import pi
radius = int(input())
r = radius
area = r * r * pi
circumference = 2 * r * pi
print(area, circumference)
|
s680756884 | p02400 | u922112509 | 1529117077 | Python | Python3 | py | Runtime Error | 0 | 0 | 172 | # Circle
# Import math.py
from math import pi
radius = int(input())
r = radius
area = r * r * pi
circumference = 2 * r * pi
print(area, end = " ")
print(circumference)
|
s289541938 | p02400 | u568446716 | 1529134179 | Python | Python3 | py | Runtime Error | 0 | 0 | 125 | import math
r = int(input())
area = math.pi * r * r
circle = 2 * math.pi * r
print("{:.8f} {:.8f}".format(area, circle))
|
s677839028 | p02400 | u766693979 | 1529846997 | Python | Python3 | py | Runtime Error | 0 | 0 | 82 | r = input()
r = int( r )
print( 3.141592653589 * r ** 2, 2 * 3.141592653589 * r)
|
s649466864 | p02400 | u726978687 | 1529851616 | Python | Python3 | py | Runtime Error | 0 | 0 | 288 | import math
def solve(line):
r=line[0]
area = round((r*r*math.pi),6)
circumference = round((2*r*math.pi),6)
print('{0} {1}'.format(area,circumference))
def answer():
line = list(map(int,input().split()))
solve(line)
if __name__ =='__main__':
answer()
|
s632371969 | p02400 | u123669391 | 1529985015 | Python | Python3 | py | Runtime Error | 0 | 0 | 87 | r = int(input())
pi = 3.14159265358979
print("{:.6f} {:.6f}".format(r**2*pi, 2*r*pi))
|
s551992216 | p02400 | u123669391 | 1529985037 | Python | Python3 | py | Runtime Error | 0 | 0 | 87 | r = int(input())
pi = 3.14159265358979
print("{:.6f} {:.6f}".format(r**2*pi, 2*r*pi))
|
s949458683 | p02400 | u413456759 | 1366465762 | Python | Python | py | Runtime Error | 0 | 0 | 183 | #!/usr/bin/env python
# coding: utf-8
import math
def main():
r = int(raw_input())
print round(math.pi * (r ** 2), 5), round(math.pi * 2 * r, 5)
if __name__ == '__main__':
main() |
s093552518 | p02400 | u351182591 | 1375200444 | Python | Python | py | Runtime Error | 0 | 0 | 100 | import math
r = int(raw_input())
a = round(math.pi*r**2,6)
l = round(math.pi*r*2,6)
print a,
print l |
s547483788 | p02400 | u140201022 | 1381730298 | Python | Python | py | Runtime Error | 0 | 0 | 64 | o = int(raw_input())
print o*o*3.141592653589,o*2*3.141592653589 |
s140042334 | p02400 | u063179562 | 1390053889 | Python | Python | py | Runtime Error | 0 | 0 | 62 | import math
a = int(raw_input())
print a*2*math.pi,a*a*math.pi |
s081867011 | p02400 | u063179562 | 1390053897 | Python | Python | py | Runtime Error | 0 | 0 | 62 | import math
a = int(raw_input())
print a*2*math.pi,a*a*math.pi |
s866849141 | p02400 | u633068244 | 1393318569 | Python | Python | py | Runtime Error | 0 | 0 | 76 | a = map(int, raw_input().spli())
Pi = 3.141592658979
print a**2*Pi, 2*a*Pi |
s298229197 | p02400 | u633068244 | 1393318609 | Python | Python | py | Runtime Error | 0 | 0 | 78 | a = map(float, raw_input().spli())
Pi = 3.141592658979
print a**2*Pi, 2*a*Pi |
s900154925 | p02400 | u633068244 | 1393318639 | Python | Python | py | Runtime Error | 0 | 0 | 77 | a = map(float, raw_input().spli())
Pi = 3.141592658979
print a*a*Pi, 2*a*Pi |
s126801117 | p02400 | u633068244 | 1393318651 | Python | Python | py | Runtime Error | 0 | 0 | 78 | a = map(float, raw_input().split())
Pi = 3.141592658979
print a*a*Pi, 2*a*Pi |
s252418662 | p02400 | u633068244 | 1393318686 | Python | Python | py | Runtime Error | 0 | 0 | 91 | a = map(float, raw_input().split())
Pi = 3.141592658979
print("%f %f" % (a*a*Pi, 2*a*Pi)) |
s848674603 | p02400 | u633068244 | 1393318700 | Python | Python | py | Runtime Error | 0 | 0 | 91 | a = map(float, raw_input().split())
Pi = 3.141592658979
print("%f %f" % (a*a*Pi, 2*a*Pi)) |
s637470491 | p02400 | u633068244 | 1393318726 | Python | Python | py | Runtime Error | 0 | 0 | 91 | a = map(float, raw_input().split())
Pi = 3.141592658979
print("%f %f" % (a*a*Pi, 2*a*Pi)) |
s358508896 | p02400 | u633068244 | 1393318849 | Python | Python | py | Runtime Error | 0 | 0 | 91 | a = map(float, raw_input().split())
Pi = 3.141592658979
print("%f %f" % (a*a*Pi, 2*a*Pi)) |
s486900449 | p02400 | u633068244 | 1393318864 | Python | Python | py | Runtime Error | 0 | 0 | 98 | a = map(float, raw_input().split())
Pi = float(3.141592658979)
print("%f %f" % (a*a*Pi, 2*a*Pi)) |
s736039442 | p02400 | u193025715 | 1394677948 | Python | Python | py | Runtime Error | 0 | 0 | 138 | #!/usr/bin/python
import math
r = int(raw_input())
area = r * r * math.pi
length = 2 * r * math.pi
print str(area) + " " + str(length) |
s761040184 | p02400 | u193025715 | 1394677965 | Python | Python | py | Runtime Error | 0 | 0 | 161 | #!/usr/bin/python
import math
import sys
r = int(raw_input())
area = r * r * math.pi
length = 2 * r * math.pi
print str(area) + " " + str(length)
sys.exit() |
s240732272 | p02400 | u193025715 | 1394677994 | Python | Python | py | Runtime Error | 0 | 0 | 161 | #!/usr/bin/python
import math
import sys
r = int(raw_input())
area = r * r * math.pi
length = 2 * r * math.pi
print str(area) + " " + str(length)
sys.exit() |
s513159915 | p02400 | u193025715 | 1394678073 | Python | Python | py | Runtime Error | 0 | 0 | 168 | #!/usr/bin/python
import math
import sys
r = int(raw_input())
area = r * r * math.pi
length = 2 * r * math.pi
print str(area) + " " + str(length) + "\n"
sys.exit() |
s967119660 | p02400 | u193025715 | 1394678083 | Python | Python | py | Runtime Error | 0 | 0 | 168 | #!/usr/bin/python
import math
import sys
r = int(raw_input())
area = r * r * math.pi
length = 2 * r * math.pi
print str(area) + " " + str(length) + "\n"
sys.exit() |
s754012643 | p02400 | u193025715 | 1394678154 | Python | Python | py | Runtime Error | 0 | 0 | 1000 | #!/usr/bin/python
import math
import sys
pi =3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450
284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610... |
s742898377 | p02400 | u193025715 | 1394678164 | Python | Python | py | Runtime Error | 0 | 0 | 178 | #!/usr/bin/python
import math
import sys
pi =3.141592653589
r = int(raw_input())
area = r * r * pi
length = 2 * r * pi
print str(area) + " " + str(length) + "\n"
sys.exit() |
s955672735 | p02400 | u193025715 | 1394678235 | Python | Python | py | Runtime Error | 0 | 0 | 166 | #!/usr/bin/python
import sys
pi =3.141592653589
r = int(raw_input())
area = r * r * pi
length = 2 * r * pi
print str(area) + " " + str(length) + "\n"
sys.exit() |
s432539096 | p02400 | u193025715 | 1394678250 | Python | Python | py | Runtime Error | 0 | 0 | 147 | import sys
pi =3.141592653589
r = int(raw_input())
area = r * r * pi
length = 2 * r * pi
print str(area) + " " + str(length) + "\n"
sys.exit() |
s166704383 | p02400 | u131984977 | 1403075325 | Python | Python3 | py | Runtime Error | 0 | 0 | 157 | import sys
import math
r = int(sys.stdin.readline())
area = r ** 2 * math.pi
circumference = r * 2 * math.pi
print(round(area, 5), round(circumference, 5)) |
s148725933 | p02401 | u917722865 | 1530789939 | Python | Python3 | py | Runtime Error | 0 | 0 | 487 | #include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int a, b;
int result[1001];
char op;
int i = 0;
while(scanf("%d %c %d", &a, &op, &b), op!='?')
{
switch(op)
{
case '+':
result[i++] = a + b;
break;
case '-':
result[i++] = a - b;
break;
case '*':
result[i++... |
s077241757 | p02401 | u525366883 | 1535159735 | Python | Python | py | Runtime Error | 0 | 0 | 213 | while 1:
a, b, c = raw_input().split()
if b == "?":
break
a = int(a)
c = int(c)
if b == "+":
print a+b
elif b == "*":
print a*b
elif b == "/"
print a//b
|
s029237446 | p02401 | u525366883 | 1535159754 | Python | Python | py | Runtime Error | 0 | 0 | 213 | while 1:
a, b, c = raw_input().split()
if b == "?":
break
a = int(a)
c = int(c)
if b == "+":
print a+c
elif b == "*":
print a*c
elif b == "/"
print a//c
|
s051931706 | p02401 | u277375424 | 1540216038 | Python | Python3 | py | Runtime Error | 0 | 0 | 326 | while True:
table = map(int,input().split())
a = int(table[0])
op = table[1]
b = int(table[2])
if op == "?":
break
if op == "+":
print("%d" %(a+b))
elif op == "-":
print("%d"%(a-b))
elif op == "*":
print("%d"%(a*b))
else:
print("%d"%(... |
s577655063 | p02401 | u281808376 | 1540297404 | Python | Python3 | py | Runtime Error | 0 | 0 | 292 | import math
while True:
s=input().split()
if s[1]==?:
break
if s[1]==+:
print(int(s[0])+int(s[2]))
if s[1]==-:
print(int(s[0])-int(s[2]))
if s[1]==*:
print(int(s[0])*int(s[2]))
if s[1]==/:
print(math.floor(int(s[0])/int(s[2])))
|
s290969675 | p02401 | u281808376 | 1540297439 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | import math
while True:
s=input().split()
if s[1]==?:
break
elif s[1]==+:
print(int(s[0])+int(s[2]))
elif s[1]==-:
print(int(s[0])-int(s[2]))
elif s[1]==*:
print(int(s[0])*int(s[2]))
elif s[1]==/:
print(math.floor(int(s[0])/int(s[2])))
|
s571725736 | p02401 | u281808376 | 1540297521 | Python | Python3 | py | Runtime Error | 0 | 0 | 300 | import math
while True:
s=input().split()
if s[0]==0:
break
elif s[1]==+:
print(int(s[0])+int(s[2]))
elif s[1]==-:
print(int(s[0])-int(s[2]))
elif s[1]==*:
print(int(s[0])*int(s[2]))
elif s[1]==/:
print(math.floor(int(s[0])/int(s[2])))
|
s169881814 | p02401 | u281808376 | 1540297546 | Python | Python3 | py | Runtime Error | 0 | 0 | 310 | import math
while True:
s=input().split()
if s[0]=="?":
break
elif s[1]=="+":
print(int(s[0])+int(s[2]))
elif s[1]=="-":
print(int(s[0])-int(s[2]))
elif s[1]=="*":
print(int(s[0])*int(s[2]))
elif s[1]=="/":
print(math.floor(int(s[0])/int(s[2])))
|
s133065208 | p02401 | u075006557 | 1540457427 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | while True:
a = int(input())
c = input()
b = int(input())
if(c == '+'):
print(a + b)
elif(c == '-'):
print(a - b)
elif(c == '*'):
print(a * b)
elif(c == '/')
print(a / b)
else:
break
|
s183466740 | p02401 | u075006557 | 1540457551 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | while True:
a = int(input())
c = str(input())
b = int(input())
if(c == '+'):
print(a + b)
elif(c == '-'):
print(a - b)
elif(c == '*'):
print(a * b)
elif(c == '/')
print(a / b)
else:
break
|
s478371105 | p02401 | u075006557 | 1540457708 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
a, b, c = map(str, input().split())
a = int(a)
c = int(c)
if(c == '+'):
print(a + b)
elif(c == '-'):
print(a - b)
elif(c == '*'):
print(a * b)
elif(c == '/')
print(a / b)
else:
break
|
s745271696 | p02401 | u901205536 | 1540814776 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | while True:
a, op, b = map(int, inptut().split(" "))
if a == 0 and b == 0:
break
if op == "+":
c = a + b
elif op == "-":
c = a - b
elif op == "*":
c = a + b
else
c = a / b
print(c)
|
s029619273 | p02401 | u901205536 | 1540815058 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | while True:
a, op, b = map(int, inptut().split(" "))
if a == 0 and b == 0:
break
if op == "+":
c = a + b
elif op == "-":
c = a - b
elif op == "*":
c = a * b
else
c = a / b
print(c)
|
s984127198 | p02401 | u901205536 | 1540815076 | Python | Python3 | py | Runtime Error | 0 | 0 | 253 | while True:
a, op, b = map(int, input().split(" "))
if a == 0 and b == 0:
break
if op == "+":
c = a + b
elif op == "-":
c = a - b
elif op == "*":
c = a * b
else
c = a / b
print(c)
|
s926310738 | p02401 | u901205536 | 1540815109 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | while True:
a, op, b = map(int, input().split(" "))
if a == 0 and b == 0:
break
if op == "+":
c = a + b
elif op == "-":
c = a - b
elif op == "*":
c = a * b
else:
c = a / b
print(c)
|
s740971831 | p02401 | u901205536 | 1540815153 | Python | Python3 | py | Runtime Error | 0 | 0 | 275 | while True:
a, op, b = map(str, input().split(" "))
if a == 0 and b == 0:
break
a, b = int(a), int(b)
if op == "+":
c = a + b
elif op == "-":
c = a - b
elif op == "*":
c = a * b
else:
c = a / b
print(c)
|
s942365981 | p02401 | u260980560 | 1540907155 | Python | Python3 | py | Runtime Error | 20 | 5572 | 99 | S = [s.strip().replace("/","//") for s in open(0).readlines()][:-1]
print(*map(eval, S), sep='\n')
|
s255448498 | p02401 | u513141069 | 1541061739 | Python | Python3 | py | Runtime Error | 0 | 0 | 249 | while True:
a, op b = input().split()
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) - int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) // int(b))
|
s251413331 | p02401 | u596993252 | 1541061871 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | while(True):
a=int(input())
op=char(input())
b=int(input())
if(op=='?'):
break
elif(op=='+'):
print(a+b)
elif(op=='-'):
print(a-b)
elif(op=='*'):
print(a*b)
elif(op=='/'):
print(a//b)
|
s755131461 | p02401 | u596993252 | 1541061924 | Python | Python3 | py | Runtime Error | 0 | 0 | 245 | while(True):
a,op,b=map(int,input().split())
if(op=='?'):
break
elif(op=='+'):
print(a+b)
elif(op=='-'):
print(a-b)
elif(op=='*'):
print(a*b)
elif(op=='/'):
print(a//b)
|
s771941962 | p02401 | u587288800 | 1541061953 | Python | Python3 | py | Runtime Error | 0 | 0 | 235 | while True
a, op b = input().split()
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) - int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) / int(b))
|
s350528841 | p02401 | u587288800 | 1541061960 | Python | Python3 | py | Runtime Error | 0 | 0 | 236 | while True
a, op b = input().split()
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) - int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) // int(b))
|
s576311543 | p02401 | u893058769 | 1541062034 | Python | Python3 | py | Runtime Error | 0 | 0 | 201 | while True:
a,op,b=input().split()
if(op==+) print(f"{a+b}")
else if(op==-) print(f"{a-b}")
else if(op==*) print(f"{a*b}")
else if(op==/) print(f"{a//b}")
else if(op==?) break
|
s780557332 | p02401 | u893058769 | 1541062049 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | while True:
a,op,b=input().split()
if(op=='+') print(f"{a+b}")
else if(op==-) print(f"{a-b}")
else if(op==*) print(f"{a*b}")
else if(op==/) print(f"{a//b}")
else if(op==?) break
|
s031895946 | p02401 | u109843748 | 1545484010 | Python | Python3 | py | Runtime Error | 20 | 5628 | 171 | import sys,math
def solve():
while True:
s = input()
if s == "0 ? 0":
break
else:
print(int(eval(s)//1))
solve()
|
s236625372 | p02401 | u962909487 | 1545839203 | Python | Python3 | py | Runtime Error | 0 | 0 | 292 | while True:
table= input().split()
a = table[0]
op = table[1]
b = table[-1]
if op = '?':
break
if op = '+':
print(a+b)
elif op ='-':
print(a-b)
elif op ='*':
print(a*b)
else:
print(a//b)
|
s049157295 | p02401 | u962909487 | 1545839249 | Python | Python3 | py | Runtime Error | 0 | 0 | 302 | while True:
table= input().split()
a = int(table[0])
op = table[1]
b = int(table[-1])
if op = '?':
break
if op = '+':
print(a+b)
elif op ='-':
print(a-b)
elif op ='*':
print(a*b)
else:
print(a//b)
|
s265435159 | p02401 | u062933726 | 1546060119 | Python | Python3 | py | Runtime Error | 0 | 0 | 263 | while True:
table=input().split()
a=int(table[0])
op=table[1]
b=int(table[2])
if op=='?':
break
elif op=='+':
print("%d" %(a+b))
elif op=='-':
print("%d" %(a-b))
elif op=='*':
print("%d" %(a*b))
elif op=='/':
print("%d" %(a/b))
|
s687866288 | p02401 | u634490486 | 1546081078 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | from sys import stdin
while True:
a, op, b = stdin.readline().rstrip().split()
else if op == "+":
print(int(a)+int(b))
else if op == "-":
print(int(a)-int(b))
else if op == "*":
print(int(a)*int(b))
else if op == "/":
print(int(a)//int(b))
else: # op == "?"
... |
s195568033 | p02401 | u634490486 | 1546081151 | Python | Python3 | py | Runtime Error | 0 | 0 | 330 | from sys import stdin
while True:
a, op, b = stdin.readline().rstrip().split()
else if op == '+':
print(int(a)+int(b))
else if op == '-':
print(int(a)-int(b))
else if op == '*':
print(int(a)*int(b))
else if op == '/':
print(int(a)//int(b))
else: # op == '?'
... |
s014396327 | p02401 | u498462680 | 1546258704 | Python | Python3 | py | Runtime Error | 0 | 0 | 314 | a,op,b = [float(i) for i in input().split()]
if op == "?":
break
else:
if op == "+":
ans = a + b
elif op == "-":
ans = a-b
elif op == "*":
ans = a * b
else:
rem = a%b
if rem == 0:
ans = a/b
else:
ans = int(a/b)
print(ans)
|
s397285341 | p02401 | u498462680 | 1546258857 | Python | Python3 | py | Runtime Error | 0 | 0 | 409 | while True
a,op,b = input().split()
a = float(a)
b = float(b)
if op == "?":
break
else:
if op == "+":
ans = a + b
elif op == "-":
ans = a-b
elif op == "*":
ans = a * b
else:
rem = a%b
if rem == 0:
... |
s542937804 | p02401 | u733357255 | 1551509145 | Python | Python3 | py | Runtime Error | 0 | 0 | 193 | a,op,b = input().split()
a,b = int(a),int(b)
while True:
if op == +:
print(a+b)
elif op == -:
print(a-b)
elif op == *:
print(a*b)
elif op == /:
print(a/b)
elif op == ?:
break
|
s427956811 | p02401 | u733357255 | 1551509443 | Python | Python3 | py | Runtime Error | 0 | 0 | 470 | '''
a,op,b = input().split()
a,b = int(a),int(b)
'''
###############################################################
#whileの中に入れないと同じデータセットでの計算をずっとし続ける#
###############################################################
while True:
a,op,b = input().split()
a,b = int(a),int(b)
if op == +:
print(a+b)
elif op == -:... |
s310182210 | p02401 | u733357255 | 1551509479 | Python | Python3 | py | Runtime Error | 0 | 0 | 472 | '''
a,op,b = input().split()
a,b = int(a),int(b)
'''
###############################################################
#whileの中に入れないと同じデータセットでの計算をずっとし続ける#
###############################################################
while True:
a,op,b = input().split()
a= int(a)
b = int(b)
if op == +:
print(a+b)
elif op == ... |
s511821021 | p02401 | u175224634 | 1551539965 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | while True:
a, op, b = input().split() # 3変数ともに文字列として読み込む
a = int(a) # a を整数に変換
b = int(b) # b を整数に変換
if op == ?:
break
else:
print(f'a op b')
|
s145615494 | p02401 | u638889288 | 1555899675 | Python | Python3 | py | Runtime Error | 0 | 0 | 250 | while True:
a,op,b=map(istr,input().split())
a=int(a)
b=int(b)
if op=="?":
break
if op=="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
else:
print(int(a/b))
|
s140085987 | p02401 | u605451279 | 1555937706 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | x = input().split()
a = int(x[0])
op = x[1]
b = int(x[2])
for i in I:
if op == "+":
A = a + b
prnit(A)
elif op == "-":
B = a - b
print(B)
elif op == "*":
C = a * b
print(C)
elif op == "/":
D = a // b
print(D)
elif op == "?":
break
|
s160991063 | p02401 | u093488647 | 1556002414 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | import math
data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])
ans = []
while True:
if b == '+':
ans += a+c
elif b == '-':
ans += a-c
elif b == '*':
ans += a*c
elif b == '/':
ans += math.floor(a/c)
elif b == '?':
break
else:
break
for output in ans:
print(output)
|
s505738635 | p02401 | u093488647 | 1556002440 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | import math
data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])
ans = []
while True:
if b == '+':
ans += a+c
elsif b == '-':
ans += a-c
elsif b == '*':
ans += a*c
elsif b == '/':
ans += math.floor(a/c)
elsif b == '?':
break
else:
break
for output in ans:
print(output)
|
s975746894 | p02401 | u093488647 | 1556002508 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | import math
data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])
ans = []
while True:
if b == '+':
ans += a+c
elif b == '-':
ans += a-c
elif b == '*':
ans += a*c
elif b == '/':
ans += math.floor(a/c)
elif b == '?':
break
else:
break
for output in ans:
print(output)
|
s258416547 | p02401 | u252054808 | 1556175175 | Python | Python3 | py | Runtime Error | 0 | 0 | 102 | while(True){
f = input()
s = f.split()
if s[1] == '?':
break
print(eval(f))
}
|
s213145609 | p02401 | u252054808 | 1556175659 | Python | Python3 | py | Runtime Error | 0 | 0 | 177 | while(True):
f = input()
s = f.split()
if(s[1] == '?'):
break
if(s[1] = '/'):
print((int)(s[0]) // (int)(s[1]))
else:
print(eval(f))
|
s686090576 | p02401 | u252054808 | 1556175669 | Python | Python3 | py | Runtime Error | 20 | 5560 | 178 | while(True):
f = input()
s = f.split()
if(s[1] == '?'):
break
if(s[1] == '/'):
print((int)(s[0]) // (int)(s[1]))
else:
print(eval(f))
|
s656419896 | p02401 | u592815095 | 1556204379 | Python | Python3 | py | Runtime Error | 20 | 5552 | 66 | a=input()
while a!="0 ? 0":
print(int(eval(a)))
a=input()
|
s674311086 | p02401 | u592815095 | 1556204415 | Python | Python3 | py | Runtime Error | 0 | 0 | 69 | a=input()
while a[2]!=""?"0 ? 0""":
print(eval(a))
a=input()
|
s160151908 | p02401 | u592815095 | 1556204453 | Python | Python3 | py | Runtime Error | 20 | 5556 | 65 | a=input()
while a[2]!="?":
print(int(eval(a)))
a=input()
|
s024319204 | p02401 | u592815095 | 1556204542 | Python | Python3 | py | Runtime Error | 20 | 5552 | 87 | a=input()
while a[2]!="?":
print(eval(a.strip().replace("/", "//")))
a=input()
|
s601249198 | p02401 | u521569208 | 1556351497 | Python | Python3 | py | Runtime Error | 20 | 5608 | 714 | listA=[]
listOP=[]
listB=[]
count=0
while True:
a,op,b=input().split()
listA.append(int(a))
listOP.append(op)
listB.append(int(b))
if a=="0" and op=="?" and b=="0":
del listA[len(listA)-1]
del listOP[len(listOP)-1]
del listB[len(listB)-1]
break
#入力パートここまで。計算出力パートここから
... |
s321057966 | p02401 | u202430481 | 1556419474 | Python | Python3 | py | Runtime Error | 0 | 0 | 543 | i = 100
for i in range (i):
a_list = [str(x) for x in input().split()]
a = int(a_list[0])
b = int(a_list[2])
op = a_list[1]
if op == '+':
ab = a + b
print(ab)
i = i + 1
continue
elif op == '-':
ab = a - b
print(ab)
i = i + 1
continu... |
s725872742 | p02401 | u202430481 | 1556419500 | Python | Python3 | py | Runtime Error | 0 | 0 | 543 | i = 100
for i in range (i):
a_list = [str(x) for x in input().split()]
a = int(a_list[0])
b = int(a_list[2])
op = a_list[1]
if op == '+':
ab = a + b
print(ab)
i = i + 1
continue
elif op == '-':
ab = a - b
print(ab)
i = i + 1
continu... |
s436160774 | p02401 | u344890307 | 1556519627 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
a,op,b=input().split()
a=int(a)
b=int(b)
if op == "+":
print(a+b)
elif op =="-":
print(a-b)
elif op =="*":
print(a*b)
elif op =="/":
print(a/b)
elif a=="?" or b=="?" or c=="?":
break
|
s473586080 | p02401 | u344890307 | 1556520444 | Python | Python3 | py | Runtime Error | 0 | 0 | 315 | def main():
operator={
"+":lambda x,y: x + y,
"-":lambda x,y: x - y,
"*":lambda x,y: x * y,
"/":lambda x,y: x / y,
}
while True:
a,op,b=input().split()
if op == "?":
break
print("d".format(opertor[op](int(a),int(b))))
if __name__=='__main__':
main()
|
s505240516 | p02401 | u814278309 | 1556676202 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | a, op, b=input().split()
a=int(a)
b=int(b)
if op=='+':
print(a+b)
elif op=='-':
print(a-b)
elif op=='*':
print(a*b)
elif op=='/':
print(a//b)
else:
break
|
s552688051 | p02401 | u344890307 | 1556677207 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | while True:
data = input().split()
a = int(data[0])
op = data[1]
b=int(data[2])
if op=='0':
break
if op=='+':
print("{:d}".format(a+b))
elif op=='-':
print("{:d}".format(a-b))
elif op=='/':
print("{:d}".format(a/b))
elif op=="*":
print("{:d}".format(a*b))
|
s736815145 | p02401 | u344890307 | 1556677248 | Python | Python3 | py | Runtime Error | 0 | 0 | 301 | while True:
data = input().split()
a = int(data[0])
op = data[1]
b=int(data[2])
if op=='0':
break
if op=='+':
print("{:d}".format(a+b))
elif op=='-':
print("{:d}".format(a-b))
elif op=='/':
print("{:d}".format(a/b))
elif op=="*":
print("{:d}".format(a*b))
|
s762730131 | p02401 | u344890307 | 1556677300 | Python | Python3 | py | Runtime Error | 20 | 5596 | 301 | while True:
data = input().split()
a = int(data[0])
op = data[1]
b=int(data[2])
if op=='?':
break
if op=='+':
print("{:d}".format(a+b))
elif op=='-':
print("{:d}".format(a-b))
elif op=='/':
print("{:d}".format(a/b))
elif op=="*":
print("{:d}".format(a*b))
|
s652146271 | p02401 | u344890307 | 1556677537 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | while True:
a,op,b = input().split()
if op=='?':
break
elif op=='+':
print("{:d}".format(a+b))
elif op=='-':
print("{:d}".format(a-b))
elif op=='/':
print("{:d}".format(a//b))
elif op=="*":
print("{:d}".format(a*b))
|
s876148037 | p02401 | u344890307 | 1556677544 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | while True:
a,op,b = input().split()
if op=='?':
break
elif op=='+':
print("{:d}".format(a+b))
elif op=='-':
print("{:d}".format(a-b))
elif op=='/':
print("{:d}".format(a//b))
elif op=="*":
print("{:d}".format(a*b))
|
s584502919 | p02401 | u344890307 | 1556677671 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | while True:
a,op,b = input().split()
if op=='?':
break
elif op=='+':
print("{:d}".format(a+b))
elif op=='-':
print("{:d}".format(a-b))
elif op=='/':
print("{:d}".format(a//b))
elif op=="*":
print("{:d}".format(a*b))
|
s168179648 | p02401 | u630518143 | 1556723678 | Python | Python3 | py | Runtime Error | 20 | 5608 | 588 | ops = []
kekka = []
while True:
op = [e for e in input().split()]
if op[1]=="?":
break
ops.append(op)
for i in range(len(ops)):
if ops[i][1]=="+":
sum = int(ops[i][0]) + int(ops[i][2])
kekka.append(sum)
elif ops[i][1]=="-":
hiku = int(ops[i][0]) - int(ops[i][2])
... |
s190462597 | p02401 | u345942558 | 1558934112 | Python | Python3 | py | Runtime Error | 0 | 0 | 192 | a , op , b = input().split()
a = int(a)
b = int(b)
if op == "?":
break
elif op == "+":
print(a+b)
elif op == "-":
print(a-b)
elif op == "*":
print(a*b)
elif op == "/":
print(a//b)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.