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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s253367613 | p03997 | u318661636 | 1601295470 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9100 | 51 | a,b,h = map(int,input().split())
print((a+b)*h//2) |
s078946294 | p03997 | u318661636 | 1601295385 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9088 | 51 | a,b,h = map(int,input().split())
print((a+b)*h//2) |
s985092681 | p03997 | u521323621 | 1601168758 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9088 | 71 | a = int(input())
b = int(input())
c = int(input())
print((a + b)*h//2) |
s953214614 | p03997 | u083184913 | 1600799512 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8876 | 71 | =int(input())
b=int(input())
h=int(input())
s=(a+b)*h/2
print(int(s)) |
s724742958 | p03997 | u381585104 | 1600071768 | Python | Python (3.8.2) | py | Runtime Error | 19 | 9032 | 69 | a = int(input())
b = int(input())
c = int(input())
print((a+b)*h//2) |
s510135134 | p03997 | u434630332 | 1599889389 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9096 | 77 | a, b, h = map(int, input().split())
answer = (a + b) * h // 2
print(answer) |
s069865017 | p03997 | u434630332 | 1599889243 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9132 | 76 | a, b, h = map(int, input().split())
answer = (a + b) * h / 2
print(answer) |
s516510598 | p03997 | u666550725 | 1599879846 | Python | PyPy3 (7.3.0) | py | Runtime Error | 97 | 74808 | 59 | a, b, h = map(int, input().split())
print((a + b) * h // 2) |
s911989284 | p03997 | u692711472 | 1599782146 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9088 | 73 | (a,b,c) = (int(input()),int(input()),int(input()))
s = (a+b)*h/2
print(s) |
s695170755 | p03997 | u823885866 | 1599504352 | Python | PyPy3 (7.3.0) | py | Runtime Error | 87 | 74744 | 468 | import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce
rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rf = lambda: map(float, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7
print('test') |
s810686727 | p03997 | u801274036 | 1599085015 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8984 | 55 | a = [int(input()) for i in range(5)]
(a[0]+a[1])*a[2]/2 |
s472800817 | p03997 | u347397127 | 1598835190 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9048 | 48 | a,b,c=map(int,input().split())
print((a+b)*c//2) |
s497621508 | p03997 | u896741788 | 1598657170 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8992 | 52 | print(eval('(i*i)*i//2'.replace('i','int(input()'))) |
s148089758 | p03997 | u896741788 | 1598656592 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8960 | 46 | a,b,c=eval('int(input())'*3)
print((a+b)*h//2) |
s381848307 | p03997 | u642012866 | 1598631530 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8900 | 49 | print((int(input())+int(input()))*int(input()//2) |
s242497895 | p03997 | u779830746 | 1598408494 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9020 | 107 | # 入力
a, b, h = map(int, input().split())
# 処理
answer = (a + b) * h /2
# 出力
print(int(answer)) |
s655158991 | p03997 | u779830746 | 1598407968 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9072 | 102 | # 入力
a, b, h = map(int, input().split())
# 処理
answer = (a + b) * h /2
# 出力
print(answer) |
s214643900 | p03997 | u808569469 | 1598405266 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9092 | 60 | a, b, h = map(int, input().split())
print((a + b) * h / 2)
|
s383886009 | p03997 | u434630332 | 1598398416 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8864 | 68 | a = input(int)
b = input(int)
h = input(int)
print((a + b) * h / 2) |
s342323028 | p03997 | u434630332 | 1598398360 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9052 | 59 | a, b, h = map(int, input().split())
print((a + b) * h / 2) |
s233036835 | p03997 | u434630332 | 1598398329 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9104 | 76 | a, b, h = map(int, input().split())
answer = (a + b) * h / 2
print(answer) |
s177178238 | p03997 | u546853743 | 1598313365 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9016 | 61 | a=int(input())
b=int(input())
c=int(input())
print((b+a)*h/2) |
s529911380 | p03997 | u546853743 | 1598312812 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9028 | 41 | a,b,h=int(input.split())
print((a+b)*h/2) |
s196293663 | p03997 | u434630332 | 1598144765 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9024 | 76 | a, b, c = map(int, input().split())
answer = (a + b) * c / 2
print(answer) |
s114340775 | p03997 | u814265211 | 1597626231 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9116 | 66 | a, b, h = [input() for _ in range(3)]
print(int((a + b) * h / 2))
|
s013281981 | p03997 | u313043608 | 1597621382 | Python | Python (3.8.2) | py | Runtime Error | 19 | 9116 | 49 | a,b,h=map(int,input().split())
print((a+b)*h//2)
|
s373137219 | p03997 | u313043608 | 1597621200 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9036 | 48 | a,b,h=map(int,input().split())
print((a+b)*h/2)
|
s076056712 | p03997 | u313043608 | 1597621141 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9024 | 45 | a,b,h=map(int,input().split())
print((a+b)/h) |
s423488634 | p03997 | u249987458 | 1597033404 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8960 | 73 | a = int(input())
b = int(input())
h = int(input())
print(in(((a+b)*h)/2)) |
s040047719 | p03997 | u629607744 | 1596911917 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8840 | 69 | a = int(input()
b = int(input())
h = int(input())
print( (a+b)*h//2 ) |
s779145400 | p03997 | u552738814 | 1596833701 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8880 | 115 | list = []
for i in range(3):
list.append(int(input()))
area = (list[0]+list[1])*list[2]/2)
print(int(area)) |
s927576248 | p03997 | u455957070 | 1596805100 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9044 | 94 | a = int(input().split())
b = int(input().split())
h = int(input().split())
print(((a+b)*h)//2) |
s594973946 | p03997 | u250662864 | 1596449803 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9172 | 80 | a = int(input())
b = int(input())
h = int(input())
area = 0.5(a+b)*h
print(area) |
s645777947 | p03997 | u477696265 | 1596249576 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9032 | 126 | a=input()
b=input()
c=input()
def method_name():
print=str((a+b)*c/2)
return method_name(print)
print = method_name() |
s661577468 | p03997 | u477696265 | 1596245989 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9032 | 72 | a=int(raw_input())
b=int(raw_input())
h=int(raw_input())
print (a+b)*h/2 |
s840446616 | p03997 | u477696265 | 1596245912 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9088 | 61 | a,b,c=(int(x) for x in input().split())
d=(a+b)*c/2
print(d)
|
s100961777 | p03997 | u045793300 | 1595686644 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8928 | 66 | a, b, h = [int(input()) for _ in range(3)]
print((a+b)*h / 2)
|
s040952656 | p03997 | u045793300 | 1595686359 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8932 | 58 | a, b, h = map(int(input().split())
print((a+b)*h / 2)
|
s406702516 | p03997 | u045793300 | 1595686303 | Python | Python (3.8.2) | py | Runtime Error | 19 | 8936 | 65 | a, b, h = (int(input()) for i in range(3))
print((a+b)*h / 2) |
s929311442 | p03997 | u176068070 | 1595006099 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9140 | 62 | a=int(input())
b=int(input())
c=int(input())
print((a+b)*h/2) |
s830376365 | p03997 | u316603606 | 1594411486 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8948 | 75 | a = int (input ())
b = int (input ())
h = int (input ()/2)
print ((a+b)*h)
|
s865843245 | p03997 | u786020649 | 1594408883 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9120 | 184 | import sys
def main(a,b,h):
reuturn (a+b)*h//2
a =int(sys.stdin.readline().strip())
b =int(sys.stdin.readline().strip())
h =int(sys.stdin.readline().strip())
print(main(a,b,h))
|
s968064726 | p03997 | u786020649 | 1594408842 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8916 | 183 | import sys
def main(a,b,h)
reuturn (a+b)*h//2
a =int(sys.stdin.readline().strip())
b =int(sys.stdin.readline().strip())
h =int(sys.stdin.readline().strip())
print(main(a,b,h))
|
s956704925 | p03997 | u786020649 | 1594408793 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8904 | 180 | import sys
def main(a,b,h)
reuturn (a+b)*h//2
a =int(sys.stdin.readlin().strip())
b =int(sys.stdin.readlin().strip())
h =int(sys.stdin.readlin().strip())
print(main(a,b,h))
|
s734494107 | p03997 | u052838115 | 1594343987 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9144 | 47 | a,b,h=map(int,input().split())
print((a+b)*h/2) |
s443328512 | p03997 | u052838115 | 1594343960 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9156 | 52 | a,b,h=map(int,input().split())
print(int((a+b)*h/2)) |
s698907992 | p03997 | u797641184 | 1593367961 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9004 | 11 | print() |
s190182072 | p03997 | u209275335 | 1593151295 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9032 | 49 | a,b,c = map(int,input().split())
print((a+b)*h/2) |
s022197860 | p03997 | u325119213 | 1593014991 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9028 | 113 | def actual(a, b, h):
return int((a + b) * h / 2)
a, b, h = map(int, input().split())
print(actual(a, b, h))
|
s839190706 | p03997 | u325119213 | 1593014963 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8964 | 104 | def actual(a, b, h):
return int((a + b) * h / 2)
a, b, h = map(int, input())
print(actual(a, b, h)) |
s875232295 | p03997 | u304599973 | 1592682374 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9080 | 48 | a,b,h=[int(i) for i in input()]
print((a+b)*h/2) |
s307963693 | p03997 | u863397945 | 1592159676 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 47 | a=input()
b=input()
h=input()
print((a+b)*h/2) |
s130646518 | p03997 | u435721973 | 1590992044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | print(int((int(input()) + int(input)) * int(input()) / 2)) |
s423299965 | p03997 | u888100977 | 1590838833 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a - int(input())
b = int(input())
h = int(input())
print((a+b)*h//2) |
s467657679 | p03997 | u497952650 | 1590473938 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 51 | a,b,h = map(int,input().split())
print((a+b)*h//2) |
s172089878 | p03997 | u497952650 | 1590473923 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 52 | a,b,h = map(int,input().split())]
print((a+b)*h//2) |
s333565539 | p03997 | u735975757 | 1590454044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a = input()
b = input()
h = input()
area = (a + b)*h/2
print(area) |
s388015477 | p03997 | u885627844 | 1590426509 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 14 | (a + b)x h / 2 |
s238425521 | p03997 | u929227298 | 1590112888 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 80 | a = int(input())
b = int(input())
c = int(input())
area = (a+b)*h%2
print(area) |
s952368548 | p03997 | u929227298 | 1590111846 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 9 | (a+b)*h%2 |
s179797833 | p03997 | u941047297 | 1590021686 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | a, b, h = list(map(int, input().split()))
print((a + b) * h // 2) |
s769949035 | p03997 | u456394640 | 1589750522 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | a = input()
b = input()
h = input()
sum = a + b
print(sum * h /2) |
s466102961 | p03997 | u456394640 | 1589749769 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | a = input()
b = input()
h = input()
sumjk = a + b
print (sumjk * h / 2) |
s094028465 | p03997 | u456394640 | 1589749645 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 36 | sumjk = a + b
print ( sumjk * h / 2) |
s435636727 | p03997 | u456394640 | 1589749504 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 19 | print (a + b) *h /2 |
s426322599 | p03997 | u020604402 | 1589615761 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 826 | H, W , N = map(int,input().split())
from bisect import bisect_left
from bisect import bisect_right
matrix = []
for _ in range(N):
x,y = map(int,input().split())
x -= 1
y -= 1
matrix.append([x,y])
matrix.sort()
ans = [0 for _ in range(10)]
cand = {}
for l in matrix:
for x_r in [-2, -1 , 0]:
for y_r in [-2, -1 , 0]:
nowx = l[0] + x_r
nowy = l[1] + y_r
if nowx < 0 or nowy < 0 or nowx + 2>= H or nowy+ 2 >= W:
continue
#ここで起点(左上)nowx, nowy として 9マスに着目する
name = str(nowx) + ' ' +str(nowy)
if name in cand : cand[name] += 1
else: cand[name] = 1
tmp = ((H - 2) * (W - 2))
for x in cand.values():
ans[x] += 1
tmp -= 1
ans[0] = tmp
for x in ans:
print(x)
|
s197837807 | p03997 | u496821919 | 1589561041 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | # -*- coding: utf-8 -*-
"""
Created on Fri May 15 12:41:57 2020
@author: shinba
"""
a,b,h = map(int,input().split())
print(int((a+b)*h/2))
|
s091220696 | p03997 | u493130708 | 1589417664 | Python | PyPy3 (2.4.0) | py | Runtime Error | 275 | 64364 | 2198 | # -*- coding: utf-8 -*-
#############
# Libraries #
#############
import sys
input = sys.stdin.readline
import math
from collections import deque
from fractions import gcd
from functools import lru_cache
#############
# Constants #
#############
MOD = 10**9+7
INF = float('inf')
#############
# Functions #
#############
######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]
#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)
######Combination######
kaijo_memo = []
def kaijo(n):
if(len(kaijo_memo) > n):
return kaijo_memo[n]
if(len(kaijo_memo) == 0):
kaijo_memo.append(1)
while(len(kaijo_memo) <= n):
kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
return kaijo_memo[n]
gyaku_kaijo_memo = []
def gyaku_kaijo(n):
if(len(gyaku_kaijo_memo) > n):
return gyaku_kaijo_memo[n]
if(len(gyaku_kaijo_memo) == 0):
gyaku_kaijo_memo.append(1)
while(len(gyaku_kaijo_memo) <= n):
gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
return gyaku_kaijo_memo[n]
def nCr(n,r):
if(n == r):
return 1
if(n < r or r < 0):
return 0
ret = 1
ret = ret * kaijo(n) % MOD
ret = ret * gyaku_kaijo(r) % MOD
ret = ret * gyaku_kaijo(n-r) % MOD
return ret
######Factorization######
def factorization(n):
arr = []
temp = n
for i in range(2, int(-(-n**0.5//1))+1):
if temp%i==0:
cnt=0
while temp%i==0:
cnt+=1
temp //= i
arr.append([i, cnt])
if temp!=1:
arr.append([temp, 1])
if arr==[]:
arr.append([n, 1])
return arr
#####LCM#####
def lcm(a, b):
return a * b // gcd (a, b)
#############
# Main Code #
#############
a,b,h = inputILs(3)
print(((a+b)*H)//2) |
s354680637 | p03997 | u691018832 | 1588899715 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | print((int(readline()) + int(readline())) * int(readline()) // 2)
|
s814927225 | p03997 | u158570493 | 1588897841 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 52 | a = input()
b = input()
h = input()
print((a+b)*h/2) |
s386488275 | p03997 | u158570493 | 1588897469 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 9 | (a+b)*h/2 |
s255182830 | p03997 | u158570493 | 1588897145 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 16 | return (a+b)*h/2 |
s237930179 | p03997 | u308918401 | 1588712483 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | a=int(input())
b=int(input())
h=int(inupt())
print((a+b)*h/2) |
s999455073 | p03997 | u829416877 | 1588663754 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | a=input()
b=input()
h=input()
print((int(a)+int(b)*int(h)//2) |
s577989288 | p03997 | u829416877 | 1588663618 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 52 | a = input()
b = input()
h = input()
print((a+b)*h/2) |
s521034973 | p03997 | u633928488 | 1588643481 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 62 | a=int(input())
b=int(input())
c=int(input())
print((a+b)*h/2) |
s565008629 | p03997 | u633928488 | 1588643402 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 62 | a=int(input())
b=int(input())
c=int(input())
print((a+b)*h/2)
|
s170893917 | p03997 | u129325056 | 1588642266 | Python | PyPy3 (2.4.0) | py | Runtime Error | 185 | 38512 | 73 | a, b, h = [int(input()) for i in range(4)]
print(round((a + b) * h / 2)) |
s743677771 | p03997 | u193565131 | 1588550313 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | lines = []
while True:
s =input()
if s:
lines.append(s)
else:
break;
area=(int(lines[0])+int(lines[1]))/2*int(lines[2])
print(area)
|
s395922738 | p03997 | u029000441 | 1588185086 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 654 | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
inf = 10**17
mod = 10**9 + 7
a,b,h=MI()
ans=(a+b)*h//2
print(ans) |
s123294144 | p03997 | u115877451 | 1587762570 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | a,b,c=[int(input()) for i range(3)]
print(((a+b)*c)/2) |
s180048493 | p03997 | u437215432 | 1587670614 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 53 | a, b, h = map(int, input().split())
print((a+b)*h//2) |
s566794250 | p03997 | u437215432 | 1587670523 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 59 | a, b, h = map(int, input().split())
print((a + b) * h // 2) |
s438036280 | p03997 | u437215432 | 1587670469 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | a, b, h = map(int, input().split())
print((a + b) * h // 2) |
s618363341 | p03997 | u437215432 | 1587670333 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 60 | a, b, h = map(int, input().split())
print((a + b) * h // 2)
|
s535877818 | p03997 | u235066013 | 1587612053 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 9 | (a+b)*h/2 |
s823154989 | p03997 | u141419468 | 1587502788 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | a = int(input())
b = int(input())
h = int(input())
print(2(a+b)*h) |
s063379762 | p03997 | u507116804 | 1587418176 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 79 | a = int(input())
b = int(input())
h = int(input())
print(int((a+b*h/2))
|
s426340294 | p03997 | u982591663 | 1586574862 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 55 | A, B, H = map(int, input().split())
print((A+B)*H//2)
|
s466077997 | p03997 | u271853076 | 1586396140 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 68 | a = int(input())
b = int(input())
c = int(input())
print((a+b)*h/2) |
s923236952 | p03997 | u271853076 | 1586395981 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 26 | c = a+b
print(int(c*h/2))
|
s006419145 | p03997 | u271853076 | 1586395870 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 20 | c = a+b
print(c*h/2) |
s353567813 | p03997 | u271853076 | 1586395809 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 20 | c = a+b
print(c*h/2) |
s207086473 | p03997 | u870841038 | 1586382329 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 485 | h = list(input() for i in range(3))
hand = {'a':h[0], 'b':h[1], 'c':h[2]} # 各手札
count = {'a':0, 'b':0, 'c':0} # 捨てた枚数
def who_is_the_winner(ch):
if ch == 'a':
winner = 'A'
elif ch == 'b':
winner = 'B'
else:
winner = 'C'
return winner
ch = hand['a'][0]
while True:
if count[ch] == len(hand[ch]):
winner = who_is_the_winner(ch)
print(winner)
break
count[ch] += 1
ch = hand[ch][count[ch]-1] |
s181512527 | p03997 | u870841038 | 1586202409 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | a = [int(input()) for i in range(4)]
ans = ((a[0]+a[1]) * a[2]) / 2
print(str(ans)) |
s734553350 | p03997 | u714294996 | 1586137038 | Python | PyPy3 (2.4.0) | py | Runtime Error | 178 | 38512 | 74 | a = input()
b = input()
c = input()
d = 0
d = a + b
d = d * c / 2
print(d) |
s914622923 | p03997 | u714294996 | 1586136933 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 66 | a = input()
b = input()
c = input()
d = 0
d = a + b
d = d * c / 2 |
s672243530 | p03997 | u779728630 | 1585969331 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 58 | a, b, h = map(int, input().split())
print( (a+b) * h // 2) |
s893796199 | p03997 | u852790844 | 1585951295 | Python | PyPy3 (2.4.0) | py | Runtime Error | 186 | 38320 | 79 | a = int(input())
b = int(input())
h = int(input())
ans = (a+b)*h//2
input(ans)
|
s287239186 | p03997 | u787449825 | 1585895530 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | a = int(input())
b = int(input())
c = int(input())
print((a+b)*h//2) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.