結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー rlangevin
提出日時 2024-04-08 08:55:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 152 ms / 2,357 ms
コード長 395 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 76,800 KB
最終ジャッジ日時 2024-10-01 04:59:45
合計ジャッジ時間 2,685 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

def ceil(x, n):
    return (x + n - 1)//n

def solve(N):
    while True:
        N2 = ceil(N, 2)
        N14 = ceil(N, 14)
        if N14 > 1:
            N = N14
        elif N2 == 1:
            print("ryota")
            return 
        else:
            print("sepa")
            return
    

T = int(input())
for _ in range(T):
    solve(int(input()))
0