konchin_shih

p2

May 27th, 2021
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. from math import *
  2.  
  3. while True:
  4.     n = int(input()) - 1
  5.  
  6.     x = n % 6
  7.     y = n // 6
  8.  
  9.     if y & 1:
  10.         x = 5 - x
  11.  
  12.     print(f"{x + 1}排 {y + 1}個")
  13.    
Advertisement
Add Comment
Please, Sign In to add comment