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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s210428489 | p00006 | u520870854 | 1431705792 | Python | Python | py | Runtime Error | 0 | 0 | 41 |
line = raw_input()
print line.reverse() |
s526007596 | p00006 | u492083164 | 1434901921 | Python | Python3 | py | Runtime Error | 0 | 0 | 39 | date=str(input()).reverse()
print(date) |
s157666293 | p00006 | u071010747 | 1445178474 | Python | Python3 | py | Runtime Error | 0 | 0 | 75 | def main():
IN=input()
if IN=='':
break
print(IN[::-1]) |
s487645918 | p00006 | u609881501 | 1450272577 | Python | Python3 | py | Runtime Error | 0 | 0 | 16 | print(str[::-1]) |
s797217151 | p00006 | u994049982 | 1458670030 | Python | Python | py | Runtime Error | 0 | 0 | 20 | print(input()[::-1]) |
s542104111 | p00006 | u994049982 | 1458670047 | Python | Python | py | Runtime Error | 0 | 0 | 25 | print(str(input())[::-1]) |
s427555706 | p00006 | u403901064 | 1464620981 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
???return input()[::-1]
if __name__ == '__main__':
main() |
s865028366 | p00006 | u582608581 | 1470285519 | Python | Python3 | py | Runtime Error | 0 | 0 | 24 | print(input().reverse()) |
s462978151 | p00006 | u166871988 | 1478524100 | Python | Python3 | py | Runtime Error | 0 | 0 | 89 | while True:
st=list(input())
if len(st)==0:break
print("".join(reversed(st))) |
s586575619 | p00006 | u175111751 | 1478702462 | Python | Python3 | py | Runtime Error | 0 | 0 | 21 | print(input()[::-1]) |
s248878966 | p00006 | u542645301 | 1479479828 | Python | Python3 | py | Runtime Error | 0 | 0 | 21 | print(input()[::-3])) |
s466365506 | p00006 | u745277023 | 1484376383 | Python | Python | py | Runtime Error | 0 | 0 | 35 | import sys
print(sys.stdin[::-1]) |
s873616100 | p00006 | u745277023 | 1484376449 | Python | Python3 | py | Runtime Error | 0 | 0 | 33 | import sys
print(sys.stdin[::-1]) |
s666101508 | p00006 | u745277023 | 1484376456 | Python | Python3 | py | Runtime Error | 0 | 0 | 35 | import sys
print(sys.stdin()[::-1]) |
s241244556 | p00006 | u745277023 | 1484376603 | Python | Python3 | py | Runtime Error | 0 | 0 | 43 | for i in range(1):
print(input()[::-1]) |
s036753976 | p00006 | u745277023 | 1484376610 | Python | Python3 | py | Runtime Error | 0 | 0 | 48 | for i in range(1):
print(input()[::-1]) |
s512387945 | p00006 | u745277023 | 1484376615 | Python | Python3 | py | Runtime Error | 0 | 0 | 40 | for i in range(1):
print(input()[::-1]) |
s830076296 | p00006 | u745277023 | 1484376631 | Python | Python3 | py | Runtime Error | 0 | 0 | 44 | for i in range(1):
print(input()[::-1]) |
s389468376 | p00006 | u303360483 | 1488201930 | Python | Python3 | py | Runtime Error | 0 | 0 | 120 | <?php
fscanf(STDIN, "%s", $data);
for($i = strlen($data); 0 <= $i; $i--){
$data2 .= $data[$i];
}
echo $data2."\n"; |
s867911562 | p00006 | u897625141 | 1489400712 | Python | Python3 | py | Runtime Error | 0 | 0 | 42 | line = input()
print(line[len(line),0,-1]) |
s961538650 | p00006 | u508732591 | 1503818343 | Python | Python3 | py | Runtime Error | 0 | 0 | 122 | import math
import itertools
x = 100
for _ in itertools.repeat(None,int(input())):
x = math.ceil(x*1.05)
print(x*1000) |
s814780641 | p00006 | u933096856 | 1505799717 | Python | Python | py | Runtime Error | 0 | 0 | 19 | print input()[::-1] |
s767305471 | p00006 | u742505495 | 1507705130 | Python | Python3 | py | Runtime Error | 0 | 0 | 62 | import math
import sys
lines = input()
print(lines.reverse()) |
s057501452 | p00006 | u488038316 | 1510919450 | Python | Python | py | Runtime Error | 0 | 0 | 142 | # -*-coding:utf-8
#????????????????????§??¨???
def main():
line = input()
print(line[::-1])
if __name__ == '__main__':
main() |
s986747825 | p00006 | u548155360 | 1512381554 | Python | Python3 | py | Runtime Error | 0 | 0 | 74 | # coding=utf-8
sentence = input()
sentence.__reversed__()
print(sentence) |
s199250397 | p00006 | u298999032 | 1514588993 | Python | Python3 | py | Runtime Error | 0 | 0 | 23 | print(input().reversed) |
s349527712 | p00006 | u706217959 | 1515825771 | Python | Python3 | py | Runtime Error | 0 | 0 | 363 | import argparse
def main():
l = []
parser = argparse.ArgumentParser()
parser.add_argument("filename", help="The filename to be processed")
args = parser.parse_args()
if args.filename:
with open(args.filename) as f:
str = f.read()
str = str[::-1]
print(str)
if __name__ == "__main__":
main()
|
s441661847 | p00006 | u803045841 | 1516554860 | Python | Python3 | py | Runtime Error | 0 | 0 | 19 | print(input[::-1])
|
s924228896 | p00006 | u553148578 | 1519819841 | Python | Python | py | Runtime Error | 0 | 0 | 21 | print(input()[::-1])
|
s884658197 | p00006 | u619400176 | 1523377984 | Python | Python | py | Runtime Error | 0 | 0 | 106 | string = input()
size = len(string)
st = []
for i in range(size):
st.append(string(size-i))
print(st)
|
s957480496 | p00006 | u619400176 | 1523378064 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | string = input("input data")
size = len(string)
st = []
for i in range(size):
st.append(string(size-i))
print(st)
|
s389545778 | p00006 | u894941280 | 1344838850 | Python | Python | py | Runtime Error | 0 | 1272 | 48 | str1 = raw_input() print "".join(reversed(str1)) |
s376148235 | p00006 | u743065194 | 1363004617 | Python | Python | py | Runtime Error | 0 | 0 | 23 | s=input()
print s[::-1] |
s161602999 | p00006 | u318424563 | 1366620142 | Python | Python | py | Runtime Error | 0 | 0 | 155 | text = raw_input("半角英数20文字まで入力: ")
n = len(text)
rev = []
for i in range(n):
rev.append(text[(n-1)-i])
ans = ''.join(rev)
print ans |
s428031146 | p00006 | u350508326 | 1367944372 | Python | Python | py | Runtime Error | 0 | 0 | 30 | a = raw_input()
[::-1]
print a |
s314889029 | p00006 | u912573907 | 1375168810 | Python | Python | py | Runtime Error | 0 | 0 | 40 | line = input()
reversed(line)
print line |
s518580840 | p00006 | u511257811 | 1381942193 | Python | Python | py | Runtime Error | 0 | 0 | 72 | import sys
for line in sys.stdin:
print sorted(line, reversed=True) |
s058339038 | p00006 | u511257811 | 1381943561 | Python | Python | py | Runtime Error | 0 | 0 | 107 | import sys
for line in sys.stdin:
l = line.rstrip('\n').split('')
l.reverse()
print ''.join(l) |
s386201449 | p00006 | u747479790 | 1386764682 | Python | Python | py | Runtime Error | 0 | 0 | 23 | print raw input()[::-1] |
s224063162 | p00006 | u230836528 | 1392096965 | Python | Python | py | Runtime Error | 0 | 0 | 169 | # -*- coding: utf-8 -*-
import sys
for line in sys.stdin.readlines():
#List = map(int, line.strip().split())
seq = raw_input().strip()
print seq[::-1] |
s419857100 | p00006 | u633068244 | 1393351159 | Python | Python | py | Runtime Error | 0 | 0 | 35 | s = raw_input()
s.reverse()
print s |
s334281918 | p00006 | u633068244 | 1393351184 | Python | Python | py | Runtime Error | 0 | 0 | 41 | s = raw_input()
s.reverse()
print s[::-1] |
s429887150 | p00007 | u525366883 | 1535421749 | Python | Python | py | Runtime Error | 0 | 0 | 116 | import math
price = 100000.0
n = int(raw_input())
for i in range(n):
price = ceil((price * 1.05) / 1000) * 1000
|
s561527283 | p00007 | u063179562 | 1406814548 | Python | Python3 | py | Runtime Error | 0 | 0 | 80 | import math
for i in range(int(input(n))):
n = math.ceil((n*1.05)/1000)*1000 |
s666300073 | p00007 | u308369184 | 1431591686 | Python | Python3 | py | Runtime Error | 0 | 0 | 104 | import math
s=int(imput())
m=100000
for i in range(1:s):
m=m.ceil((m*1.05)/1000)*1000
print(m)
|
s013800981 | p00007 | u148101999 | 1458270088 | Python | Python3 | py | Runtime Error | 0 | 0 | 143 | #encoding=utf-8
inp = input()
x = 100000
for i in xrange(inp):
x = x * 1.05
if int(x % 1000) != 0:
x += 1000 - int(x % 1000)
print int(x) |
s532723299 | p00007 | u894114233 | 1461762328 | Python | Python | py | Runtime Error | 0 | 0 | 175 | n=input()
loan=10**5
for i in xrange(n):
loan+=loan*0.05
if loan%1000!=0:
loan-=loan%1000
loan+=10**3
else:
loan-=loan%1000
print(int(loan) |
s090982013 | p00007 | u776559258 | 1477535847 | Python | Python3 | py | Runtime Error | 0 | 0 | 146 | debt=10**5
interest=5/100
n=int(input())
for week in range(n):
debt=debt(1+interest)-
if debt%1000>0:
debt=debt+1000-(debt%1000)
print(debt) |
s625889382 | p00007 | u776559258 | 1477535893 | Python | Python3 | py | Runtime Error | 0 | 0 | 145 | debt=10**5
interest=5/100
n=int(input())
for week in range(n):
debt=debt(1+interest)
if debt%1000>0:
debt=debt+1000-(debt%1000)
print(debt) |
s102114356 | p00007 | u745277023 | 1484377741 | Python | Python3 | py | Runtime Error | 0 | 0 | 139 | x = input()
n = 100000
while x > 0:
n *= 1.05
mod = n % 1000
if mod != 0:
n = n + 1000 - mod
x -= 1
print(int(n)) |
s538690624 | p00007 | u745277023 | 1484377773 | Python | Python3 | py | Runtime Error | 0 | 0 | 143 | x = raw_input()
n = 100000
while x > 0:
n *= 1.05
mod = n % 1000
if mod != 0:
n = n + 1000 - mod
x -= 1
print(int(n)) |
s235141673 | p00007 | u519227872 | 1486468939 | Python | Python3 | py | Runtime Error | 0 | 0 | 74 | from math import ceil
n=int(input())
print((int(ceil(10*(1.05)**n))*10000) |
s901044840 | p00007 | u123596571 | 1494762720 | Python | Python3 | py | Runtime Error | 0 | 0 | 165 | n = int(input())
DEBT = 100000
for interest in range(n):
DEBT = DEBT * 1.05
ROUND = DEBT % 1000
if ROUND != 0:
DEBT = (DEBT // 1000 + 1) * 1000
print(int(DEBT) |
s557645404 | p00007 | u123596571 | 1494762790 | Python | Python3 | py | Runtime Error | 0 | 0 | 158 | n = int(input())
debt = 100000
for i in range(n):
debt = debt * 1.05
round = debt % 1000
if round != 0:
debt = (debt // 1000 + 1) * 1000
print(int(debt) |
s323750497 | p00007 | u350064373 | 1501483145 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | n = int(input())
result = 100000
for i in range(0,n):
result = result * 1.05
if result % 1000 == 0:
pass
else:
result = result-(result % 1000)+ 1000
result = result(int)
print(result) |
s959959395 | p00007 | u267909338 | 1502860897 | Python | Python3 | py | Runtime Error | 0 | 0 | 119 | import math
debt = 100000
for x in range (0, int(input())):
debt = math.ceil(debt * 1.05, -3)
print(int(debt)) |
s506402109 | p00007 | u234052535 | 1504505065 | Python | Python3 | py | Runtime Error | 0 | 0 | 269 | ef Round(ip, dg): # ip???dg?????§?????¨?????\????????¢??°
ip = ip / 10**dg
if(ip-int(ip) != 0):
return (int(ip) + 1)*10**dg
else:
return int(ip)*10**dg
n=int(input())
sum=100000
for i in range(0, n):
sum=Round(sum*1.05)
print(sum) |
s092972717 | p00007 | u502329480 | 1516505310 | Python | Python | py | Runtime Error | 0 | 0 | 352 | import math
def int_ceil(src, range):
return int(math.ceil(src/float(range)) * range)
def main():
week = int(input())
debt = 100000
for _ in range(week):
risi = debt * 0.05
debt = int_ceil(debt + risi, 1000)
print(debt)
if __name__ == "__main__":
main()
|
s183798433 | p00007 | u217408867 | 1526665609 | Python | Python3 | py | Runtime Error | 0 | 0 | 96 | import math
r = 100
n = input()
for i in range(n):
r = math.ceil(r * 1.05)
print(r * 1000)
|
s722482387 | p00007 | u282635979 | 1363407746 | Python | Python | py | Runtime Error | 0 | 0 | 68 | n = input()
a = 100000
while x <= n:
a * 1.05
a/1000*1000
print a |
s554084584 | p00007 | u282635979 | 1363407794 | Python | Python | py | Runtime Error | 0 | 0 | 80 | n = input()
a = 100000
while x in xrange(1,n+1):
a * 1.05
a/1000*1000
print a |
s609483291 | p00007 | u633068244 | 1393351507 | Python | Python | py | Runtime Error | 0 | 0 | 109 | import math
debt = 100000
n = int(raw_inpu())
for i in range(n):
debt = math.ceil(debt*1.05,3)
print debt |
s161170066 | p00007 | u858885710 | 1393834643 | Python | Python | py | Runtime Error | 0 | 0 | 100 | import math
debt = 100000
for i in range(n):
debt = math.ceil(debt*1.05/1000)*1000
print int(debt) |
s426076137 | p00007 | u446235837 | 1398822139 | Python | Python | py | Runtime Error | 0 | 0 | 84 | n = input()
ans = 100000
for i in range(n):
ans *= 1.05
if(ans % 1000) != 0: |
s864371902 | p00008 | u396642573 | 1429402368 | Python | Python | py | Runtime Error | 0 | 0 | 281 | import itertools
l = [1,2,3,4,5,6,7,8,9]
while True:
try:
N = int(raw_input())
res = 0
for element in itertools.combinations_with_replacement(l,5):
if sum(element) == N:
res += 1
print res
except EOFError:
break |
s302037688 | p00008 | u885889402 | 1431591271 | Python | Python3 | py | Runtime Error | 0 | 0 | 757 | while(True):
a = 0
n = int(input())
if n > 36:
print(0)
continue
elif n==36:
print(1)
continue
b = n
for i in range(10):
if n-i==0:
a=a+1
#print("(%d,0,0,0)"%(i))
break
for j in range(10):
if n-i-j==0:
a=a+1
#print("(%d,%d,0,0)"%(i,j))
break
for k in range(10):
b = n-i-j-k
if b>=0 and b<=9:
a=a+1
#print("(%d,%d,%d,%d)"%(i,j,k,b))
continue
elif b > 9:
continue
else:
break
print(a) |
s598229111 | p00008 | u885889402 | 1431591390 | Python | Python | py | Runtime Error | 0 | 0 | 766 | while(True):
a = 0
n = int(input())
if n > 36:
print(0)
continue
elif n==36:
print(1)
continue
b = n
for i in range(10):
if n-i==0:
a=a+1
#print("(%d,0,0,0)"%(i))
break
for j in range(10):
if n-i-j==0:
a=a+1
#print("(%d,%d,0,0)"%(i,j))
break
for k in range(10):
b = n-i-j-k
if b>=0 and b<=9:
a=a+1
#print("(%d,%d,%d,%d)"%(i,j,k,b))
continue
elif b > 9:
continue
else:
break
print(a)
return 0 |
s452630748 | p00008 | u358879127 | 1432034251 | Python | Python | py | Runtime Error | 0 | 0 | 304 | def get_input():
while True:
try:
yield ''.join(raw_input())
except EOFError:
break
ar = [0] * 50
for i in range(10):
for j in range(10):
for k in range(10):
for l in range(10):
ar[i + j + k + l] += 1
for a in list(get_input()):
print ar[int(a)] |
s393968672 | p00008 | u067299340 | 1432709562 | Python | Python | py | Runtime Error | 0 | 0 | 158 | import sys
s=[0]*51
for a in range(10):
for b in range(10):
for c in range(10):
for d in range(10):
s[a+b+c+d]+=1
for l in sys.stdin:print x[int(l)] |
s009128651 | p00008 | u140201022 | 1435065122 | Python | Python | py | Runtime Error | 0 | 0 | 188 | while 1:
try:
n=int(raw_input())
except EOFError:
break
print len(=[1 for i in range(10) for j in range(10) for k in range(10) for l in range(10) if i+j+k+l==n] |
s476011156 | p00008 | u773043701 | 1447910700 | Python | Python | py | Runtime Error | 0 | 0 | 218 | #! /usr/bin/env python
n = int(raw_input())
x = 0
i = rge(10)
for a in i:
for b in i:
for c in i:
for d in i:
if a + b + c + d == n:
x = x + 1
print x |
s310744340 | p00008 | u300946041 | 1448113708 | Python | Python | py | Runtime Error | 0 | 0 | 188 | import itertools
c = list(itertools.product(range(10), repeat=4))
if __name__ == '__main__':
for line in sys.stdin.readlines():
print sum([l for l in c if int(n) == sum(l)]) |
s879542444 | p00008 | u300946041 | 1448113791 | Python | Python | py | Runtime Error | 0 | 0 | 199 | import itertools
import sys
c = list(itertools.product(range(10), repeat=4))
if __name__ == '__main__':
for line in sys.stdin.readlines():
print sum([l for l in c if int(n) == sum(l)]) |
s544675012 | p00008 | u300946041 | 1448113852 | Python | Python | py | Runtime Error | 0 | 0 | 164 | import itertools
import sys
c = list(itertools.product(range(10), repeat=4))
for line in sys.stdin.readlines():
print sum([l for l in c if int(n) == sum(l)]) |
s254413614 | p00008 | u300946041 | 1448113900 | Python | Python | py | Runtime Error | 0 | 0 | 196 | import itertools
import sys
c = list(itertools.product(range(10), repeat=4))
if __name__ == '__main__':
for n in sys.stdin.readlines():
print sum([l for l in c if int(n) == sum(l)]) |
s958163709 | p00008 | u300946041 | 1448114104 | Python | Python | py | Runtime Error | 0 | 0 | 161 | import itertools
import sys
c = list(itertools.product(range(10), repeat=4))
for n in sys.stdin.readlines():
print sum([l for l in c if int(n) == sum(l)]) |
s859519603 | p00008 | u300946041 | 1448114354 | Python | Python | py | Runtime Error | 0 | 0 | 169 | import itertools
import sys
c = list(itertools.product(range(10), repeat=4))
for n in sys.stdin.readlines():
print sum([l for l in c if int(n.strip()) == sum(l)]) |
s098292050 | p00008 | u300946041 | 1448114561 | Python | Python | py | Runtime Error | 0 | 0 | 160 | import itertools
import sys
c = list(itertools.product(range(10), repeat=4))
for n in sys.stdin.readline():
print sum([l for l in c if int(n) == sum(l)]) |
s251813370 | p00008 | u300946041 | 1448114860 | Python | Python | py | Runtime Error | 0 | 0 | 268 | import sys
for n in sys.stdin.readline():
ret = 0
for a in xrange(10):
for b in xrange(10):
for c in xrange(10):
for d in xrange(10):
if a+b+c+d == int(n):
ret += 1
print ret |
s165813827 | p00008 | u372789658 | 1453612003 | Python | Python3 | py | Runtime Error | 0 | 0 | 302 | def count(num):
l1=[]
for a in range (10):
for b in range(10):
for c in range (10):
for d in range (10):
l1.append([a,b,c,d])
l1=list(filter(lambda x: sum(x)==num,l1))
return(len(l1))
while 1==1:
print(count(int(input()))) |
s046982758 | p00008 | u372789658 | 1453612430 | Python | Python3 | py | Runtime Error | 0 | 0 | 360 | def count(num):
l1=[]
for a in range (10):
for b in range(10):
for c in range (10):
for d in range (10):
l1.append([a,b,c,d])
l1=list(filter(lambda x: sum(x)==num,l1))
return(len(l1))
import sys
length=len(sys.stdin.readlines())
for i in range (length):
print(count(int(input()))) |
s112392142 | p00008 | u106298487 | 1457317399 | Python | Python | py | Runtime Error | 0 | 0 | 368 | import sys
for line in sys.stdin.readline():
line.strip()
a=int(line)
if a<37:
cnt=0
for i in xrange(0,10):
for j in xrange(0,10):
for k in xrange(0,10):
for l in xrange(0,10):
if i+j+k+l==a:
cnt+=1
print cnt
else:
print 0 |
s044394695 | p00008 | u130979865 | 1459857128 | Python | Python | py | Runtime Error | 0 | 0 | 235 | # -*- coding: utf-8 -*-
import sys
sum = [0]*37
for a in range(10):
for b in range(10):
for c in range(10):
for d in range(10):
sum[a+b+c+d] += 1
for line in sys.stdin:
print sum[int(line)] |
s316396301 | p00008 | u403901064 | 1464787582 | Python | Python3 | py | Runtime Error | 0 | 0 | 458 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main(num):
if num >= 19:
num = 19 - num + 17
res = 1
gro1 = 3
for i in range(8):
if i == num:
return res
if i == 0:
gro2 = 3
else:
gro2 += 1
res += gro1
gro1 += gro2
for i in range(8,19):
if i == num:
return res
gro2 -= 3
res += gro1
gro1 += gro2
if __name__ == '__main__':
while True:
try:
num = int(input())
except:
return
else:
print(main()) |
s148718399 | p00008 | u927516039 | 1474213986 | Python | Python3 | py | Runtime Error | 0 | 0 | 241 | while 1:
n=int(input())
cnt=0
for i in range(10):
for j in range(10):
for k in range(10):
for l in range(10):
if i+j+k+l==n:
cnt=cnt+1
print(cnt) |
s249037198 | p00008 | u500396695 | 1477889102 | Python | Python3 | py | Runtime Error | 0 | 0 | 195 | while True:
n = int(input())
counter = 0
for a in range(10):
for b in range(10):
for c in range(10):
for d in range(10):
if a + b + c + d == n:
counter += 1
print(counter) |
s526833714 | p00008 | u175111751 | 1478790837 | Python | Python3 | py | Runtime Error | 0 | 0 | 296 | while True:
try:
n = int(input())
c = 0
for i in range(1,10):
for j in range(1,10):
for k in range(1,10):
for l in range(1,10):
if i+j+k+l == n : c+=1
print(c)
exception:
break |
s830560034 | p00008 | u922871577 | 1479279301 | Python | Python | py | Runtime Error | 0 | 0 | 278 | import sys
for line in sys.stdin:
N = int(raw_input())
ans = 0
for a in xrange(10):
for b in xrange(10):
for c in xrange(10):
for d in xrange(10):
if a+b+c+d == D:
ans += 1
print ans |
s167024940 | p00008 | u922871577 | 1479279318 | Python | Python | py | Runtime Error | 0 | 0 | 278 | import sys
for line in sys.stdin:
N = int(raw_input())
ans = 0
for a in xrange(10):
for b in xrange(10):
for c in xrange(10):
for d in xrange(10):
if a+b+c+d == N:
ans += 1
print ans |
s136150405 | p00008 | u919202930 | 1479365488 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | againstN = [0]*50
for a in range(0,10):
for b in range(0,10):
for c in range(0,10):
for d in range(0,10):
againstN[a+b+c+d] += 1
inputs=[]
while True:
try:
inputs.append(int(input()))
except EOFError:
break
for i in inputs:
print(againstN[i]) |
s752482986 | p00008 | u435300817 | 1481432657 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | import sys
values = []
for line in sys.stdin:
values.append(int(line))
ans = [1 for i in range(10) for j in range(10) for k in range(10) for l in range(10) if n == i + j + k + l]
print(ans.count(1)) |
s350166040 | p00008 | u393305246 | 1488300146 | Python | Python | py | Runtime Error | 0 | 0 | 511 | import sys
a=[]
for num in sys.stdin:
a.append(num)
for i in a:
time=0
if n<=18:
for i in range(n+1):
if i<=9:
if n-i<=9:
time+=(i+1)*(n-i+1)
else:
time+=(i+1)*(19-n+i)
else:
time+=(19-i)*(n-i+1)
elif n>18 and n<=36:
for i in range(37-n):
pre=i+n-18
if pre<=9
time+=(pre+1)*(19-n+pre)
else:
if n-pre<=9:
time+=(19-pre)*(n-pre+1)
else:
time+=(19-pre)*(19-n+pre)
print time |
s804029198 | p00008 | u393305246 | 1488300166 | Python | Python | py | Runtime Error | 0 | 0 | 512 | import sys
a=[]
for num in sys.stdin:
a.append(num)
for i in a:
time=0
if n<=18:
for i in range(n+1):
if i<=9:
if n-i<=9:
time+=(i+1)*(n-i+1)
else:
time+=(i+1)*(19-n+i)
else:
time+=(19-i)*(n-i+1)
elif n>18 and n<=36:
for i in range(37-n):
pre=i+n-18
if pre<=9:
time+=(pre+1)*(19-n+pre)
else:
if n-pre<=9:
time+=(19-pre)*(n-pre+1)
else:
time+=(19-pre)*(19-n+pre)
print time |
s502516570 | p00008 | u518711553 | 1491491907 | Python | Python3 | py | Runtime Error | 0 | 0 | 178 | import sys
from itertools import product
num = 4
l = [0] * (9*num + 1)
for x in map(sum, product(range(10), repeat=num)):
l[x] += 1
for s in sys.stdin:
print(l[int(s)]) |
s305697002 | p00008 | u900298597 | 1494395757 | Python | Python | py | Runtime Error | 0 | 0 | 267 | import sys
a=[]
for i in sys.stdin
ini=input()
a.append(ini)
for i in a:
count=0
for j in range(10):
if j<=i and i-j<=27:
for k in range(10):
if k<=i-j and i-j-k<=18:
if i-j-k<=9:
count+=i-j-k+1
else:
count+=19-i+j+k
print count |
s937506015 | p00008 | u900298597 | 1494395838 | Python | Python | py | Runtime Error | 0 | 0 | 272 | import sys
a=[]
for i in sys.stdin:
ini=input()
a.append(ini)
for i in a:
count=0
for j in range(10):
if j<=i and i-j<=27:
for k in range(10):
if k<=i-j and i-j-k<=18:
if i-j-k<=9:
count+=i-j-k+1
else:
count+=19-i+j+k
print count
??? |
s484690035 | p00008 | u900298597 | 1494395966 | Python | Python | py | Runtime Error | 0 | 0 | 274 | import sys
a=[]
for i in sys.stdin:
ini=input()
a.append(ini)
for i in a:
count=0
for j in range(10):
if j<=i and i-j<=27:
for k in range(10):
if k<=i-j and i-j-k<=18:
if i-j-k<=9:
count+=i-j-k+1
else:
count+=19-i+j+k
print count
|
s798438242 | p00008 | u900298597 | 1494474658 | Python | Python | py | Runtime Error | 0 | 0 | 253 | import sys
a=[]
for i in sys.stdin:
a.append(i)
for i in a:
count=0
for j in range(10):
if j<=i and i-j<=27:
for k in range(10):
if k<=i-j and i-j-k<=18:
if i-j-k<=9:
count+=i-j-k+1
else:
count+=19-i+j+k
print count |
s877490465 | p00008 | u900298597 | 1494474907 | Python | Python | py | Runtime Error | 0 | 0 | 263 | import sys
a = []
for line in sys.stdin:
a.append(line)
for i in a:
count=0
for j in range(10):
if j<=i and i-j<=27:
for k in range(10):
if k<=i-j and i-j-k<=18:
if i-j-k<=9:
count+=i-j-k+1
else:
count+=19-i+j+k
print count |
s815271683 | p00008 | u440180827 | 1496893023 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | import sys
c = [0 for i in range(37)]
for i in range(10):
for j in range(10):
for k in range(10):
for l in range(10):
c[i+j+k+l] += 1
for line in sys.stdin:
print(c[int(line)]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.