z423x5c6


Sun Feb 22 15:46:12 2015
python3
import sys,collections as c
a=c.Counter()
for i in sys.stdin:
 b=i.split()
 a[b[0]]+=int(b[1])
for i in sorted(a.keys()):print(i,a[i])
Sun Feb 22 15:22:27 2015
python2
print(input()-1)%9+1
Sun Feb 22 15:18:57 2015
python3
print((int(input())-1)%9+1)
Sun Feb 22 15:18:09 2015
python2
print(input()-1)%9+1
Sat Feb 14 15:42:16 2015
python3

03-
instead of
-13
def f(x):return -f(x[1:])if x[0]=='-'else int(x[::-1])
print(str(sum(map(f,input().split())))[::-1])
Sat Feb 14 15:39:19 2015
python3

-30
instead of
-13
def f(x):return -f(x[1:])if x[0]=='-'else int(x[::-1])
print(sum(map(f,input().split())))
Thu Feb 12 21:36:27 2015
python3
print('\n'.join(eval(input()).split()))
Thu Feb 12 21:35:24 2015
python2
a=input()
print":".join(map(str,[a/3600,a/60%60,a%60]))
Thu Feb 12 21:35:10 2015
python3

File "./code", line 2 print":".join(map(str,[a/3600,a/60%60,a%60])) ^ SyntaxError: invalid syntax

a=input()
print":".join(map(str,[a/3600,a/60%60,a%60]))
Thu Feb 12 21:34:23 2015
python3
a=int(input())
print(':'.join(map(str,[a//3600,a//60%60,a%60])))
Sat Oct 25 19:23:35 2014
RSA
python3
i=input
j=int
a=~-j(i())*~-j(i())
b=j(i())
c=1
while b*c%a-1:c+=1
print(c)
Sat Oct 25 19:23:18 2014
RSA
python3
i=input
j=int
a=~-j(i())*~-j(i())
b=j(i())
c=1
while(b*c%a-1):c+=1
print(c)
Sat Oct 25 19:22:39 2014
RSA
python3
i=input
j=int
a=~-j(i())*~-j(i())
b=j(i())
c=1
while b*c%a!=1:c+=1
print(c)
Fri Sep 19 22:26:21 2014
python3
i=input
l=len
a=i()
b=i()
c=0
while c<min(l(a),l(b)):
 if a[c]!=b[c]:
  if ord(a[c])<ord(b[c]):b=b[:c]+'*'+b[c:]
  else:a=a[:c]+'*'+a[c:]
 c+=1
m=max(l(a),l(b))
a+='*'*(m-l(a))
b+='*'*(m-l(b))
print(a+'\n'+b)
Sun Sep 14 19:37:38 2014
python3

0
instead of
20
a=set(map(int,input().split()))
print(sum([i*(({i-1,i+1}&a)=={})for i in a]))
Sun Sep 14 19:36:42 2014
python3

0
instead of
20
a=set(map(int,input().split()))
print(sum([i*({i-1,i+1}&a=={})for i in a]))
Sun Sep 14 18:59:07 2014
python3
a=set(map(int,input().split()))
print(sum([i for i in a if 1-((i-1in a)|(i+1in a))]))
Tue Aug 19 22:29:36 2014
python3
i=input
a=i()
b=i()
c=0
while c<min(len(a),len(b)):
 if a[c]!=b[c]:
  if ord(a[c])<ord(b[c]):b=b[:c]+'*'+b[c:]
  else:a=a[:c]+'*'+a[c:]
 c+=1
while len(a)<len(b):a+='*'
while len(b)<len(a):b+='*'
print(a+'\n'+b)
Tue Aug 19 20:09:54 2014
python3
def f(a,b,c):
 while a:a,b,c=a-1,c,b+c
 return c
print(f(int(input()),0,1))
Tue Aug 19 20:08:23 2014
python3
import sys
for i in sys.stdin:print(input())