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
s073374897
p02382
u126322807
1494753020
Python
Python3
py
Runtime Error
0
0
447
#!/usr/bin/env python import math chebyshev = [] n = int(input()) x = input().split() y = input().split() for i in range(n): x[i] = int(x[i]) for i in range(n): y[i] = int(y[i]) for p in range(3): total = 0 for i in range(n): total += (math.fabs(x[i]-y[i]))**(p+1) distance = total**(1/(...
s402123519
p02382
u279605379
1495086496
Python
Python3
py
Runtime Error
0
0
383
#ITP1_10-D Distance2 n = int(input()) x = float().split(" ") y = float().split(" ") d1=0.0 for i in range(n): d1 += abs(x[i]-y[i]) print(d1) d2=0.0 for i in range(n): d2 += (x[i]-y[i])**2 print(d2**0.5) d3=0.0 for i in range(n): d3 += (x[i]-y[i])**3 print(d3**(1.0/3.0)) d_inf=0.0 for i in range(n): ...
s056415987
p02382
u650790815
1496462343
Python
Python3
py
Runtime Error
0
0
270
def distance(x,y,n): return sum(abs(x[i]-y[i])**n for i in range(len(n))) **(1/n) n = int(input()) x = list(map(float,input().split())) y = list(map(float,input().split())) for i in range(1,4): print(distance(x,y,i)) print(max(abs(x[i]-y[i]) for i in range(n)))
s526052399
p02382
u440180827
1496468774
Python
Python3
py
Runtime Error
30
7944
677
import math n = int(input()) x = list(map(int, input().split())) y = list(map(int, input().split())) tmp = [[0 for i in range(6)] for j in range(n+1)] absDiff = abs(x[0]-y[0]) tmp[0][3] = tmp[0][0] = absDiff tmp[0][4] = tmp[0][1] = absDiff ** 2 tmp[0][5] = tmp[0][2] = absDiff ** 3 max = absDiff for i in range(1, n, 1):...
s434164158
p02382
u914146430
1500438984
Python
Python3
py
Runtime Error
0
0
538
def min_dist(x_b,y_b): s=0 for x,y in zip(x_b,y_b): s+=abs(x-y) return s def man_dist(x_b,y_b): s=0 for x, y in zip(x_b,y_b): s+=(abs(x-y))**2 return s**0.5 def che_dist(x_b,y_b): s=0 for x,y in zip(x_b,y_b): s+=(abs(x-y))**3 return s**(1/3) def anf_dist(x_...
s620365419
p02382
u248424983
1503038666
Python
Python3
py
Runtime Error
0
0
288
import math n=int(input()) xli=list(map(int,input().split()) yli=list(map(int,input().split()) a=0 b=0 c=0 d=0 for x,y in zip(xli,yli): base = math.fabs(x,y) a += base b += base**2 c += base**3 if d < base : d = base print(a) print(b**(1/2)) print(c**(1/3)) print(d)
s120043071
p02382
u248424983
1503038746
Python
Python3
py
Runtime Error
0
0
290
import math n=int(input()) xli=list(map(int,input().split())) yli=list(map(int,input().split())) a=0 b=0 c=0 d=0 for x,y in zip(xli,yli): base = math.fabs(x,y) a += base b += base**2 c += base**3 if d < base : d = base print(a) print(b**(1/2)) print(c**(1/3)) print(d)
s507729461
p02382
u248424983
1503039006
Python
Python3
py
Runtime Error
0
0
294
import math n=int(input()) xli=list(map(float,input().split()) yli=list(map(float,input().split()) a=0 b=0 c=0 d=0 for x,y in zip(xli,yli): base = math.fabs(x-y) a += base b += base**2 c += base**3 if d < base : d = base print(a) print(b**(1/2)) print(c**(1/3)) print(d)
s734981650
p02382
u954858867
1503826910
Python
Python
py
Runtime Error
0
0
417
import math ni = int(input()) xi = map(int, raw_input().split()) yi = map(int, raw_input().split()) p1 = [] p2 = [] p3 = [] p4 = [] for x, y in zip(xi, yi): p1.append(abs(x - y)) p2.append(abs(x - y)**2) p3.append(abs(x - y)**3) p4.append(abs(x - y)) print '%.6f' % reduce(lambda x, y: x + y, print '%....
s378790435
p02382
u954858867
1503827050
Python
Python
py
Runtime Error
0
0
386
import math ni = int(input()) xi = map(int, raw_input().split( yi = map(int, raw_input().split( p1 = [] p2 = [] p3 = [] p4 = [] for x, y in zip(xi, yi): p1.append(abs(x - y)) p2.append(abs(x - y)**2) p3.append(abs(x - y)**3) p4.append(abs(x - y)) print '%.8f' % reduce(lambda x, print '%.8f' % reduce(...
s335429401
p02382
u933096856
1505787067
Python
Python3
py
Runtime Error
0
0
183
while True: n = int( input() ) if n==0: break a=list(map(int, input().split())) m=sum(a)/n s=0 for i in a: s+=(i-m)**2 print( ( s/n)**0.5 )
s830768776
p02382
u748921161
1509178910
Python
Python3
py
Runtime Error
20
8032
855
import math def str2list(str): result = [] for value in str.split(' '): result.append(int(value)) return result def distance1(n, x, y): result = 0 for i in range(n): result += abs(x[i] - y[i]) return result def distance2(n, x, y): result = 0 for i in range(n): result += (x[i] - y[i]) * (x[i] - y[i]...
s981655504
p02382
u748921161
1509179389
Python
Python3
py
Runtime Error
0
0
1711
import math def str2list(str): result = [] for value in str.split(' '): result.append(int(value)) return result def distance1(n, x, y): result = 0 for i in range(n): result += abs(x[i] - y[i]) return result def distance2(n, x, y): result = 0 for i in range(n): result += (x[i] - y[i]) * (x[i] - y[i]...
s531468532
p02382
u748921161
1509179413
Python
Python3
py
Runtime Error
20
8044
855
import math def str2list(str): result = [] for value in str.split(' '): result.append(int(value)) return result def distance1(n, x, y): result = 0 for i in range(n): result += abs(x[i] - y[i]) return result def distance2(n, x, y): result = 0 for i in range(n): result += (x[i] - y[i]) * (x[i] - y[i]...
s335474173
p02382
u426534722
1516026097
Python
Python3
py
Runtime Error
0
0
327
from math import * import numpy as np input() P1 = [] P2 = [] P3 = [] for a, b in zip(map(int, input().split()), map(int, input().split())): t = abs(a - b) P1.append(t) P2.append(t ** 2) P3.append(t ** 3) print("{:f}".format(sum(P1))) print(sqrt(sum(P2))) print(np.cbrt(sum(P3))) print("{:f}".format(max(...
s215620476
p02382
u150984829
1516427649
Python
Python3
py
Runtime Error
0
0
178
n=int(input()) x,y=[list(map(int,input().split()))for in range(2)] d=[abs(s-t)for s,t in zip(x,y)] f=lambda n:sum([s**n for s in d])**(1/n) print(f(1),f(2),f(3),max(d),sep='\n')
s430099767
p02382
u027874809
1523330346
Python
Python3
py
Runtime Error
0
0
564
import math import numpy as np s = int(input()) all_list = [] for _ in range(2): all_list.append(list(map(float, input().split()))) p1 = sum([math.fabs(x - y) for x, y in zip(all_list[0], all_list[1])]) p2 = math.sqrt(sum([(math.fabs(x - y))**2 for x, y in zip(all_list[0], all_list[1])])) p3 = np.cbrt(sum([(mat...
s527953400
p02382
u682153677
1524395031
Python
Python3
py
Runtime Error
0
0
431
# -*- coding: utf-8 -*- import math n = int(input()) x = list(map(float, input().split())) y = list(map(float, input().split())) abs_xy = [] for i in range(n): abs_xy.append(abs(x[i] - y[i])) d1 = sum(abs_xy) d2 = 0 for i in range(n): d2 += abs_xy * abs_xy d2 = math.sqrt(d2) d3 = 0 for i in range(n): ...
s873980543
p02382
u592529978
1526521633
Python
Python
py
Runtime Error
0
0
117
n=map(int,raw_input().split()) x1, y1, x2, y2 = map(float, raw_input().split()) print ((x1-x2)**2 + (y1-y2)**2)**0.5
s420733353
p02382
u995990363
1528451681
Python
Python3
py
Runtime Error
0
0
275
import math def mink(x,y,p): return (sum([math.fabs(_x - _y)**p for _x, _y in zip(x,y)]))**(1/p) n = int(input()) x = [int(i) for i in input().split()] y = [int(i) for i in input().split()] print(mink(x,y,1)) print(mink(x,y,2)) print(mink(x,y,3)) print(mink(x,y,10**9))
s215178484
p02383
u869301406
1530963392
Python
Python3
py
Runtime Error
0
0
2187
class Dice(object): def __init__(self, d): self.rows = [d[0], d[4], d[5], d[1]] self.cols = [d[0], d[2], d[5], d[3]] def move_next_rows(self): temp = self.rows.pop(0) self.rows.append(temp) self.__update(self.cols, self.rows) def move_prev_rows(self): te...
s634420672
p02383
u744506422
1540293093
Python
Python3
py
Runtime Error
0
0
1435
c1=[int(i) for i in input().split()] c2=[int(i) for i in input().split()] d=[(0,0,1),(-1,0,0),(0,1,0),(0,-1,0),(1,0,0),(0,0,-1)] def crosspro(y,x): return (y[1]*x[2]-y[2]*x[1],y[2]*x[0]-y[0]*x[2],y[0]*x[1]-y[1]*x[0]) def north(r): res=[] for p in r: res.append((p[2],p[1],-p[0])) return res def s...
s908863258
p02383
u482227082
1558921936
Python
Python3
py
Runtime Error
0
0
1044
class Cube: def __init__(self, u, s, e, w, n, d): self.u = u self.s = s self.e = e self.w = w self.n = n self.d = d def rotate(self, dic): if dic == "N": tmp = self.u self.u = self.s self.s = self.d self.d =...
s263985044
p02383
u142359205
1559075378
Python
Python3
py
Runtime Error
0
0
970
## サイコロ d1, d2, d3, d4, d5, d6 = input().split() dice = { '1': d1, '2': d2, '3': d3, '4': d4, '5': d5, '6': d6 } spin_dict = { '1' : { 's' : '6', #上 'n' : '2', #下 'e' : '4', #左 'w' : '3', #右 }, '2' : { 's' : '1', #上 'n' : '6', #下 ...
s499884854
p02383
u142359205
1559075637
Python
Python3
py
Runtime Error
0
0
960
## サイコロ d1, d2, d3, d4, d5, d6 = input().split() dice = { '1': d1, '2': d2, '3': d3, '4': d4, '5': d5, '6': d6 } spin_dict = { '1' : { 's' : '6', #上 'n' : '2', #下 'e' : '4', #左 'w' : '3', #右 }, '2' : { 's' : '1', #上 'n' : '6', #下 ...
s489151136
p02383
u535719732
1559323836
Python
Python3
py
Runtime Error
0
0
1053
class Dice(): def __init__(self,data): self.number = data def rota_S(self): self.number[0],self.number[1],self.number[5],self.number[4] = self.number[1],self.$ def rota_E(self): self.number[0],self.number[2],self.number[5],self.number[3] = self.nu...
s292423825
p02383
u535719732
1559323860
Python
Python3
py
Runtime Error
0
0
1413
GNU nano 2.9.3 a.py class Dice(): def __init__(self,data): self.number = data def rota_S(self): ...
s383734497
p02383
u881310147
1408158037
Python
Python
py
Runtime Error
0
0
1460
class Dice(object): def __init__(self, top, south, east, west, north, bottom): self.top = top self.south = south self.east = east self.west = west self.north = north self.bottom = bottom def rollN(self): prevN = self.north prevB = self.bottom ...
s340058401
p02383
u881310147
1408158198
Python
Python
py
Runtime Error
0
0
1462
class Dice(object): def __init__(self, top, south, east, west, north, bottom): self.top = top self.south = south self.east = east self.west = west self.north = north self.bottom = bottom def rollN(self): prevN = self.north prevB = self.bottom ...
s649247442
p02383
u881310147
1408158329
Python
Python
py
Runtime Error
0
0
1462
class Dice(object): def __init__(self, top, south, east, west, north, bottom): self.top = top self.south = south self.east = east self.west = west self.north = north self.bottom = bottom def rollN(self): prevN = self.north prevB = self.bottom ...
s305085329
p02383
u067975558
1423706176
Python
Python3
py
Runtime Error
0
0
951
class Dice: def __init__(self, data): self.data = data def move(self, direction): if direction == 'E': self.data[0],self.data[3], self.data[5], self.data[2] = \ self.data[3],self.data[5], self.data[2], self.data[0] elif direction == 'N': self.dat...
s515462035
p02383
u067975558
1423706206
Python
Python3
py
Runtime Error
0
0
951
class Dice: def __init__(self, data): self.data = data def move(self, direction): if direction == 'E': self.data[0],self.data[3], self.data[5], self.data[2] = \ self.data[3],self.data[5], self.data[2], self.data[0] elif direction == 'N': self.dat...
s645374640
p02383
u297342993
1423706303
Python
Python3
py
Runtime Error
0
0
1189
class Dice: def __init__(self, data): self.data = data def move(self, direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ ...
s984847980
p02383
u067975558
1423706322
Python
Python3
py
Runtime Error
0
0
950
class Dice: def __init__(self, data): self.data = data def move(self, direction): if direction == 'E': self.data[0],self.data[3], self.data[5], self.data[2] = \ self.data[3],self.data[5], self.data[2], self.data[0] elif direction == 'N': self.dat...
s721596649
p02383
u823030818
1423706378
Python
Python3
py
Runtime Error
0
0
1139
class Dice: def _init_ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] """tmp = self.data[0] self.dat...
s790549539
p02383
u823030818
1423706512
Python
Python3
py
Runtime Error
0
0
950
class Dice: def _init_ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0]...
s288922674
p02383
u823030818
1423706588
Python
Python3
py
Runtime Error
0
0
950
class Dice: def _init_ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0]...
s713215302
p02383
u823030818
1423706668
Python
Python3
py
Runtime Error
0
0
950
class Dice: def _init_ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0]...
s215542630
p02383
u823030818
1423706977
Python
Python3
py
Runtime Error
0
0
945
class Dice: def _init_ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0]...
s367519334
p02383
u823030818
1423707077
Python
Python3
py
Runtime Error
0
0
933
def _init_ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0],self.data[4...
s461572633
p02383
u823030818
1423707166
Python
Python3
py
Runtime Error
0
0
945
def _init_ (self,data): self.data = data class Dice: def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3].self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0]...
s895132340
p02383
u823030818
1423707779
Python
Python3
py
Runtime Error
0
0
946
def __init__ (self,data): self.data = data class Dice: def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3],self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[...
s749689401
p02383
u823030818
1423707957
Python
Python3
py
Runtime Error
0
0
956
class Dice: def __init__ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3],self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[...
s809308242
p02383
u823030818
1423708217
Python
Python3
py
Runtime Error
0
0
936
def __init__ (self,data): self.data = data def move(self,direction): if direction == 'E': self.data[0],self.data[3],self.data[5],self.data[2] = \ self.data[3],self.data[5],self.data[2],self.data[0] elif direction == 'N': self.data[0],self.dat...
s785373509
p02383
u370429022
1426605696
Python
Python3
py
Runtime Error
0
0
1078
# 1: top, 2: front, 3: right, # 4: left, 5: back, 6: bottom class Dice: def __init__(self, nums): self.top, self.front, self.right, self.left, self.back, self.bottom = nums def roll(self, direction): if direction == 'E': self.top, self.right, self.left, self.bottom = self.left, sel...
s111494198
p02383
u140201022
1431447936
Python
Python
py
Runtime Error
0
0
1239
#!/usr/bin/env python # -*- coding: UTF-8 -*- import time import sys import io import re import math import itertools #sys.stdin=file('input.txt') #sys.stdout=file('output.txt','w') #10**9+7 mod=1000000007 #mod=1777777777 pi=3.141592653589 xy=[(1,0),(-1,0),(0,1),(0,-1)] bs=[(-1,-1),(-1,1),(1,1),(1,-1)] #start = time.cl...
s319773427
p02383
u633068244
1433167319
Python
Python
py
Runtime Error
0
0
1309
import random class Dice: def __init__(self, ls): self.top, self.bottom = ls[0], ls[5] self.right, self.left = ls[2], ls[3] self.front, self.back = ls[1], ls[4] def rot(self, d): if d == "N": (self.top, self.back, self.bottom, self.front) = ( sel...
s262089088
p02383
u777299405
1435836331
Python
Python3
py
Runtime Error
0
0
1072
class Dice: def __init__(self, faces): self.faces = tuple(faces) def roll_north(self): self.faces = (self.faces[1], self.faces[5], self.faces[2], self.faces[3], self.faces[0], self.faces[4]) def roll_south(self): self.faces = (self.faces[4], self.faces[0], se...
s892577209
p02383
u609407244
1436089353
Python
Python3
py
Runtime Error
0
0
490
axis_1 = '0154' * 2 # 2 -> 3 axis_2 = '0253' * 2 # 4 -> 1 axis_3 = '3124' * 2 # 0 -> 5 right = [axis_3, axis_2[::-1], axis_1, axis_1[::-1], axis_2, axis_3[::-1], ] a = list(map(int, input().split())) n = int(input()) for _ in range(n): top, front = map(a.index, map(int, input().split())) x = '%d%d' % (top, ...
s875646152
p02383
u938745275
1440919594
Python
Python
py
Runtime Error
0
0
1324
class Dice: def __init__(self, list = map(str, range(1, 7))): self.top = list[0] self.front = list[1] self.right = list[2] self.left = list[3] self.back = list[4] self.bottom = list[5] def print_all(self): print "top = " + self.top print "front = " + self.front print "right = " ...
s663833964
p02383
u938745275
1440919618
Python
Python
py
Runtime Error
0
0
1324
class Dice: def __init__(self, list = map(str, range(1, 7))): self.top = list[0] self.front = list[1] self.right = list[2] self.left = list[3] self.back = list[4] self.bottom = list[5] def print_all(self): print "top = " + self.top print "front = " + self.front print "right = " ...
s797913244
p02383
u467309160
1443585706
Python
Python3
py
Runtime Error
0
0
1300
class Dice: ?? ????????def __init__(self, faces): ????????????????self.faces = tuple(faces) ?? ????????def roll_north(self): ????????????????self.faces = (self.faces[1], self.faces[5], self.faces[2], ????????????????????????????????????????????self.faces[3], self.faces[0], self.faces[4]) ?? ????????def roll_south(self)...
s131601599
p02383
u224288634
1445083468
Python
Python
py
Runtime Error
0
0
735
class Dice(object): def __init__(self,List): self.face=List def n_spin(List): temp=List[0] List[0]=List[1] List[1]=List[5] List[5]=List[4] List[4]=temp def s_spin(List): temp=List[0] List[0]=List[4] List[4]=List[5] List[5]=List[1] List[1]=temp def e_spin(lList): temp=List[0] List[0]=Li...
s378146594
p02383
u569960318
1464764207
Python
Python3
py
Runtime Error
0
0
1694
class dice: def __init__(self,label): self.d = label def roll(self,op): d = self.d if op=='N': self.d = [d[1],d[5],d[2],d[3],d[0],d[4]] elif op=='E': self.d = [d[3],d[1],d[0],d[5],d[4],d[2]] elif op=='W': self.d = [d[2],d[1],d[5],d[0],d[4],d[3]] elif op=='S': se...
s166233297
p02383
u427088273
1466651716
Python
Python
py
Runtime Error
0
0
1031
class Dice : def __init__(self,num): self.num = num def move_E(self): self.copy = self.num.copy() for i,j in zip([0,2,5,3],[3,0,2,5]): self.num[i] = self.copy[j] def move_W(self): self.copy = self.num.copy() for i,j in zip([0,3,5,2],[2,0,3,5]): ...
s695788319
p02383
u358919705
1471810077
Python
Python3
py
Runtime Error
0
0
1996
class Dice: def __init__(self, labels): self.labels = labels self.up = labels[0] self.front = labels[1] self.right = labels[2] self.left = labels[3] self.back = labels[4] self.down = labels[5] def east(self): self.up, self.right, self.down, self.le...
s939349597
p02383
u998435601
1473777756
Python
Python3
py
Runtime Error
0
0
820
# coding: utf-8 # ?????????????????¨???????????? class Dice(object): def __init__(self): # ???????????????????????° # ????????¶??? self.x = [2, 5] self.y = [3, 4] self.z = [1, 6] SN = {'S': 0, 'N': 1} WE = {'W': 0, 'E': 1} pass def rotate(self, _dir): def rot(_k, _r): return list(reversed(_r)), ...
s260131759
p02383
u391228754
1476175819
Python
Python3
py
Runtime Error
0
0
1437
class Dice: def __init__(self, faces): self.faces = tuple(faces) def roll_north(self): self.faces = (self.faces[1], self.faces[5], self.faces[2], self.faces[3], self.faces[0], self.faces[4]) def roll_south(self): self.faces = (self.faces[4], self.faces[0],...
s506648171
p02383
u831244171
1478272489
Python
Python3
py
Runtime Error
0
0
972
class Dice(object): def __init__(self): self.upside = 1 self.frontside = 2 self.rightside = 3 self.backside = 4 self.leftside = 5 self.downside = 6 def throwDice(self,dir): up = self.upside front = self.frontside left = self.leftside if dir == "S": self.frontside = up self.backside...
s462125031
p02383
u831244171
1478272515
Python
Python3
py
Runtime Error
0
0
975
class Dice(object): def __init__(self): self.upside = 1 self.frontside = 2 self.rightside = 3 self.backside = 4 self.leftside = 5 self.downside = 6 def throwDice(self,dir): up = self.upside front = self.frontside left = self.leftside if dir == "S": self.frontside = up self.backside...
s397068474
p02383
u831244171
1478322745
Python
Python3
py
Runtime Error
0
0
1475
def whatIsRight(u,f): r = 0 if u == 1: if f == 2: r = 3 elif f == 3: r = 5 elif f == 4: r = 2 elif f == 5: r = 4 return r if u == 2: if f == 6: r = 3 elif f == 3: r = 1 ...
s326095950
p02383
u801346721
1479113117
Python
Python3
py
Runtime Error
0
0
1051
a = list(map(int, input().split())) O = input() class dice(): def __init__(self, dice): self.dice = dice def S(): one = self.dice[4] two = self.dice[0] five = self.dice[5] six = self.dice[1] InsSN(one, two, five, six) def InsSN(one, two, five, six): self.dice[0] = one self.dice[1] = two self.dice...
s878480299
p02383
u801346721
1479113201
Python
Python3
py
Runtime Error
0
0
1045
a = list(map(int, input().split())) O = input() class Dice(): def __init__(self, d): self.dice = d def S(): one = self.dice[4] two = self.dice[0] five = self.dice[5] six = self.dice[1] InsSN(one, two, five, six) def InsSN(one, two, five, six): self.dice[0] = one self.dice[1] = two self.dice[4] = ...
s200233044
p02383
u801346721
1479113358
Python
Python3
py
Runtime Error
0
0
1073
a = list(map(int, input().split())) O = input() class Dice(): def __init__(self, d): self.dice = d def S(self): one = self.dice[4] two = self.dice[0] five = self.dice[5] six = self.dice[1] InsSN(one, two, five, six) def InsSN(self, one, two, five, six): self.dice[0] = one self.dice[1] = two self....
s649259932
p02383
u801346721
1479113553
Python
Python3
py
Runtime Error
0
0
1067
d = list(map(int, input().split())) O = input() class Dice(): def __init__(self, d): self.dice = d def S(self): one = self.dice[4] two = self.dice[0] five = self.dice[5] six = self.dice[1] InsSN(one, two, five, six) def InsSN(self, one, two, five, six): self.dice[0] = one self.dice[1] = two self....
s582475067
p02383
u494314211
1481449500
Python
Python3
py
Runtime Error
0
0
408
d=list(map(int,input().split())) c=list(input()) class dice(object): def __init__(self, d): self.d = d def roll(self,com): a1,a2,a3,a4,a5,a6=self.d if com=="E": self.d = [a4,a2,a1,a6,a5,a3] elif com=="W": self.d = [a3,a2,a6,a1,a5,a4] elif com=="S": self.d = [a5,a1,a3,a4,a6,a2] elif com=="N": ...
s515806848
p02383
u918276501
1484496752
Python
Python3
py
Runtime Error
0
0
512
class Dice: def __init__(self, f): self.f = f # f = face := (top, sud, est, west, nord, botm) dict = {'S' : (4, 0, 2, 3, 5, 1), \ 'E' : (3, 1, 0, 5, 4, 2), \ 'W' : (3, 1, 2, 3, 4, 5), \ 'N' : (1, 5, 2, 3, 0, 4) } def turn(self, c): ...
s476771077
p02383
u513411598
1485104622
Python
Python3
py
Runtime Error
20
7584
2372
class Dice: __top = 0 __front = 1 __right = 2 __left = 3 __back = 4 __bottom = 5 def __init__(self, a, b, c, d, e, f): self.__dice = [a,b,c,d,e,f] self.__dice[Dice.__top] = a self.__dice[Dice.__front] = b self.__dice[Dice.__right] = c self.__dice[Dic...
s393993789
p02383
u519227872
1486394331
Python
Python3
py
Runtime Error
0
0
1515
class Dice: def __init__(self,l1,l2,l3,l4,l5,l6): self.l1 = l1 self.l2 = l2 self.l3 = l3 self.l4 = l4 self.l5 = l5 self.l6 = l6 self.top = 1 self.front = 2 self.right = 3 def get_up_front(self): return eval("("+"self." + 'l' + str(...
s572016430
p02383
u144068724
1487044619
Python
Python3
py
Runtime Error
0
0
357
class Dice: u,s,e,w,n,b = map(int,input().split()) roll = input() for i in range(len(data)): if roll[i] == E: tmp = e e = u u = w w = b b = tmp elif roll[i] == S: tmp = s s = u u = n n = b b = tmp elif roll[i] == W: tmp = w w = u u = e e = b b = tmp elif roll[i] == N: tmp = n n = ...
s660417806
p02383
u144068724
1487044690
Python
Python3
py
Runtime Error
0
0
357
class Dice: u,s,e,w,n,b = map(int,input().split()) roll = input() for i in range(len(roll)): if roll[i] == E: tmp = e e = u u = w w = b b = tmp elif roll[i] == S: tmp = s s = u u = n n = b b = tmp elif roll[i] == W: tmp = w w = u u = e e = b b = tmp elif roll[i] == N: tmp = n n = ...
s857816515
p02383
u144068724
1487044707
Python
Python3
py
Runtime Error
0
0
357
class Dice: u,s,e,w,n,b = map(int,input().split()) roll = input() for i in range(len(roll)): if roll[i] == E: tmp = e e = u u = w w = b b = tmp elif roll[i] == S: tmp = s s = u u = n n = b b = tmp elif roll[i] == W: tmp = w w = u u = e e = b b = tmp elif roll[i] == N: tmp = n n = ...
s755267896
p02383
u144068724
1487044729
Python
Python3
py
Runtime Error
0
0
345
class Dice: u,s,e,w,n,b = map(int,input().split()) roll = input() for i in roll: if roll[i] == E: tmp = e e = u u = w w = b b = tmp elif roll[i] == S: tmp = s s = u u = n n = b b = tmp elif roll[i] == W: tmp = w w = u u = e e = b b = tmp elif roll[i] == N: tmp = n n = u u = s ...
s746999334
p02383
u144068724
1487044770
Python
Python3
py
Runtime Error
0
0
321
class Dice: u,s,e,w,n,b = map(int,input().split()) roll = input() for i in roll: if i == E: tmp = e e = u u = w w = b b = tmp elif i == S: tmp = s s = u u = n n = b b = tmp elif i == W: tmp = w w = u u = e e = b b = tmp elif i == N: tmp = n n = u u = s s = b b = tmp print(u...
s683063633
p02383
u042885182
1493915640
Python
Python3
py
Runtime Error
0
0
3523
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s646258600
p02383
u042885182
1493915999
Python
Python3
py
Runtime Error
0
0
3543
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s315293067
p02383
u042885182
1493916043
Python
Python3
py
Runtime Error
0
0
3545
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s270939336
p02383
u042885182
1493916066
Python
Python3
py
Runtime Error
0
0
3546
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s827781440
p02383
u042885182
1493916091
Python
Python3
py
Runtime Error
0
0
3548
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() # dice = CubicArbitraryValueDice(faces[0], fa...
s030248222
p02383
u042885182
1493916142
Python
Python3
py
Runtime Error
0
0
3554
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() # dice = CubicArbitraryValueDice(faces[0], fa...
s756861228
p02383
u042885182
1493916315
Python
Python3
py
Runtime Error
0
0
3524
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s719087168
p02383
u042885182
1493916399
Python
Python3
py
Runtime Error
0
0
3526
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s913810174
p02383
u042885182
1493916442
Python
Python3
py
Runtime Error
0
0
3527
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s731355072
p02383
u042885182
1493916491
Python
Python3
py
Runtime Error
0
0
3547
# coding: utf-8 # Here your code ! import sys import collections import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(faces[0], fac...
s453461214
p02383
u042885182
1493916728
Python
Python3
py
Runtime Error
0
0
3644
# coding: utf-8 # Here your code ! import sys import collections import math import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(f...
s812969896
p02383
u042885182
1493916751
Python
Python3
py
Runtime Error
0
0
3644
# coding: utf-8 # Here your code ! import sys import collections import math import unittest def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __input_error() dice = CubicArbitraryValueDice(f...
s279806567
p02383
u042885182
1493926096
Python
Python3
py
Runtime Error
0
0
4308
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s704196371
p02383
u042885182
1493926140
Python
Python3
py
Runtime Error
0
0
4314
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s636825971
p02383
u042885182
1493926193
Python
Python3
py
Runtime Error
0
0
4315
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s997451496
p02383
u042885182
1493926225
Python
Python3
py
Runtime Error
0
0
4321
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s161263732
p02383
u042885182
1493926257
Python
Python3
py
Runtime Error
0
0
4321
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s246425843
p02383
u042885182
1493926308
Python
Python3
py
Runtime Error
0
0
4321
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s847298560
p02383
u042885182
1493926340
Python
Python3
py
Runtime Error
0
0
4314
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s599636435
p02383
u042885182
1493926429
Python
Python3
py
Runtime Error
0
0
4320
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s601725561
p02383
u042885182
1493926491
Python
Python3
py
Runtime Error
0
0
4330
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s608179599
p02383
u042885182
1493926519
Python
Python3
py
Runtime Error
0
0
4333
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy as np def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: ret...
s664869121
p02383
u042885182
1493926698
Python
Python3
py
Runtime Error
0
0
4336
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __...
s737997853
p02383
u042885182
1493926745
Python
Python3
py
Runtime Error
0
0
4349
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __...
s218817228
p02383
u042885182
1493926788
Python
Python3
py
Runtime Error
0
0
4348
# coding: utf-8 # Here your code ! from sys import exit from collections import Iterable from unittest import TestCase import numpy def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __i...
s309951730
p02383
u042885182
1493926817
Python
Python3
py
Runtime Error
0
0
4348
# coding: utf-8 # Here your code ! import numpy from sys import exit from collections import Iterable from unittest import TestCase def top_face_after_rolling_dice(): try: faces = [int(num) for num in input().rstrip().split()] rollings = input().rstrip() except: return __i...