Submission #6908985


Source Code Expand

Copy
n = int(input())

if n%5 == 0:
  base=[1,2,3,4,5,6]
elif n%5 == 1:
  base=[2,1,3,4,5,6]
elif n%5 == 2:
  base=[2,3,1,4,5,6]
elif n%5 == 3:
  base=[2,3,4,1,5,6]
elif n%5 == 4:
  base=[2,3,4,5,1,6]
  
tas = (n//5)%6


ans1 = map(lambda x: x + tas, base)
ans2 = map(lambda x: x if x<=6 else x-6, ans1)
ans = list(ans2)
for i in range(6):
  print(ans[i], end="")

Submission Info

Submission Time
Task C - 入れ替え
User gekoku_coder
Language Python3 (3.4.3)
Score 100
Code Size 378 Byte
Status
Exec Time 17 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Subtask1 30 / 30 SubTask1/00_sample_00.txt, SubTask1/00_sample_01.txt, SubTask1/00_sample_02.txt, SubTask1/rand_19.txt, SubTask1/rand_2.txt, SubTask1/rand_25.txt, SubTask1/rand_27.txt, SubTask1/rand_33.txt, SubTask1/rand_35.txt, SubTask1/rand_4.txt, SubTask1/rand_44.txt, SubTask1/rand_48.txt, SubTask1/rand_8.txt
Subtask2 70 / 70 SubTask2/00_sample_03.txt, SubTask2/max_case.txt, SubTask2/rand_120009641.txt, SubTask2/rand_134230520.txt, SubTask2/rand_136939465.txt, SubTask2/rand_200732473.txt, SubTask2/rand_211796835.txt, SubTask2/rand_312330341.txt, SubTask2/rand_377341731.txt, SubTask2/rand_384611280.txt, SubTask2/rand_386098102.txt, SubTask2/rand_399010727.txt, SubTask2/rand_409627453.txt, SubTask2/rand_416537730.txt, SubTask2/rand_425486442.txt, SubTask2/rand_493135174.txt, SubTask2/rand_573105326.txt, SubTask2/rand_62794810.txt, SubTask2/rand_649471654.txt, SubTask2/rand_693017484.txt, SubTask2/rand_729197057.txt, SubTask2/rand_759630883.txt, SubTask2/rand_823752210.txt, SubTask2/rand_830399384.txt, SubTask2/rand_893242387.txt, SubTask2/rand_935005824.txt, SubTask2/rand_989703310.txt
Case Name Status Exec Time Memory
SubTask1/00_sample_00.txt 17 ms 3064 KB
SubTask1/00_sample_01.txt 17 ms 3064 KB
SubTask1/00_sample_02.txt 17 ms 3064 KB
SubTask1/rand_19.txt 17 ms 3064 KB
SubTask1/rand_2.txt 17 ms 3064 KB
SubTask1/rand_25.txt 17 ms 3064 KB
SubTask1/rand_27.txt 17 ms 3064 KB
SubTask1/rand_33.txt 17 ms 3064 KB
SubTask1/rand_35.txt 17 ms 3064 KB
SubTask1/rand_4.txt 17 ms 3064 KB
SubTask1/rand_44.txt 17 ms 3064 KB
SubTask1/rand_48.txt 17 ms 3064 KB
SubTask1/rand_8.txt 17 ms 3064 KB
SubTask2/00_sample_03.txt 17 ms 3064 KB
SubTask2/max_case.txt 17 ms 3064 KB
SubTask2/rand_120009641.txt 17 ms 3064 KB
SubTask2/rand_134230520.txt 17 ms 3064 KB
SubTask2/rand_136939465.txt 17 ms 3064 KB
SubTask2/rand_200732473.txt 17 ms 3064 KB
SubTask2/rand_211796835.txt 17 ms 3064 KB
SubTask2/rand_312330341.txt 17 ms 3064 KB
SubTask2/rand_377341731.txt 17 ms 3064 KB
SubTask2/rand_384611280.txt 17 ms 3064 KB
SubTask2/rand_386098102.txt 17 ms 3064 KB
SubTask2/rand_399010727.txt 17 ms 3064 KB
SubTask2/rand_409627453.txt 17 ms 3064 KB
SubTask2/rand_416537730.txt 17 ms 3064 KB
SubTask2/rand_425486442.txt 17 ms 3064 KB
SubTask2/rand_493135174.txt 17 ms 3064 KB
SubTask2/rand_573105326.txt 17 ms 3064 KB
SubTask2/rand_62794810.txt 17 ms 3064 KB
SubTask2/rand_649471654.txt 17 ms 3064 KB
SubTask2/rand_693017484.txt 17 ms 3064 KB
SubTask2/rand_729197057.txt 17 ms 3064 KB
SubTask2/rand_759630883.txt 17 ms 3064 KB
SubTask2/rand_823752210.txt 17 ms 3064 KB
SubTask2/rand_830399384.txt 17 ms 3064 KB
SubTask2/rand_893242387.txt 17 ms 3064 KB
SubTask2/rand_935005824.txt 17 ms 3064 KB
SubTask2/rand_989703310.txt 17 ms 3064 KB